diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/debian/rules b/debian/rules index efbfd8a..7df4e75 100755 --- a/debian/rules +++ b/debian/rules @@ -1,37 +1,22 @@ #!/usr/bin/make -f # -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -LIBS = $(shell grep '^Package: lib' debian/control | egrep -v '(-doc|-dev)' | sed -e 's@Package: @@' ) # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -include /usr/share/quilt/quilt.make - -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif +CFLAGS = $(dpkg-buildflags --get CFLAGS) +CFLAGS += -Wall +LDFLAGS = $(dpkg-buildflags --get LDFLAGS) +LDFLAGS += defs +CPPFLAGS = $(dpkg-buildflags --get CPPFLAGS) # shared library versions, option 1 version=9 major=9 minor=0 - config.status: configure dh_testdir test -e config.sub -a -L config.sub || \ @@ -39,14 +24,13 @@ config.status: configure test -e config.guess -a -L config.guess || \ ln -sf /usr/share/misc/config.guess config.guess + CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" \ ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info - CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" -configure: patch - #$(RM) debian/libconfig9.info debian/shlibs +configure: build: build-arch build-indep @@ -63,7 +47,7 @@ build-stamp: config.status $(MAKE) -C doc pdf touch $@ -clean: unpatch +clean: dh_testdir dh_testroot |