diff options
| author | Guillem Jover <guillem@debian.org> | 2004-09-18 21:23:38 +0000 |
|---|---|---|
| committer | Guillem Jover <guillem@debian.org> | 2004-09-18 21:23:38 +0000 |
| commit | 6b213a7a1f82fd1d0ff189eb8c1b8c224bccf400 (patch) | |
| tree | 61d4058e8028af47b22f6b88ed647507b2ab4a17 /debian/rules | |
| parent | 4221471ae0fe6200566923b584cfba6b7748f86c (diff) | |
Honour DEB_BUILD_OPTIONS.
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/debian/rules b/debian/rules index e4634fc..cee71ed 100755 --- a/debian/rules +++ b/debian/rules @@ -14,16 +14,20 @@ ## ############################################################################### -# The name of the package (for example, `emacs'). package := gnumach package-dev := gnumach-dev + DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -# Configuration variables (these should be pretty generic) -CC = cc -CFLAGS = -O2 -g -pipe -Wall -LDFLAGS = -s +CFLAGS = -Wall -g -pipe + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + PREFIX = /usr BINDIR = $(PREFIX)/bin MANDIR = $(PREFIX)/man |
