Merge branch 'gallium-0.2-radeon' into gallium-0.2
[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=3
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 INSTALL = $(SHELL) $(TOP)/bin/minstall
40
41 # Tools for regenerating glapi (generally only needed by the developers)
42 PYTHON2 = python
43 PYTHON_FLAGS = -t -O -O
44 INDENT = indent
45 INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
46
47 # Library names (base name)
48 GL_LIB = GL
49 GLU_LIB = GLU
50 GLUT_LIB = glut
51 GLEW_LIB = GLEW
52 GLW_LIB = GLw
53 OSMESA_LIB = OSMesa
54
55
56 # Library names (actual file names)
57 GL_LIB_NAME = lib$(GL_LIB).so
58 GLU_LIB_NAME = lib$(GLU_LIB).so
59 GLUT_LIB_NAME = lib$(GLUT_LIB).so
60 GLEW_LIB_NAME = lib$(GLEW_LIB).a
61 GLW_LIB_NAME = lib$(GLW_LIB).so
62 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
63
64 # globs used to install the lib and all symlinks
65 GL_LIB_GLOB = $(GL_LIB_NAME)*
66 GLU_LIB_GLOB = $(GLU_LIB_NAME)*
67 GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
68 GLW_LIB_GLOB = $(GLW_LIB_NAME)*
69 OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
70
71 # Optional assembly language optimization files for libGL
72 MESA_ASM_SOURCES =
73
74 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
75 # order to build the Motif widget too)
76 GLW_SOURCES = GLwDrawA.c
77 MOTIF_CFLAGS = -I/usr/include/Motif1.2
78
79
80 # Directories to build
81 LIB_DIR = lib
82 SRC_DIRS = mesa gallium egl gallium/winsys glu glut/glx glew glw
83 GLU_DIRS = sgi
84 DRIVER_DIRS =
85 # Which subdirs under $(TOP)/progs/ to enter:
86 PROGRAM_DIRS = demos redbook samples glsl xdemos
87
88 # EGL directories
89 EGL_DRIVERS_DIRS = demo
90
91 # Gallium directories and
92 GALLIUM_AUXILIARY_DIRS = draw translate cso_cache pipebuffer tgsi sct rtasm util indices
93 GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
94 GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple nv04 nv10 nv20 nv30 nv40 nv50 failover
95 GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
96 GALLIUM_WINSYS_DIRS = xlib egl_xlib
97
98
99 # Library dependencies
100 #EXTRA_LIB_PATH ?=
101 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
102 OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
103 GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
104 GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
105 GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
106 APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
107
108 # Program dependencies - specific GL/glut libraries added in Makefiles
109 APP_LIB_DEPS = -lm
110
111
112 # Installation directories (for make install)
113 INSTALL_DIR = /usr/local
114 INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
115 INSTALL_INC_DIR = $(INSTALL_DIR)/include
116 DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
117
118 # Where libGL will look for DRI hardware drivers
119 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
120
121 # pkg-config substitutions
122 GL_PC_REQ_PRIV =
123 GL_PC_LIB_PRIV =
124 GL_PC_CFLAGS =
125 DRI_PC_REQ_PRIV =
126 GLU_PC_REQ = gl
127 GLU_PC_REQ_PRIV =
128 GLU_PC_LIB_PRIV =
129 GLU_PC_CFLAGS =
130 GLUT_PC_REQ_PRIV =
131 GLUT_PC_LIB_PRIV =
132 GLUT_PC_CFLAGS =
133 GLW_PC_REQ_PRIV =
134 GLW_PC_LIB_PRIV =
135 GLW_PC_CFLAGS =
136 OSMESA_PC_REQ =
137 OSMESA_PC_LIB_PRIV =