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.
15 # external projects. This should be useless now that we use libdrm.
16 DRM_SOURCE_PATH=$(TOP)/../drm
26 # Misc tools and flags
29 MKDEP_OPTIONS = -fdepend
31 INSTALL = $(TOP)/bin/minstall
33 # Python and flags (generally only needed by the developers)
35 PYTHON_FLAGS = -t -O -O
37 # Library names (base name)
45 # Library names (actual file names)
46 GL_LIB_NAME = lib$(GL_LIB).so
47 GLU_LIB_NAME = lib$(GLU_LIB).so
48 GLUT_LIB_NAME = lib$(GLUT_LIB).so
49 GLW_LIB_NAME = lib$(GLW_LIB).so
50 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
53 # Optional assembly language optimization files for libGL
56 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
57 # order to build the Motif widget too)
58 GLW_SOURCES = GLwDrawA.c
61 # Directories to build
63 SRC_DIRS = gallium mesa gallium/winsys glu glut/glx glw
66 # Which subdirs under $(TOP)/progs/ to enter:
67 PROGRAM_DIRS = demos redbook samples glsl xdemos
70 # Gallium directories and
71 GALLIUM_AUXILIARY_DIRS = draw cso_cache pipebuffer tgsi rtasm util
72 GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a)
73 GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple failover
74 GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
75 GALLIUM_WINSYS_DIRS = xlib
78 # Library/program dependencies
80 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
81 OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
82 GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
83 GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm
84 GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11
85 APP_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
89 # Installation directories (for make install)
90 INSTALL_DIR = /usr/local
91 DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
93 # Where libGL will look for DRI hardware drivers
94 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)