summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/xorg
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsap7@yahoo.gr>2008-04-18 17:34:45 +0300
committerGeorge Sapountzis <gsap7@yahoo.gr>2008-04-23 11:12:30 +0300
commit750f52169ccbd1aca217e7749f1ce6ae5828c2ac (patch)
treebf213151df74b6e759a9dc9657835816cc8a1c52 /src/mesa/drivers/xorg
parent32a2a095f4d8e3be7fa2807cb436bd09e8eb5a75 (diff)
glcore: tree sharing for DRI and XMesa
Diffstat (limited to 'src/mesa/drivers/xorg')
-rw-r--r--src/mesa/drivers/xorg/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/xorg/Makefile b/src/mesa/drivers/xorg/Makefile
index 7fd7036665..7278182446 100644
--- a/src/mesa/drivers/xorg/Makefile
+++ b/src/mesa/drivers/xorg/Makefile
@@ -32,6 +32,9 @@ C_SOURCES = \
MESA_MODULES = $(TOP)/src/mesa/libmesa.a
C_SOURCES += ../common/driverfuncs.c
+ifeq ("${DRIVER_DIRS}", "dri")
+C_SOURCES += ../dri/common/utils.c
+endif
OBJECTS = $(C_SOURCES:.c=.o)
@@ -45,6 +48,12 @@ INCLUDES = \
-I$(TOP)/src/mesa/glapi \
`pkg-config --cflags xorg-server`
+ifeq ("${DRIVER_DIRS}", "dri")
+INCLUDES += \
+ -I$(TOP)/src/mesa/drivers/dri/common \
+ `pkg-config --cflags libdrm`
+endif
+
# undef 'USE_XSHM' to make it explicit that 'XFree86Server' takes precedence
DRIVER_DEFINES = -UUSE_XSHM -DXFree86Server