Improve the behaviour of the build system wrt depend files.
[mesa.git] / configs / default
1 # Default/template configuration
2
3 # This is included by other config files which may override some
4 # of these variables.
5
6 CONFIG_NAME = default
7
8 # Version info
9 MESA_MAJOR=6
10 MESA_MINOR=3
11 MESA_TINY=0
12
13 # external projects
14 DRM_SOURCE_PATH=$(TOP)/../drm
15
16 # Compiler and flags
17 CC = cc
18 CXX = CC
19 CFLAGS = -O
20 CXXFLAGS = -O
21 GLU_CFLAGS =
22
23 # Misc tools and flags
24 MKLIB_OPTIONS =
25 MKDEP = makedepend
26 MKDEP_OPTIONS = -fdepend
27 MAKE = make
28
29 # Library names (base name)
30 GL_LIB = GL
31 GLU_LIB = GLU
32 GLUT_LIB = glut
33 GLW_LIB = GLw
34 OSMESA_LIB = OSMesa
35
36
37 # Library names (actual file names)
38 GL_LIB_NAME = libGL.so
39 GLU_LIB_NAME = libGLU.so
40 GLUT_LIB_NAME = libglut.so
41 GLW_LIB_NAME = libGLw.so
42 OSMESA_LIB_NAME = libOSMesa.so
43
44
45 # Optional assembly language optimization files for libGL
46 ASM_SOURCES =
47
48 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
49 # order to build the Motif widget too)
50 GLW_SOURCES = GLwDrawA.c
51
52
53 # Directories
54 LIB_DIR = $(TOP)/lib
55 INSTALL_PREFIX = /usr/local
56 SRC_DIRS = mesa glu glut/glx glw
57 GLU_DIRS = sgi
58 DRIVER_DIRS = x11 osmesa
59 PROGRAM_DIRS = demos redbook samples xdemos
60
61
62 # Library/program dependencies
63 GL_LIB_DEPS = -lX11 -lXext -lm -lpthread
64 OSMESA_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB)
65 GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
66 GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXt -lXi -lm
67 GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
68 APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm