glx: Use AM_CPPFLAGS to pass -I and -D to both C and C++ compiles.
authorEric Anholt <eric@anholt.net>
Mon, 16 Apr 2012 21:33:34 +0000 (14:33 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 19 Apr 2012 23:32:46 +0000 (16:32 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
tests/glx/Makefile.am

index f5581d6..7f93fd7 100644 (file)
@@ -1,10 +1,8 @@
-INC = \
+AM_CPPFLAGS = \
        -I$(top_builddir)/src/gtest/include \
        -I$(top_builddir)/src/mapi \
-       -I$(top_builddir)/src/glx
-
-AM_CFLAGS = $(INC) $(X11_CFLAGS)
-AM_CXXFLAGS = $(INC) $(X11_CFLAGS)
+       -I$(top_builddir)/src/glx \
+       $(X11_CFLAGS)
 
 if HAVE_XCB_GLX_CREATE_CONTEXT
 TESTS = glx_unittest