diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2012-11-03 10:54:36 +0100 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2012-11-03 11:02:15 +0100 |
commit | 3e104448c4f532802dfaf30a42618bc09be99159 (patch) | |
tree | 2338dc16bfce027375a44aed1eb950872b7342f8 | |
parent | 6f6a8c2f9d921185a1403be27ec013d9f48a8cbf (diff) |
build: Use CPPFLAGS instead of CFLAGS for compiling flags
https://bugs.freedesktop.org/show_bug.cgi?id=56481
-rw-r--r-- | libspectre/Makefile.am | 5 | ||||
-rw-r--r-- | test/Makefile.am | 10 |
2 files changed, 5 insertions, 10 deletions
diff --git a/libspectre/Makefile.am b/libspectre/Makefile.am index 1cee4e3..b2a6b38 100644 --- a/libspectre/Makefile.am +++ b/libspectre/Makefile.am @@ -41,10 +41,7 @@ libspectre_la_SOURCES = \ spectre-utils.c \ $(gv_sources) -libspectre_la_CFLAGS = \ - -I$(top_builddir) \ - -I$(srcdir) \ - -I$(top_srcdir) \ +libspectre_la_CPPFLAGS = \ $(SPECTRE_CFLAGS) libspectre_la_LIBADD = $(LIB_GS) diff --git a/test/Makefile.am b/test/Makefile.am index eaadec2..f078626 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -2,9 +2,8 @@ noinst_PROGRAMS = spectre-test parser-test spectre_test_SOURCES = spectre-test.c -spectre_test_CFLAGS = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/libspectre \ +spectre_test_CPPFLAGS = \ + -I$(top_srcdir)/libspectre \ $(SPECTRE_CFLAGS) \ $(CAIRO_CFLAGS) @@ -14,9 +13,8 @@ spectre_test_LDADD = \ parser_test_SOURCES = parser-test.c -parser_test_CFLAGS = \ - -I$(top_srcdir) \ - -I$(top_srcdir)/libspectre \ +parser_test_CPPFLAGS = \ + -I$(top_srcdir)/libspectre \ $(SPECTRE_CFLAGS) parser_test_LDADD = $(top_builddir)/libspectre/libspectre.la |