2004-10-28 08:19:21 +08:00
|
|
|
# -*-makefile-*-
|
|
|
|
# Configuration for freebsd-dri: FreeBSD DRI hardware drivers
|
|
|
|
|
|
|
|
include $(TOP)/configs/freebsd
|
|
|
|
|
|
|
|
CONFIG_NAME = freebsd-dri
|
|
|
|
|
|
|
|
# Compiler and flags
|
|
|
|
CC = gcc
|
|
|
|
CXX = g++
|
|
|
|
WARN_FLAGS = -Wall
|
2007-07-06 07:57:53 +08:00
|
|
|
OPT_FLAGS = -O -g
|
2004-10-28 08:19:21 +08:00
|
|
|
|
2005-05-29 04:17:06 +08:00
|
|
|
EXPAT_INCLUDES = -I/usr/local/include
|
2007-09-29 04:51:13 +08:00
|
|
|
X11_INCLUDES = -I/usr/local/include
|
2005-07-30 01:25:50 +08:00
|
|
|
DEFINES = -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER \
|
2006-10-12 06:37:14 +08:00
|
|
|
-DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING \
|
2007-08-01 04:57:37 +08:00
|
|
|
-DHAVE_ALIAS
|
2006-04-07 00:50:38 +08:00
|
|
|
|
2006-09-20 00:31:37 +08:00
|
|
|
CFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) -Wmissing-prototypes -std=c99 -Wundef -ffast-math \
|
2006-04-07 00:50:38 +08:00
|
|
|
$(ASM_FLAGS) $(X11_INCLUDES) $(DEFINES)
|
|
|
|
|
2006-09-20 00:31:37 +08:00
|
|
|
CXXFLAGS = $(WARN_FLAGS) $(OPT_FLAGS) $(PIC_FLAGS) $(DEFINES) -Wall -ansi -pedantic $(ASM_FLAGS) $(X11_INCLUDES)
|
2004-10-28 08:19:21 +08:00
|
|
|
|
2007-11-01 21:01:53 +08:00
|
|
|
# Work around aliasing bugs - developers should comment this out
|
|
|
|
CFLAGS += -fno-strict-aliasing
|
|
|
|
CXXFLAGS += -fno-strict-aliasing
|
|
|
|
|
2004-10-28 08:19:21 +08:00
|
|
|
ASM_SOURCES =
|
2008-02-19 12:27:13 +08:00
|
|
|
MESA_ASM_SOURCES =
|
2004-10-28 08:19:21 +08:00
|
|
|
|
|
|
|
# Library/program dependencies
|
2011-02-03 08:19:32 +08:00
|
|
|
MESA_MODULES = $(TOP)/src/mesa/libmesa.a
|
|
|
|
|
2006-09-20 06:43:41 +08:00
|
|
|
LIBDRM_CFLAGS = `pkg-config --cflags libdrm`
|
2006-03-31 03:20:25 +08:00
|
|
|
LIBDRM_LIB = `pkg-config --libs libdrm`
|
2011-02-03 08:19:32 +08:00
|
|
|
DRI_LIB_DEPS = $(MESA_MODULES) -L/usr/local/lib -lm -pthread -lexpat $(LIBDRM_LIB)
|
2007-09-29 04:51:13 +08:00
|
|
|
GL_LIB_DEPS = -L/usr/local/lib -lX11 -lXext -lXxf86vm -lXdamage -lXfixes \
|
2007-06-23 01:29:54 +08:00
|
|
|
-lm -pthread $(LIBDRM_LIB)
|
2004-10-28 08:19:21 +08:00
|
|
|
|
2007-09-29 04:51:13 +08:00
|
|
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm
|
|
|
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -L/usr/local/lib -lGL -lXt -lX11
|
2004-10-28 08:19:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
# Directories
|
2010-06-05 19:33:58 +08:00
|
|
|
SRC_DIRS = glx gallium mesa glu glut/glx glw
|
2004-10-28 08:19:21 +08:00
|
|
|
DRIVER_DIRS = dri
|
|
|
|
|
|
|
|
DRM_SOURCE_PATH=$(TOP)/../drm
|
|
|
|
|
2007-09-25 01:03:25 +08:00
|
|
|
DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \
|
2004-10-28 08:19:21 +08:00
|
|
|
unichrome savage sis
|
|
|
|
|