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 # Misc tools and flags
30 MKLIB = $(SHELL) $(TOP)/bin/mklib
33 MKDEP_OPTIONS = -fdepend
35 INSTALL = $(SHELL) $(TOP)/bin/minstall
37 # Tools for regenerating glapi (generally only needed by the developers)
39 PYTHON_FLAGS = -t -O -O
41 INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
43 # Library names (base name)
51 # Library names (actual file names)
52 GL_LIB_NAME = lib$(GL_LIB).so
53 GLU_LIB_NAME = lib$(GLU_LIB).so
54 GLUT_LIB_NAME = lib$(GLUT_LIB).so
55 GLW_LIB_NAME = lib$(GLW_LIB).so
56 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
58 # globs used to install the lib and all symlinks
59 GL_LIB_GLOB = $(GL_LIB_NAME)*
60 GLU_LIB_GLOB = $(GLU_LIB_NAME)*
61 GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
62 GLW_LIB_GLOB = $(GLW_LIB_NAME)*
63 OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
65 # Optional assembly language optimization files for libGL
68 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
69 # order to build the Motif widget too)
70 GLW_SOURCES = GLwDrawA.c
71 MOTIF_CFLAGS = -I/usr/include/Motif1.2
74 # Directories to build
76 SRC_DIRS = gallium mesa egl gallium/winsys glu glut/glx glw
79 # Which subdirs under $(TOP)/progs/ to enter:
80 PROGRAM_DIRS = demos redbook samples glsl xdemos
83 EGL_DRIVERS_DIRS = demo
85 # Gallium directories and
86 GALLIUM_AUXILIARY_DIRS = draw translate cso_cache pipebuffer tgsi sct rtasm util
87 GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
88 GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple failover
89 GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
90 GALLIUM_WINSYS_DIRS = xlib egl_xlib
93 # Library dependencies
95 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
96 OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
97 GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
98 GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
99 GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
100 APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
102 # Program dependencies - specific GL/glut libraries added in Makefiles
106 # Installation directories (for make install)
107 INSTALL_DIR = /usr/local
108 INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
109 INSTALL_INC_DIR = $(INSTALL_DIR)/include
110 DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
112 # Where libGL will look for DRI hardware drivers
113 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)