Merge commit 'origin/master' into drm-gem
[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 # Think of this as a base class from which configs are derived.
6
7
8 CONFIG_NAME = default
9
10 # Version info
11 MESA_MAJOR=7
12 MESA_MINOR=1
13 MESA_TINY=0
14 MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
15
16 # external projects. This should be useless now that we use libdrm.
17 DRM_SOURCE_PATH=$(TOP)/../drm
18
19 # Compiler and flags
20 CC = cc
21 CXX = CC
22 CFLAGS = -O
23 CXXFLAGS = -O
24 LDFLAGS =
25 GLU_CFLAGS =
26
27 # Misc tools and flags
28 MKLIB_OPTIONS =
29 MKDEP = makedepend
30 MKDEP_OPTIONS = -fdepend
31 MAKE = make
32 INSTALL = $(TOP)/bin/minstall
33
34 # Tools for regenerating glapi (generally only needed by the developers)
35 PYTHON2 = python
36 PYTHON_FLAGS = -t -O -O
37 INDENT = indent
38 INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
39
40 # Library names (base name)
41 GL_LIB = GL
42 GLU_LIB = GLU
43 GLUT_LIB = glut
44 GLW_LIB = GLw
45 OSMESA_LIB = OSMesa
46
47
48 # Library names (actual file names)
49 GL_LIB_NAME = lib$(GL_LIB).so
50 GLU_LIB_NAME = lib$(GLU_LIB).so
51 GLUT_LIB_NAME = lib$(GLUT_LIB).so
52 GLW_LIB_NAME = lib$(GLW_LIB).so
53 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
54
55
56 # Optional assembly language optimization files for libGL
57 ASM_SOURCES =
58
59 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
60 # order to build the Motif widget too)
61 GLW_SOURCES = GLwDrawA.c
62
63
64 # Directories to build
65 LIB_DIR = lib
66 SRC_DIRS = mesa glu glut/glx glw
67 GLU_DIRS = sgi
68 DRIVER_DIRS = x11 osmesa
69 # Which subdirs under $(TOP)/progs/ to enter:
70 PROGRAM_DIRS = demos redbook samples glsl xdemos
71
72
73 # Library dependencies
74 #EXTRA_LIB_PATH ?=
75 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
76 OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
77 GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
78 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXi -lm
79 GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
80
81 # Program dependencies - specific GL/glut libraries added in Makefiles
82 APP_LIB_DEPS = -lm
83
84
85 # Installation directories (for make install)
86 INSTALL_DIR = /usr/local
87 DRI_DRIVER_INSTALL_DIR = $(INSTALL_DIR)/$(LIB_DIR)/dri
88
89 # Where libGL will look for DRI hardware drivers
90 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
91