maint: allow per-directory CFLAGS settings with non-recursive make
authorJim Meyering <meyering@redhat.com>
Sat, 8 Sep 2012 19:17:32 +0000 (21:17 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 10 Sep 2012 14:55:25 +0000 (16:55 +0200)
commit4fdd1cc597209b9e85ed66fdb594abca6f148155
tree4edf99bda86d82b27f935b90dc386f6f19b0d9ec
parentd9bc0d0d22b159f1a0b2cb11d4efd759921da238
maint: allow per-directory CFLAGS settings with non-recursive make

* src/local.mk (AM_CFLAGS): Don't use $(WARN_CFLAGS) here.
* cfg.mk (src_CFLAGS, lib_CFLAGS, gnulib-tests_CFLAGS): Define here
instead.
(AM_CFLAGS): Augment using the above.
* configure.ac: Note that the configure-time option,
--enable-gcc-warnings now functions only when using GNU make.
Well, currently it does still work in gnulib-tests, but that should
soon be fixed.
Improved-by: Stefano Lattarini
cfg.mk
configure.ac
src/local.mk