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 MESA_MODULES = $(TOP)/src/mesa/libmesa.a
35 LIBDRM_CFLAGS = `$(PKG_CONFIG) --cflags libdrm`
36 LIBDRM_LIB = `$(PKG_CONFIG) --libs libdrm`
37 DRI_LIB_DEPS = $(MESA_MODULES) -L/usr/local/lib -lm -pthread -lexpat $(LIBDRM_LIB)
38 GL_LIB_DEPS = -L/usr/local/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
39 -lm -pthread $(LIBDRM_LIB)
41 GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGL -lXt -lX11
45 SRC_DIRS = glx gallium mesa glu
48 DRM_SOURCE_PATH=$(TOP)/../drm
50 DRI_DIRS = i915 i965 r200 radeon