1 # Default/template configuration
3 # This is included by other config files which may override some
5 # Think of this as a base class from which configs are derived.
14 MESA_VERSION = $(MESA_MAJOR).$(MESA_MINOR).$(MESA_TINY)
16 # external projects. This should be useless now that we use libdrm.
17 DRM_SOURCE_PATH=$(TOP)/../drm
28 # Compiler for building demos/tests/etc
32 # Misc tools and flags
34 MKLIB = $(SHELL) $(TOP)/bin/mklib
37 MKDEP_OPTIONS = -fdepend
39 INSTALL = $(SHELL) $(TOP)/bin/minstall
41 # Tools for regenerating glapi (generally only needed by the developers)
43 PYTHON_FLAGS = -t -O -O
45 INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
47 # Library names (base name)
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
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)*
71 # Optional assembly language optimization files for libGL
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
80 # Directories to build
82 SRC_DIRS = mesa gallium egl gallium/winsys glu glut/glx glew glw
84 DRIVER_DIRS = x11 osmesa
85 # Which subdirs under $(TOP)/progs/ to enter:
86 PROGRAM_DIRS = demos redbook samples glsl xdemos
89 EGL_DRIVERS_DIRS = demo
91 # Gallium directories and
92 GALLIUM_DIRS = auxiliary drivers state_trackers
93 GALLIUM_AUXILIARY_DIRS = draw translate cso_cache pipebuffer tgsi sct rtasm util indices
94 GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
95 GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple failover trace
96 GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
97 GALLIUM_WINSYS_DIRS = xlib egl_xlib
98 GALLIUM_WINSYS_DRM_DIRS =
99 GALLIUM_STATE_TRACKERS_DIRS = glx
102 # Library dependencies
104 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
105 OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
106 GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
107 GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
108 GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
109 APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
111 # Program dependencies - specific GL/glut libraries added in Makefiles
115 # Installation directories (for make install)
116 INSTALL_DIR = /usr/local
117 INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
118 INSTALL_INC_DIR = $(INSTALL_DIR)/include
119 DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
121 # Where libGL will look for DRI hardware drivers
122 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
124 # pkg-config substitutions