2 # Configuration for linux-dri: Linux DRI hardware drivers for XFree86 & others
4 include $(TOP)/configs/default
6 CONFIG_NAME = linux-dri-xcb
12 #MKDEP = /usr/X11R6/bin/makedepend
14 #MKDEP_OPTIONS = -MF depend
19 # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
22 DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
23 -D_BSD_SOURCE -D_GNU_SOURCE \
24 -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
25 -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
26 -DHAVE_ALIAS -DUSE_XCB -DHAVE_POSIX_MEMALIGN
28 X11_INCLUDES = $(shell pkg-config --cflags-only-I x11) $(shell pkg-config --cflags-only-I xcb) $(shell pkg-config --cflags-only-I x11-xcb) $(shell pkg-config --cflags-only-I xcb-glx)
30 CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
31 $(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math
33 CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
35 # Work around aliasing bugs - developers should comment this out
36 CFLAGS += -fno-strict-aliasing
37 CXXFLAGS += -fno-strict-aliasing
41 # Library/program dependencies
42 EXTRA_LIB_PATH=$(shell pkg-config --libs-only-L x11)
44 MESA_MODULES = $(TOP)/src/mesa/libmesa.a
46 LIBDRM_CFLAGS = $(shell pkg-config --cflags libdrm)
47 LIBDRM_LIB = $(shell pkg-config --libs libdrm)
48 DRI_LIB_DEPS = $(MESA_MODULES) $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
49 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
50 $(LIBDRM_LIB) $(shell pkg-config --libs xcb) $(shell pkg-config --libs x11-xcb) $(shell pkg-config --libs xcb-glx)
52 SRC_DIRS = glx gallium mesa glu
55 DRI_DIRS = i915 r200 r300 radeon