]> xenbits.xensource.com Git - libvirt.git/commit
build: consistently use CFLAGS
authorEric Blake <eblake@redhat.com>
Tue, 31 May 2011 22:15:28 +0000 (16:15 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 1 Jul 2011 16:44:17 +0000 (10:44 -0600)
commit6ae3052c06cd97b00f99790cb95fc7f11971e985
treeff83f040d2f300f6743f154915591c6523dd4786
parent8c58abeae12cb632ac0a2f7b41c5045d5aaab565
build: consistently use CFLAGS

According to the automake manual, CPPFLAGS (aka INCLUDES, as spelled
in automake 1.9.6) should only include -I, -D, and -U directives; more
generic directives like -Wall belong in CFLAGS since they affect more
phases of the build process.  Therefore, we should be sticking CFLAGS
additions into a CFLAGS container, not a CPPFLAGS container.

* src/Makefile.am (libvirt_driver_vmware_la_CFLAGS): Use AM_CFLAGS.
(INCLUDES): Move CFLAGS items...
(AM_CFLAGS): ...to their proper location.
* python/Makefile.am (INCLUDES, AM_CFLAGS): Likewise.
* tests/Makefile.am (INCLUDES, AM_CFLAGS): Likewise.
(commandtest_CFLAGS, commandhelper_CFLAGS)
(virnetmessagetest_CFLAGS, virnetsockettest_CFLAGS): Use AM_CFLAGS.
python/Makefile.am
src/Makefile.am
tests/Makefile.am