X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Frules;h=d3f0854748ce31f1310896623b42f7c580099931;hb=151ee940c8cd670deedbe4ddfee0887a7b726f43;hp=8853463ab3248070ea86e32eb142f334b5f561a1;hpb=43d32a32bcfb879268237ccbc1e34913077a889c;p=wdq2wav.git diff --git a/debian/rules b/debian/rules index 8853463..d3f0854 100755 --- a/debian/rules +++ b/debian/rules @@ -11,6 +11,15 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif +export DEB_BUILD_HARDENING=1 +export DPKG_EXPORT_BUILDFLAGS=1 +export DEB_BUILD_MAINT_OPTIONS="hardening=+all" +CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS) +CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) +CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) +LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) + + configure: configure-stamp configure-stamp: dh_testdir @@ -29,7 +38,6 @@ clean: dh_testroot rm -f build-stamp configure-stamp $(MAKE) clean - dh_clean install: build @@ -37,18 +45,20 @@ install: build dh_testroot dh_prep dh_installdirs - dpkg-buildflags $(MAKE) install DESTDIR=$(CURDIR)/debian/wdq2wav + DPKG_EXPORT_BUILDFLAGS=1 + $(MAKE) + dh_install wdq2wav usr/bin -build-indep: +binary-indep: -build-arch: +binary-arch: install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installmenu dh_installcron - dh_installman + dh_installman wdq2wav.1 dh_installinfo dh_installchangelogs dh_link @@ -61,9 +71,9 @@ build-arch: dh_md5sums dh_builddeb -binary-indep: build-indep +build-indep: -binary-arch: build-arch +build-arch: -binary: binary-indep binary-arch +binary: clean binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure