diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 31 |
1 files changed, 6 insertions, 25 deletions
diff --git a/debian/rules b/debian/rules index efbfd8a..23dad68 100755 --- a/debian/rules +++ b/debian/rules @@ -1,30 +1,15 @@ #!/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 -g +LDFLAGS = $(dpkg-buildflags --get LDFLAGS) +LDFLAGS += defs +CPPFLAGS = $(dpkg-buildflags --get CPPFLAGS) # shared library versions, option 1 version=9 @@ -43,10 +28,6 @@ config.status: configure --prefix=/usr \ --mandir=\$${prefix}/share/man \ --infodir=\$${prefix}/share/info - CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" - -configure: patch - #$(RM) debian/libconfig9.info debian/shlibs build: build-arch build-indep @@ -63,7 +44,7 @@ build-stamp: config.status $(MAKE) -C doc pdf touch $@ -clean: unpatch +clean: dh_testdir dh_testroot |