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
25 # Misc tools and flags
28 MKDEP_OPTIONS = -fdepend
30 INSTALL = $(TOP)/bin/minstall
32 # Python and flags (generally only needed by the developers)
34 PYTHON_FLAGS = -t -O -O
36 # Library names (base name)
43 LLVM_CFLAGS=-DMESA_NO_LLVM=1
44 LLVM_CXXFLAGS=-DMESA_NO_LLVM=1
46 # Library names (actual file names)
47 GL_LIB_NAME = lib$(GL_LIB).so
48 GLU_LIB_NAME = lib$(GLU_LIB).so
49 GLUT_LIB_NAME = lib$(GLUT_LIB).so
50 GLW_LIB_NAME = lib$(GLW_LIB).so
51 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
54 # Optional assembly language optimization files for libGL
57 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
58 # order to build the Motif widget too)
59 GLW_SOURCES = GLwDrawA.c
62 # Directories to build
64 SRC_DIRS = mesa glu glut/glx glw
66 DRIVER_DIRS = x11 osmesa
67 # Which subdirs under $(TOP)/progs/ to enter:
68 PROGRAM_DIRS = demos redbook samples glsl xdemos
70 # Library/program dependencies
72 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
73 OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB)
74 GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm
75 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
76 GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
77 APP_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm
81 # Installation directories (for make install)
82 INSTALL_DIR = /usr/local
83 DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri
85 # Where libGL will look for DRI hardware drivers
86 DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR)