Gallivm: need to link with libstdc++ for llvm.
[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
15 # external projects. This should be useless now that we use libdrm.
16 DRM_SOURCE_PATH=$(TOP)/../drm
17
18 # Compiler and flags
19 CC = cc
20 CXX = CC
21 HOST_CC = $(CC)
22 CFLAGS = -O
23 CXXFLAGS = -O
24 GLU_CFLAGS =
25
26 # Compiler for building demos/tests/etc
27 APP_CC = $(CC)
28 APP_CXX = $(CXX)
29
30 # Misc tools and flags
31 MKLIB_OPTIONS =
32 MKDEP = makedepend
33 MKDEP_OPTIONS = -fdepend
34 MAKE = make
35 INSTALL = $(TOP)/bin/minstall
36
37 # Python and flags (generally only needed by the developers)
38 PYTHON2 = python
39 PYTHON_FLAGS = -t -O -O
40
41 # Library names (base name)
42 GL_LIB = GL
43 GLU_LIB = GLU
44 GLUT_LIB = glut
45 GLW_LIB = GLw
46 OSMESA_LIB = OSMesa
47
48
49 # Library names (actual file names)
50 GL_LIB_NAME = lib$(GL_LIB).so
51 GLU_LIB_NAME = lib$(GLU_LIB).so
52 GLUT_LIB_NAME = lib$(GLUT_LIB).so
53 GLW_LIB_NAME = lib$(GLW_LIB).so
54 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
55
56
57 # Optional assembly language optimization files for libGL
58 MESA_ASM_SOURCES =
59
60 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
61 # order to build the Motif widget too)
62 GLW_SOURCES = GLwDrawA.c
63
64
65 # Directories to build
66 LIB_DIR = lib
67 SRC_DIRS = gallium mesa egl gallium/winsys glu glut/glx glw
68 GLU_DIRS = sgi
69 DRIVER_DIRS =
70 # Which subdirs under $(TOP)/progs/ to enter:
71 PROGRAM_DIRS = demos redbook samples glsl xdemos
72
73 # EGL directories
74 EGL_DRIVERS_DIRS = demo
75
76 # Gallium directories and
77 GALLIUM_AUXILIARY_DIRS = draw translate cso_cache pipebuffer tgsi sct rtasm util
78 GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
79 GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple failover
80 GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
81 GALLIUM_WINSYS_DIRS = xlib egl_xlib
82
83
84 # Library/program dependencies
85 #EXTRA_LIB_PATH ?=
86 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
87 OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
88 GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
89 GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
90 GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
91 APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
92
93
94
95 # Installation directories (for make install)
96 INSTALL_DIR = /usr/local
97 DRI_DRIVER_INSTALL_DIR = /usr/lib/dri
98
99 # Where libGL will look for DRI hardware drivers
100 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
101