3 # Uncomment this to turn on verbose mode.
7 # These are used for cross-compiling and for saving the configure script
8 # from having to guess our platform (since we know it already)
9 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
10 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
12 CFLAGS += -g -rdynamic
13 CFLAGS += -Wall -Werror
18 LDFLAGS += -Wl,--as-needed
20 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
26 config.status: configure
28 # Add here commands to configure the package.
30 CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \
31 ./configure --prefix=$(PREFIX)
39 build-stamp: config.status
42 # Add here commands to compile the package.
45 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
46 cat $$f > $${f%.in}; \
47 sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
48 sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
56 rm -f build-stamp configure-stamp
58 # Add here commands to clean up after the build process.
61 find -name Makefile.in -exec rm -rf {} \;
62 rm -f aclocal.m4 config.guess config.h config.h.in config.sub configure depcomp install-sh ltmain.sh missing
65 for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
69 rm -f ../libnetwork-*.deb
70 rm -f ../network_*.dsc
71 rm -f ../network_*.changes
72 rm -f ../libnetwork-*.deb
73 rm -f ../network_*.tar.gz
83 # Add here commands to install the package into debian/.
84 $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
87 # Build architecture-independent files here.
88 binary-indep: build install
89 # We have nothing to do by default.
91 # Build architecture-dependent files here.
92 binary-arch: build install
98 dh_install --sourcedir=debian/tmp
101 dh_strip --dbg-package=libnetwork-dbg
112 binary: binary-indep binary-arch
113 .PHONY: build clean binary-indep binary-arch binary install