nouveau: fix build against out of tree libdrm
authorDave Airlie <airlied@redhat.com>
Mon, 17 Jan 2011 05:41:49 +0000 (15:41 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 17 Jan 2011 05:42:34 +0000 (15:42 +1000)
For doing builds against a separated libdrm these cflags are needed.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/nouveau/Makefile
src/gallium/drivers/nv50/Makefile
src/gallium/drivers/nvc0/Makefile
src/gallium/drivers/nvfx/Makefile

index db591b756c4dcaaa9c8ef85da31b9555793b44ff..a33bf5ebc28992fa7a521004e2b249051333368a 100644 (file)
@@ -4,6 +4,7 @@ include $(TOP)/configs/current
 LIBNAME = nouveau
 
 LIBRARY_INCLUDES = \
+       $(LIBDRM_CFLAGS) \
        -I$(TOP)/src/gallium/drivers/nouveau/include
 
 C_SOURCES = nouveau_screen.c 
index bf1e8201a08534cb6b7b9d9cfd4186752075330c..b3535c0976eb36b86c6651210bbaca5d08832f84 100644 (file)
@@ -29,4 +29,7 @@ C_SOURCES = \
        nv50_pc_optimize.c \
        nv50_pc_regalloc.c
 
+LIBRARY_INCLUDES = \
+       $(LIBDRM_CFLAGS)
+
 include ../../Makefile.template
index da8f9a2ab4d620c775f3c1232d0a861d1ffeb25e..54f1ab7fa93f96f387301ffbe66aedd19bc64792 100644 (file)
@@ -31,4 +31,7 @@ C_SOURCES = \
        nvc0_mm.c \
        nvc0_query.c
 
+LIBRARY_INCLUDES = \
+       $(LIBDRM_CFLAGS)
+
 include ../../Makefile.template
index 46bb082388116d98c17ee3b8e0086f4753511e4e..a3b76ac61b101e39860e1854f1bbabe2f531dfbd 100644 (file)
@@ -27,6 +27,7 @@ C_SOURCES = \
        nvfx_vertprog.c
 
 LIBRARY_INCLUDES = \
+       $(LIBDRM_CFLAGS) \
        -I$(TOP)/src/gallium/drivers/nouveau/include
 
 include ../../Makefile.template