1 # Default/template configuration
3 # This is included by other config files which may override some
13 # external projects. This should be useless now that we use libdrm.
14 DRM_SOURCE_PATH=$(TOP)/../drm
23 # Misc tools and flags
26 MKDEP_OPTIONS = -fdepend
29 # Python and flags (generally only needed by the developers)
31 PYTHON_FLAGS = -t -O -O
33 # Library names (base name)
41 # Library names (actual file names)
42 GL_LIB_NAME = lib$(GL_LIB).so
43 GLU_LIB_NAME = lib$(GLU_LIB).so
44 GLUT_LIB_NAME = lib$(GLUT_LIB).so
45 GLW_LIB_NAME = lib$(GLW_LIB).so
46 OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
49 # Optional assembly language optimization files for libGL
52 # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in
53 # order to build the Motif widget too)
54 GLW_SOURCES = GLwDrawA.c
59 INSTALL_PREFIX = /usr/local
60 SRC_DIRS = mesa glu glut/glx glw
62 DRIVER_DIRS = x11 osmesa
63 # Which subdirs under $(TOP)/progs/ to enter:
64 PROGRAM_DIRS = demos redbook samples xdemos
67 # Library/program dependencies
69 GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread
70 OSMESA_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB)
71 GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm
72 GLUT_LIB_DEPS = -L$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lX11 -lXmu -lXt -lXi -lm
73 GLW_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) $(EXTRA_LIB_PATH) -lXt -lX11
74 APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm