Merge branch 'mesa_7_5_branch'
[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=6
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 GLU_CFLAGS =
27
28 # Compiler for building demos/tests/etc
29 APP_CC = $(CC)
30 APP_CXX = $(CXX)
31
32 # Misc tools and flags
33 SHELL = /bin/sh
34 MKLIB = $(SHELL) $(TOP)/bin/mklib
35 MKLIB_OPTIONS =
36 MKDEP = makedepend
37 MKDEP_OPTIONS = -fdepend
38 MAKE = make
39
40 # Use MINSTALL for installing libraries, INSTALL for everything else
41 MINSTALL = $(SHELL) $(TOP)/bin/minstall
42 INSTALL = $(MINSTALL)
43
44 # Tools for regenerating glapi (generally only needed by the developers)
45 PYTHON2 = python
46 PYTHON_FLAGS = -t -O -O
47 INDENT = indent
48 INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
49
50 # Library names (base name)
51 GL_LIB = GL
52 GLU_LIB = GLU
53 GLUT_LIB = glut
54 GLEW_LIB = GLEW
55 GLW_LIB = GLw
56 OSMESA_LIB = OSMesa
57
58
59 # Library names (actual file names)
60 GL_LIB_NAME = lib$(GL_LIB).so
61 GLU_LIB_NAME = lib$(GLU_LIB).so
62 GLUT_LIB_NAME = lib$(GLUT_LIB).so
63 GLEW_LIB_NAME = lib$(GLEW_LIB).a
64 GLW_LIB_NAME = lib$(GLW_LIB).so
65 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
66
67 # globs used to install the lib and all symlinks
68 GL_LIB_GLOB = $(GL_LIB_NAME)*
69 GLU_LIB_GLOB = $(GLU_LIB_NAME)*
70 GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
71 GLW_LIB_GLOB = $(GLW_LIB_NAME)*
72 OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
73
74 # Optional assembly language optimization files for libGL
75 MESA_ASM_SOURCES =
76
77 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
78 # order to build the Motif widget too)
79 GLW_SOURCES = GLwDrawA.c
80 MOTIF_CFLAGS = -I/usr/include/Motif1.2
81
82
83 # Directories to build
84 LIB_DIR = lib
85 SRC_DIRS = mesa gallium egl gallium/winsys glu glut/glx glew glw
86 GLU_DIRS = sgi
87 DRIVER_DIRS = x11 osmesa
88 # Which subdirs under $(TOP)/progs/ to enter:
89 PROGRAM_DIRS = demos redbook samples glsl xdemos
90
91 # EGL directories
92 EGL_DRIVERS_DIRS = demo
93
94 # Gallium directories and
95 GALLIUM_DIRS = auxiliary drivers state_trackers
96 GALLIUM_AUXILIARY_DIRS = rbug draw translate cso_cache pipebuffer tgsi sct rtasm util indices
97 GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
98 GALLIUM_DRIVERS_DIRS = softpipe i915simple failover trace identity
99 GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
100 GALLIUM_WINSYS_DIRS = xlib egl_xlib
101 GALLIUM_WINSYS_DRM_DIRS =
102 GALLIUM_STATE_TRACKERS_DIRS = glx
103
104
105 # Library dependencies
106 #EXTRA_LIB_PATH ?=
107 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
108 EGL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -ldl
109 OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
110 GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
111 GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
112 GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
113 APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
114
115 # Program dependencies - specific GL/glut libraries added in Makefiles
116 APP_LIB_DEPS = -lm
117
118
119 # Installation directories (for make install)
120 INSTALL_DIR = /usr/local
121 INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
122 INSTALL_INC_DIR = $(INSTALL_DIR)/include
123 DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
124
125 # Where libGL will look for DRI hardware drivers
126 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
127
128 # Xorg driver install directory (for xorg state-tracker)
129 XORG_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/xorg/modules/drivers
130
131 # pkg-config substitutions
132 GL_PC_REQ_PRIV =
133 GL_PC_LIB_PRIV =
134 GL_PC_CFLAGS =
135 DRI_PC_REQ_PRIV =
136 GLU_PC_REQ = gl
137 GLU_PC_REQ_PRIV =
138 GLU_PC_LIB_PRIV =
139 GLU_PC_CFLAGS =
140 GLUT_PC_REQ_PRIV =
141 GLUT_PC_LIB_PRIV =
142 GLUT_PC_CFLAGS =
143 GLW_PC_REQ_PRIV =
144 GLW_PC_LIB_PRIV =
145 GLW_PC_CFLAGS =
146 OSMESA_PC_REQ =
147 OSMESA_PC_LIB_PRIV =