Remove talloc from the make and automake build systems.
[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=11
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 HOST_CC = $(CC)
23 CFLAGS = -O
24 CXXFLAGS = -O
25 LDFLAGS =
26 HOST_CFLAGS = $(CFLAGS)
27 GLU_CFLAGS =
28 GLX_TLS = no
29
30 # Compiler for building demos/tests/etc
31 APP_CC = $(CC)
32 APP_CXX = $(CXX)
33
34 # Misc tools and flags
35 SHELL = /bin/sh
36 MKLIB = $(SHELL) $(TOP)/bin/mklib
37 MKLIB_OPTIONS =
38 MKDEP = makedepend
39 MKDEP_OPTIONS = -fdepend
40 MAKE = make
41
42 # Use MINSTALL for installing libraries, INSTALL for everything else
43 MINSTALL = $(SHELL) $(TOP)/bin/minstall
44 INSTALL = $(MINSTALL)
45
46 # Tools for regenerating glapi (generally only needed by the developers)
47 PYTHON2 = python
48 PYTHON_FLAGS = -t -O -O
49 INDENT = indent
50 INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
51
52 # Library names (base name)
53 GL_LIB = GL
54 GLU_LIB = GLU
55 GLUT_LIB = glut
56 GLW_LIB = GLw
57 OSMESA_LIB = OSMesa
58 EGL_LIB = EGL
59 GLESv1_CM_LIB = GLESv1_CM
60 GLESv2_LIB = GLESv2
61 VG_LIB = OpenVG
62 GLAPI_LIB = glapi
63
64
65 # Library names (actual file names)
66 GL_LIB_NAME = lib$(GL_LIB).so
67 GLU_LIB_NAME = lib$(GLU_LIB).so
68 GLUT_LIB_NAME = lib$(GLUT_LIB).so
69 GLW_LIB_NAME = lib$(GLW_LIB).so
70 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
71 EGL_LIB_NAME = lib$(EGL_LIB).so
72 GLESv1_CM_LIB_NAME = lib$(GLESv1_CM_LIB).so
73 GLESv2_LIB_NAME = lib$(GLESv2_LIB).so
74 VG_LIB_NAME = lib$(VG_LIB).so
75 GLAPI_LIB_NAME = lib$(GLAPI_LIB).so
76
77 # globs used to install the lib and all symlinks
78 GL_LIB_GLOB = $(GL_LIB_NAME)*
79 GLU_LIB_GLOB = $(GLU_LIB_NAME)*
80 GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
81 GLW_LIB_GLOB = $(GLW_LIB_NAME)*
82 OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
83 EGL_LIB_GLOB = $(EGL_LIB_NAME)*
84 GLESv1_CM_LIB_GLOB = $(GLESv1_CM_LIB_NAME)*
85 GLESv2_LIB_GLOB = $(GLESv2_LIB_NAME)*
86 VG_LIB_GLOB = $(VG_LIB_NAME)*
87 GLAPI_LIB_GLOB = $(GLAPI_LIB_NAME)*
88
89 # Optional assembly language optimization files for libGL
90 MESA_ASM_SOURCES =
91
92 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
93 # order to build the Motif widget too)
94 GLW_SOURCES = GLwDrawA.c
95 MOTIF_CFLAGS = -I/usr/include/Motif1.2
96
97
98 # Directories to build
99 LIB_DIR = lib
100 SRC_DIRS = glsl mapi/glapi mapi/vgapi mesa \
101 gallium egl gallium/winsys gallium/targets glu glut/glx glw
102 GLU_DIRS = sgi
103 DRIVER_DIRS = x11 osmesa
104
105 # EGL drivers to build
106 EGL_DRIVERS_DIRS = glx
107
108 # Gallium directories and
109 GALLIUM_DIRS = auxiliary drivers state_trackers
110 GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
111 GALLIUM_DRIVERS_DIRS = softpipe trace rbug noop identity galahad i915 i965 svga r300 nvfx nv50 failover
112 GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
113 GALLIUM_WINSYS_DIRS = sw sw/xlib
114 GALLIUM_TARGET_DIRS = libgl-xlib
115 GALLIUM_STATE_TRACKERS_DIRS = glx vega
116
117 # native platforms EGL should support
118 EGL_PLATFORMS = x11
119 EGL_CLIENT_APIS = $(GL_LIB)
120
121 # Library dependencies
122 #EXTRA_LIB_PATH ?=
123 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
124 EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -ldl -lpthread
125 OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
126 GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
127 GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
128 GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
129 APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
130 GLESv1_CM_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
131 GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
132 VG_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
133 GLAPI_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread
134
135 # Program dependencies - specific GL/glut libraries added in Makefiles
136 APP_LIB_DEPS = -lm
137 X11_LIBS = -lX11
138
139 DLOPEN_LIBS = -ldl
140
141 # Installation directories (for make install)
142 INSTALL_DIR = /usr/local
143 INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
144 INSTALL_INC_DIR = $(INSTALL_DIR)/include
145 DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
146
147 # Where libGL will look for DRI hardware drivers
148 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
149
150 # EGL driver install directory
151 EGL_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/egl
152
153 # Xorg driver install directory (for xorg state-tracker)
154 XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
155
156 # pkg-config substitutions
157 GL_PC_REQ_PRIV =
158 GL_PC_LIB_PRIV =
159 GL_PC_CFLAGS =
160 DRI_PC_REQ_PRIV =
161 GLU_PC_REQ = gl
162 GLU_PC_REQ_PRIV =
163 GLU_PC_LIB_PRIV =
164 GLU_PC_CFLAGS =
165 GLUT_PC_REQ_PRIV =
166 GLUT_PC_LIB_PRIV =
167 GLUT_PC_CFLAGS =
168 GLW_PC_REQ_PRIV =
169 GLW_PC_LIB_PRIV =
170 GLW_PC_CFLAGS =
171 OSMESA_PC_REQ =
172 OSMESA_PC_LIB_PRIV =
173 GLESv1_CM_PC_REQ_PRIV =
174 GLESv1_CM_PC_LIB_PRIV =
175 GLESv1_CM_PC_CFLAGS =
176 GLESv2_PC_REQ_PRIV =
177 GLESv2_PC_LIB_PRIV =
178 GLESv2_PC_CFLAGS =
179 VG_PC_REQ_PRIV =
180 VG_PC_LIB_PRIV =
181 VG_PC_CFLAGS =