Merge branch 'master' into drm-gem
[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 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 CFLAGS = -O
23 CXXFLAGS = -O
24 LDFLAGS =
25 GLU_CFLAGS =
26
27 # Misc tools and flags
28 SHELL = /bin/sh
29 MKLIB = $(SHELL) $(TOP)/bin/mklib
30 MKLIB_OPTIONS =
31 MKDEP = makedepend
32 MKDEP_OPTIONS = -fdepend
33 MAKE = make
34 INSTALL = $(SHELL) $(TOP)/bin/minstall
35
36 # Tools for regenerating glapi (generally only needed by the developers)
37 PYTHON2 = python
38 PYTHON_FLAGS = -t -O -O
39 INDENT = indent
40 INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
41
42 # Library names (base name)
43 GL_LIB = GL
44 GLU_LIB = GLU
45 GLUT_LIB = glut
46 GLW_LIB = GLw
47 OSMESA_LIB = OSMesa
48
49
50 # Library names (actual file names)
51 GL_LIB_NAME = lib$(GL_LIB).so
52 GLU_LIB_NAME = lib$(GLU_LIB).so
53 GLUT_LIB_NAME = lib$(GLUT_LIB).so
54 GLW_LIB_NAME = lib$(GLW_LIB).so
55 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
56
57
58 # Optional assembly language optimization files for libGL
59 ASM_SOURCES =
60
61 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
62 # order to build the Motif widget too)
63 GLW_SOURCES = GLwDrawA.c
64 MOTIF_CFLAGS = -I/usr/include/Motif1.2
65
66
67 # Directories to build
68 LIB_DIR = lib
69 SRC_DIRS = mesa glu glut/glx glw
70 GLU_DIRS = sgi
71 DRIVER_DIRS = x11 osmesa
72 # Which subdirs under $(TOP)/progs/ to enter:
73 PROGRAM_DIRS = demos redbook samples glsl xdemos
74
75
76 # Library dependencies
77 #EXTRA_LIB_PATH ?=
78 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
79 OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
80 GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
81 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXi -lm
82 GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
83
84 # Program dependencies - specific GL/glut libraries added in Makefiles
85 APP_LIB_DEPS = -lm
86
87
88 # Installation directories (for make install)
89 INSTALL_DIR = /usr/local
90 INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
91 INSTALL_INC_DIR = $(INSTALL_DIR)/include
92 DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
93
94 # Where libGL will look for DRI hardware drivers
95 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
96