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 -DHAVE_ALIAS -DUSE_XCB
27 X11_INCLUDES = `pkg-config --cflags-only-I x11` `pkg-config --cflags-only-I xcb`
29 CFLAGS = -Wall -Wmissing-prototypes $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) \
30 $(DEFINES) $(ASM_FLAGS) -std=c99 -ffast-math
32 CXXFLAGS = -Wall $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
37 # Library/program dependencies
38 EXTRA_LIB_PATH=`pkg-config --libs-only-L x11`
40 LIBDRM_LIB = `pkg-config --libs libdrm`
41 DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl $(LIBDRM_LIB)
42 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl \
43 $(LIBDRM_LIB) `pkg-config --libs xcb`
46 # This is now 0 by default since it seems to confuse the hell out of people
47 # and generate a lot of extra noise on bugzilla. If you need to build with
48 # EGL, do 'make linux-dri USING_EGL=1'
53 ifeq ($(USING_EGL), 1)
54 SRC_DIRS = egl glx/x11 mesa glu glut/glx glw
57 SRC_DIRS = glx/x11 mesa glu glut/glx glw
64 # gamma are missing because they have not been converted to use the new
66 DRI_DIRS = i810 i915 mach64 mga r128 r200 r300 radeon s3v \
67 savage sis tdfx trident unichrome ffb