diff 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 |
