From: Bdale Garbee Date: Mon, 11 Jun 2012 02:41:25 +0000 (-0600) Subject: more work on lintian issues like hardening and arch/indep targets X-Git-Tag: debian/2.9.0-1~7 X-Git-Url: https://git.gag.com/?p=debian%2Fcc1111;a=commitdiff_plain;h=5939750e54aec51f20f6839e82ac1057c00bdbdc more work on lintian issues like hardening and arch/indep targets --- diff --git a/debian/rules b/debian/rules index 34ba6db..f0a0ea2 100755 --- a/debian/rules +++ b/debian/rules @@ -10,6 +10,11 @@ DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) export HOME=$(CURDIR)/build +CFLAGS = `dpkg-buildflags --get CFLAGS` +CFLAGS += -Wall -Wno-comment +LDFLAGS = `dpkg-buildflags --get LDFLAGS` +CPPFLAGS = `dpkg-buildflags --get CPPFLAGS` + ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g -O0 export STRIP=true @@ -78,8 +83,10 @@ configure-stamp: $(QUILT_STAMPFN) --disable-z80-port touch $@ -build: build-stamp -build-stamp: configure-stamp +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp +build-stamp: configure-stamp dh_testdir $(MAKE) cd doc && lyx -e ps sdccman.lyx @@ -157,4 +164,4 @@ binary-arch: install $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common binary: binary-arch binary-indep -.PHONY: build clean binary-indep binary-arch binary install install-arch install-indep +.PHONY: build-indep build-arch build clean binary-indep binary-arch binary install install-arch install-indep