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
27 # Misc tools and flags
29 MKLIB = $(SHELL) $(TOP)/bin/mklib
32 MKDEP_OPTIONS = -fdepend
34 INSTALL = $(SHELL) $(TOP)/bin/minstall
36 # Tools for regenerating glapi (generally only needed by the developers)
38 PYTHON_FLAGS = -t -O -O
40 INDENT_FLAGS = -i4 -nut -br -brs -npcs -ce -T GLubyte -T GLbyte -T Bool
42 # Library names (base name)
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
57 # globs used to install the lib and all symlinks
58 GL_LIB_GLOB = $(GL_LIB_NAME)*
59 GLU_LIB_GLOB = $(GLU_LIB_NAME)*
60 GLUT_LIB_GLOB = $(GLUT_LIB_NAME)*
61 GLW_LIB_GLOB = $(GLW_LIB_NAME)*
62 OSMESA_LIB_GLOB = $(OSMESA_LIB_NAME)*
64 # Optional assembly language optimization files for libGL
67 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
68 # order to build the Motif widget too)
69 GLW_SOURCES = GLwDrawA.c
70 MOTIF_CFLAGS = -I/usr/include/Motif1.2
73 # Directories to build
75 SRC_DIRS = mesa glu glut/glx glw
77 DRIVER_DIRS = x11 osmesa
78 # Which subdirs under $(TOP)/progs/ to enter:
79 PROGRAM_DIRS = demos redbook samples glsl xdemos
82 # Library dependencies
84 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
85 OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
86 GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
87 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXi -lm
88 GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
90 # Program dependencies - specific GL/glut libraries added in Makefiles
94 # Installation directories (for make install)
95 INSTALL_DIR = /usr/local
96 INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR)
97 INSTALL_INC_DIR = $(INSTALL_DIR)/include
98 DRI_DRIVER_INSTALL_DIR = $(INSTALL_LIB_DIR)/dri
100 # Where libGL will look for DRI hardware drivers
101 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)
103 # pkg-config substitutions