Eric Anholt | cc18221 | 2004-10-28 00:19:21 +0000 | [diff] [blame] | 1 | # -*-makefile-*- |
| 2 | # Configuration for freebsd-dri: FreeBSD DRI hardware drivers |
| 3 | |
| 4 | include $(TOP)/configs/freebsd |
| 5 | |
| 6 | CONFIG_NAME = freebsd-dri |
| 7 | |
| 8 | # Compiler and flags |
| 9 | CC = gcc |
| 10 | CXX = g++ |
| 11 | WARN_FLAGS = -Wall |
| 12 | OPT_FLAGS = -O |
| 13 | |
Eric Anholt | f054fa8 | 2005-05-28 20:17:06 +0000 | [diff] [blame^] | 14 | EXPAT_INCLUDES = -I/usr/local/include |
Keith Whitwell | fc23672 | 2004-12-08 15:16:36 +0000 | [diff] [blame] | 15 | X11_INCLUDES = -I/usr/X11R6/include -I/usr/X11R6/include/X11/extensions |
Keith Whitwell | da3e15c | 2004-12-09 08:42:19 +0000 | [diff] [blame] | 16 | DEFINES = -DDRI_NEW_INTERFACE_ONLY |
Eric Anholt | f054fa8 | 2005-05-28 20:17:06 +0000 | [diff] [blame^] | 17 | CFLAGS = $(DEFINES) -Wmissing-prototypes -g -std=c99 -Wundef -fPIC \ |
| 18 | -ffast-math $(X11_INCLUDES) |
Keith Whitwell | da3e15c | 2004-12-09 08:42:19 +0000 | [diff] [blame] | 19 | CXXFLAGS = $(DEFINES) -Wall -g -ansi -pedantic -fPIC |
Eric Anholt | cc18221 | 2004-10-28 00:19:21 +0000 | [diff] [blame] | 20 | |
| 21 | ASM_SOURCES = |
| 22 | |
| 23 | # Library/program dependencies |
Eric Anholt | 1718e34 | 2005-02-14 06:54:50 +0000 | [diff] [blame] | 24 | DRI_LIB_DEPS = -L/usr/local/lib -lm -lpthread -lexpat |
Eric Anholt | f054fa8 | 2005-05-28 20:17:06 +0000 | [diff] [blame^] | 25 | GL_LIB_DEPS = -L/usr/X11R6/lib -lX11 -lXext -lm -lpthread |
Eric Anholt | cc18221 | 2004-10-28 00:19:21 +0000 | [diff] [blame] | 26 | |
| 27 | GLUT_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGLU -lGL -lX11 -lXmu -lXt -lXi -lm |
| 28 | GLW_LIB_DEPS = -L$(LIB_DIR) -L/usr/X11R6/lib -lGL -lXt -lXm -lX11 |
| 29 | |
| 30 | |
| 31 | # Directories |
| 32 | SRC_DIRS = mesa glu glut/glx glw glx/x11 |
| 33 | DRIVER_DIRS = dri |
| 34 | PROGRAM_DIRS = |
| 35 | WINDOW_SYSTEM=dri |
| 36 | |
| 37 | DRM_SOURCE_PATH=$(TOP)/../drm |
| 38 | |
| 39 | # ffb and gamma are missing because they have not been converted to use the new |
| 40 | # interface. |
| 41 | DRI_DIRS = dri_client i810 i830 i915 mach64 mga r128 r200 radeon tdfx \ |
| 42 | unichrome savage sis |
| 43 | |