blob: 45efc810edc1077aab78e15303ce79a2a71244cc [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.
5
6CONFIG_NAME = default
7
8# Version info
9MESA_MAJOR=6
Brian Paul83fb8c32004-10-02 15:43:26 +000010MESA_MINOR=3
Brian Paul05fe2872005-08-16 23:13:25 +000011MESA_TINY=2
Brian Paula70ad912004-03-26 15:16:35 +000012
Adam Jackson8fcd1e02005-08-19 20:20:03 +000013# external projects. This should be useless now that we use libdrm.
Jon Smirl78be0b52005-07-02 21:28:01 +000014DRM_SOURCE_PATH=$(TOP)/../drm
Brian Paula70ad912004-03-26 15:16:35 +000015
16# Compiler and flags
17CC = cc
18CXX = CC
19CFLAGS = -O
20CXXFLAGS = -O
21GLU_CFLAGS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000022
23# Misc tools and flags
Brian Paula70ad912004-03-26 15:16:35 +000024MKLIB_OPTIONS =
Brian Paul9f4ccd82004-04-07 23:15:26 +000025MKDEP = makedepend
Keith Whitwellfc236722004-12-08 15:16:36 +000026MKDEP_OPTIONS = -fdepend
Eric Anholt2fb5d152004-06-01 00:06:14 +000027MAKE = make
Brian Paula70ad912004-03-26 15:16:35 +000028
Brian Paulf4f1c292005-07-01 01:27:00 +000029# Python and flags (generally only needed by the developers)
30PYTHON2 = python
31PYTHON_FLAGS = -t -O -O
32
Brian Paula70ad912004-03-26 15:16:35 +000033# Library names (base name)
34GL_LIB = GL
35GLU_LIB = GLU
36GLUT_LIB = glut
37GLW_LIB = GLw
38OSMESA_LIB = OSMesa
39
40
41# Library names (actual file names)
Brian Paul05bbafa2005-03-23 02:12:21 +000042GL_LIB_NAME = lib$(GL_LIB).so
43GLU_LIB_NAME = lib$(GLU_LIB).so
44GLUT_LIB_NAME = lib$(GLUT_LIB).so
45GLW_LIB_NAME = lib$(GLW_LIB).so
Brian Paul4417d4c2005-06-07 15:25:08 +000046OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
Brian Paula70ad912004-03-26 15:16:35 +000047
48
49# Optional assembly language optimization files for libGL
50ASM_SOURCES =
51
Brian Paul9408fe02004-07-20 20:43:24 +000052# GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
53# order to build the Motif widget too)
Brian Paul533befc2004-03-26 21:48:09 +000054GLW_SOURCES = GLwDrawA.c
Brian Paula70ad912004-03-26 15:16:35 +000055
56
57# Directories
58LIB_DIR = $(TOP)/lib
59INSTALL_PREFIX = /usr/local
Brian Paulf4044952004-03-26 15:46:53 +000060SRC_DIRS = mesa glu glut/glx glw
Brian Paula70ad912004-03-26 15:16:35 +000061GLU_DIRS = sgi
62DRIVER_DIRS = x11 osmesa
Brian Paulcb34c112005-05-05 13:08:06 +000063# Which subdirs under $(TOP)/progs/ to enter:
Brian Paula70ad912004-03-26 15:16:35 +000064PROGRAM_DIRS = demos redbook samples xdemos
65
66
67# Library/program dependencies
Ian Romanick9204e872005-07-02 07:38:40 +000068EXTRA_LIB_PATH ?=
69GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
Brian Pauld84f0932004-09-13 21:04:48 +000070OSMESA_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB)
71GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
Ian Romanick9204e872005-07-02 07:38:40 +000072GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
73GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
Brian Pauld84f0932004-09-13 21:04:48 +000074APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm