2 # Configuration for linux-indirect: Builds a libGL capable of indirect
3 # rendering, but *NOT* capable of direct rendering.
5 include $(TOP)/configs/default
7 CONFIG_NAME = linux-dri
13 #MKDEP = /usr/X11R6/bin/makedepend
15 #MKDEP_OPTIONS = -MF depend
21 # Add '-DGLX_USE_TLS' to ARCH_FLAGS to enable TLS support.
24 DEFINES = -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE \
25 -D_BSD_SOURCE -D_GNU_SOURCE \
26 -DGLX_INDIRECT_RENDERING \
27 -DPTHREADS -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN
29 X11_INCLUDES = -I/usr/X11R6/include
31 CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) \
32 $(ASM_FLAGS) -std=c99 -ffast-math
34 CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
36 # Work around aliasing bugs - developers should comment this out
37 CFLAGS += -fno-strict-aliasing
38 CXXFLAGS += -fno-strict-aliasing
42 # Library/program dependencies
43 EXTRA_LIB_PATH=-L/usr/X11R6/lib
45 DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -lm -lpthread -lexpat -ldl
46 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lXxf86vm -lm -lpthread -ldl
50 SRC_DIRS = glx glu glut/glx glw