2 # Configuration for freebsd-dri: FreeBSD DRI hardware drivers
4 include $(TOP)/configs/freebsd
6 CONFIG_NAME = freebsd-dri
14 EXPAT_INCLUDES = -I/usr/local/include
15 X11_INCLUDES = -I/usr/local/include
16 DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
17 -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
20 CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 -Wundef -ffast-math \
21 $(ASM_FLAGS) $(X11_INCLUDES) $(DEFINES)
23 CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES)
25 # Work around aliasing bugs - developers should comment this out
26 CFLAGS += -fno-strict-aliasing
27 CXXFLAGS += -fno-strict-aliasing
32 # Library/program dependencies
33 LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
34 LIBDRM_LIB = `pkg-config --libs libdrm`
35 DRI_LIB_DEPS = -L/usr/local/lib -lm -pthread -lexpat $(LIBDRM_LIB)
36 GL_LIB_DEPS = -L/usr/local/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
37 -lm -pthread $(LIBDRM_LIB)
39 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
40 GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGL -lXt -lX11
44 SRC_DIRS = glx gallium mesa glu glut/glx glw
47 DRM_SOURCE_PATH=$(TOP)/../drm
49 DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \