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