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/X11R6/include
16 DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
17 -DGLX_DIRECT_RENDERING -DHAVE_ALIAS
18 CFLAGS = $(DEFINES) -Wmissing-prototypes -g -std=c99 -Wundef -fPIC \
19 -ffast-math $(X11_INCLUDES)
20 CXXFLAGS = $(DEFINES) -Wall -g -ansi -pedantic -fPIC
24 # Library/program dependencies
25 LIBDRM_LIB = `pkg-config --libs libdrm` -ldrm
26 DRI_LIB_DEPS = -L/usr/local/lib -lm -lpthread -lexpat $(LIBDRM_LIB)
27 GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread $(LIBDRM_LIB)
29 GLUT_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
30 GLW_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lXm -lX11
34 SRC_DIRS = mesa glu glut/glx glw glx/x11
39 DRM_SOURCE_PATH=$(TOP)/../drm
41 # ffb and gamma are missing because they have not been converted to use the new
43 DRI_DIRS = i810 i830 i915 mach64 mga r128 r200 r300 radeon tdfx \