Build and portability fixes:
* Makefile: honour CMDLINE_CFLAGS, CMDLINE_CPPFLAGS, CMDLINE_LDFLAGS.
+ * debian/rules: use dpkg-buildflags and pass to Makefile.
* xbatmon-simple: Saner build rune.
* cprogs/Makefile: clean deletes $PROGRAMS
* random-word: Some perl-mode emacs formatting glitch workarounds.
d= $(cwd)/debian
t= $d/tmp
+makebuildargs := OPTIMISE= DEBUG= \
+ CMDLINE_CFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \
+ CMDLINE_CPPFLAGS="$(shell dpkg-buildflags --get CPPFLAGS)" \
+ CMDLINE_LDFLAGS="$(shell dpkg-buildflags --get LDFLAGS)"
+
build:
$(checkdir)
- set -e; for s in $(subdirs_build_arch); do $(MAKE) -C $$s all; done
+ set -e; for s in $(subdirs_build_arch); do \
+ $(MAKE) -C $$s all $(makebuildargs); \
+ done
touch build
build-indep: build