From 5939750e54aec51f20f6839e82ac1057c00bdbdc Mon Sep 17 00:00:00 2001 From: Bdale Garbee Date: Sun, 10 Jun 2012 20:41:25 -0600 Subject: [PATCH] more work on lintian issues like hardening and arch/indep targets --- debian/rules | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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 -- 2.30.2