summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/xlib/Makefile
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-02-02 15:37:58 +0000
committerJosé Fonseca <[email protected]>2009-02-02 15:37:58 +0000
commitdf73c964d85d2f44d8c62558b5752b2f4443763f (patch)
tree56d6fdd649bf7137118de722b37f4affacd5df5e /src/gallium/winsys/xlib/Makefile
parentf0ad6b6144bb416bc22ddccca0be4e614131a2b3 (diff)
xlib: Get conditional compilation of drivers working again.
Diffstat (limited to 'src/gallium/winsys/xlib/Makefile')
-rw-r--r--src/gallium/winsys/xlib/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gallium/winsys/xlib/Makefile b/src/gallium/winsys/xlib/Makefile
index 14d3849f757..5b71e6dc38c 100644
--- a/src/gallium/winsys/xlib/Makefile
+++ b/src/gallium/winsys/xlib/Makefile
@@ -22,6 +22,12 @@ INCLUDE_DIRS = \
-I$(TOP)/src/gallium/state_trackers/glx/xlib \
-I$(TOP)/src/gallium/auxiliary
+DEFINES = \
+ -DGALLIUM_SOFTPIPE \
+ -DGALLIUM_CELL \
+ -DGALLIUM_TRACE \
+ -DGALLIUM_BRW
+
XLIB_WINSYS_SOURCES = \
xlib.c \
xlib_cell.c \
@@ -49,10 +55,10 @@ LIBS = \
.SUFFIXES : .cpp
.c.o:
- $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
+ $(CC) -c $(INCLUDE_DIRS) $(DEFINES) $(CFLAGS) $< -o $@
.cpp.o:
- $(CXX) -c $(INCLUDE_DIRS) $(CXXFLAGS) $< -o $@
+ $(CXX) -c $(INCLUDE_DIRS) $(DEFINES) $(CXXFLAGS) $< -o $@