nouveau/build: Fix build failures when drm is not in /usr/include.
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 22 Jan 2013 18:35:13 +0000 (18:35 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 22 Jan 2013 19:10:47 +0000 (19:10 +0000)
Fixes failures to include libdrm/nouveau.h when drm is not installed in
/usr/include.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/drivers/nv30/Makefile.am
src/gallium/drivers/nv50/Makefile.am
src/gallium/drivers/nvc0/Makefile.am

index 668a8b2fa7c819b98f731525e66f2890d9c53867..e7d19839bfc07f13518f61ef7389033638e434f8 100644 (file)
@@ -28,6 +28,7 @@ noinst_LTLIBRARIES = libnv30.la
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/drivers \
        -I$(top_srcdir)/include \
-       $(GALLIUM_CFLAGS)
+       $(GALLIUM_CFLAGS) \
+       $(NOUVEAU_CFLAGS)
 
 libnv30_la_SOURCES = $(C_SOURCES)
index 93eeb1f6a2066077c978e2a3e4e06eaa5d6382ad..58c26efa957aaa49e2369f1d07b11abd090936c8 100644 (file)
@@ -28,6 +28,7 @@ noinst_LTLIBRARIES = libnv50.la
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/drivers \
        -I$(top_srcdir)/include \
-       $(GALLIUM_CFLAGS)
+       $(GALLIUM_CFLAGS) \
+       $(NOUVEAU_CFLAGS)
 
 libnv50_la_SOURCES = $(C_SOURCES) $(CPP_SOURCES)
index 6a245afcb6b12f8eee96600e14f43d050875ba1b..45e5a63d369f64b459da0384452b3a018fe2aed5 100644 (file)
@@ -28,6 +28,7 @@ noinst_LTLIBRARIES = libnvc0.la
 AM_CPPFLAGS = \
        -I$(top_srcdir)/src/gallium/drivers \
        -I$(top_srcdir)/include \
-       $(GALLIUM_CFLAGS)
+       $(GALLIUM_CFLAGS) \
+       $(NOUVEAU_CFLAGS)
 
 libnvc0_la_SOURCES = $(C_SOURCES) $(CPP_SOURCES)