blob: 23d7aedfbf590c55845beffdacf2cc527d12470f [file] [log] [blame]
Brian Paula70ad912004-03-26 15:16:35 +00001# Default/template configuration
2
3# This is included by other config files which may override some
4# of these variables.
Brian Paul0e794a12006-06-22 22:50:48 +00005# Think of this as a base class from which configs are derived.
6
Brian Paula70ad912004-03-26 15:16:35 +00007
8CONFIG_NAME = default
9
10# Version info
11MESA_MAJOR=6
Brian Paul249160f2005-08-23 00:45:54 +000012MESA_MINOR=5
Brian Paul459db7b2006-07-20 04:34:36 +000013MESA_TINY=1
Brian Paula70ad912004-03-26 15:16:35 +000014
Adam Jackson8fcd1e02005-08-19 20:20:03 +000015# external projects. This should be useless now that we use libdrm.
Jon Smirl78be0b52005-07-02 21:28:01 +000016DRM_SOURCE_PATH=$(TOP)/../drm
Brian Paula70ad912004-03-26 15:16:35 +000017
18# Compiler and flags
19CC = cc
20CXX = CC
21CFLAGS = -O
22CXXFLAGS = -O
23GLU_CFLAGS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000024
25# Misc tools and flags
Brian Paula70ad912004-03-26 15:16:35 +000026MKLIB_OPTIONS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000027MKDEP = makedepend
Keith Whitwellfc236722004-12-08 15:16:36 +000028MKDEP_OPTIONS = -fdepend
Eric Anholt2fb5d152004-06-01 00:06:14 +000029MAKE = make
Brian Paul0e794a12006-06-22 22:50:48 +000030INSTALL = install
31COPY_LIBS = cp -f -d
Brian Paula70ad912004-03-26 15:16:35 +000032
Brian Paulf4f1c292005-07-01 01:27:00 +000033# Python and flags (generally only needed by the developers)
34PYTHON2 = python
35PYTHON_FLAGS = -t -O -O
36
Brian Paula70ad912004-03-26 15:16:35 +000037# Library names (base name)
38GL_LIB = GL
39GLU_LIB = GLU
40GLUT_LIB = glut
41GLW_LIB = GLw
42OSMESA_LIB = OSMesa
43
44
45# Library names (actual file names)
Brian Paul05bbafa2005-03-23 02:12:21 +000046GL_LIB_NAME = lib$(GL_LIB).so
47GLU_LIB_NAME = lib$(GLU_LIB).so
48GLUT_LIB_NAME = lib$(GLUT_LIB).so
49GLW_LIB_NAME = lib$(GLW_LIB).so
Brian Paul4417d4c2005-06-07 15:25:08 +000050OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
Brian Paula70ad912004-03-26 15:16:35 +000051
52
53# Optional assembly language optimization files for libGL
54ASM_SOURCES =
55
Brian Paul9408fe02004-07-20 20:43:24 +000056# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
57# order to build the Motif widget too)
Brian Paul533befc2004-03-26 21:48:09 +000058GLW_SOURCES = GLwDrawA.c
Brian Paula70ad912004-03-26 15:16:35 +000059
60
Brian Paul0e794a12006-06-22 22:50:48 +000061# Directories to build
Brian Paul883f9892006-07-13 02:50:27 +000062LIB_DIR = lib
Brian Paulf4044952004-03-26 15:46:53 +000063SRC_DIRS = mesa glu glut/glx glw
Brian Paula70ad912004-03-26 15:16:35 +000064GLU_DIRS = sgi
65DRIVER_DIRS = x11 osmesa
Brian Paulcb34c112005-05-05 13:08:06 +000066# Which subdirs under $(TOP)/progs/ to enter:
Brian Paula70ad912004-03-26 15:16:35 +000067PROGRAM_DIRS = demos redbook samples xdemos
68
69
70# Library/program dependencies
Brian Paul2216aac2006-09-06 13:56:26 +000071#EXTRA_LIB_PATH ?=
Ian Romanick9204e872005-07-02 07:38:40 +000072GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
Brian Paul883f9892006-07-13 02:50:27 +000073OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
74GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
75GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
76GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
77APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
Brian Paul0e794a12006-06-22 22:50:48 +000078
79
80
81# Installation directories (for make install)
82INSTALL_DIR = /usr/local
83DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
Brian Paul883f9892006-07-13 02:50:27 +000084
85# Where libGL will look for DRI hardware drivers
86DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
87