# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+export DH_COMPAT = 5
+
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0 -ggdb -rdynamic -MD -MP
else
- CFLAGS += -O2 -fno-strict-aliasing
+ CFLAGS += -O2
endif
build: build-stamp
dh_testdir
dh_testroot
rm -f build-stamp install*-stamp
- [ ! -f Makefile ] || $(MAKE) distclean
+
+ -$(MAKE) distclean
+
dh_clean
install: install-stamp