Building a non-optimized (-O0 vs. -O2) Debian package required:
echo 'export DEB_BUILD_OPTIONS=noopt' >> ~/.pbuilderrc
endif
ifeq ($(DEBUG),1)
-$(warning "DEBUG build")
# Extended debugging flags, macros shall be available in gcc
CFLAGS += -gdwarf-2
CFLAGS += -g3
else
-$(warning "non-DEBUG build, enabling optimization")
CFLAGS += -O2
CFLAGS += -freorder-blocks-and-partition
endif
endif
# Don’t print command lines which are run
-#.SILENT:
+.SILENT:
# Always remake the following targets
.PHONY: install clean dist distclean
binary: binary-arch binary-indep
override_dh_auto_build:
- env
- $(MAKE) -d
+ $(MAKE)
$(MAKE) -C man
$(MAKE) -C docs