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