make miniglx use libdrm properly
authorDave Airlie <airliedfreedesktop.org>
Fri, 7 Apr 2006 03:20:56 +0000 (03:20 +0000)
committerDave Airlie <airliedfreedesktop.org>
Fri, 7 Apr 2006 03:20:56 +0000 (03:20 +0000)
src/glx/mini/Makefile
src/mesa/drivers/dri/Makefile.template

index 3a95849d1a6d4bf9840d8f4b359a84d68b5ea64a..9503192274c45da393ce0ed59c0fcd14032e0623 100644 (file)
@@ -32,8 +32,7 @@ INCLUDE_DIRS = \
        -I$(TOP)/src/mesa/swrast \
        -I$(TOP)/src/mesa/swrast_setup \
        -I$(TOP)/src/mesa/drivers/dri/common \
-       -I$(DRM_SOURCE_PATH)/libdrm \
-       -I$(DRM_SOURCE_PATH)/shared
+       `pkg-config --cflags libdrm`
 
 
 ##### RULES #####
index f07dda3171499da1b160da5a9e15f5056acdc1c6..b5e062f9c0a27ea8eccabd9f220f64213b67310c 100644 (file)
@@ -25,8 +25,7 @@ WINOBJ=
 WINLIB=-L$(MESA)/src/glx/mini
 MINIGLX_INCLUDES = -I$(TOP)/src/glx/mini
 INCLUDES = $(MINIGLX_INCLUDES) \
-          -I$(DRM_SOURCE_PATH)/shared-core \
-          -I$(DRM_SOURCE_PATH)/libdrm \
+          `pkg-config --cflags libdrm` \
           $(SHARED_INCLUDES)
 
 OBJECTS = $(C_SOURCES:.c=.o) \
@@ -40,7 +39,7 @@ SHARED_INCLUDES = \
        -I. \
        -I$(TOP)/src/mesa/drivers/dri/common \
        -Iserver \
-       -I$(DRM_SOURCE_PATH)/shared-core \
+       `pkg-config --cflags libdrm` \
        -I$(TOP)/include \
        -I$(TOP)/include/GL/internal \
        -I$(TOP)/src/mesa \