Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 1 | # Default/template configuration |
| 2 | |
| 3 | # This is included by other config files which may override some |
| 4 | # of these variables. |
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 5 | # Think of this as a base class from which configs are derived. |
| 6 | |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 7 | |
| 8 | CONFIG_NAME = default |
| 9 | |
| 10 | # Version info |
| 11 | MESA_MAJOR=6 |
Brian Paul | 249160f | 2005-08-23 00:45:54 +0000 | [diff] [blame] | 12 | MESA_MINOR=5 |
Brian Paul | 459db7b | 2006-07-20 04:34:36 +0000 | [diff] [blame] | 13 | MESA_TINY=1 |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 14 | |
Adam Jackson | 8fcd1e0 | 2005-08-19 20:20:03 +0000 | [diff] [blame] | 15 | # external projects. This should be useless now that we use libdrm. |
Jon Smirl | 78be0b5 | 2005-07-02 21:28:01 +0000 | [diff] [blame] | 16 | DRM_SOURCE_PATH=$(TOP)/../drm |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 17 | |
| 18 | # Compiler and flags |
| 19 | CC = cc |
| 20 | CXX = CC |
| 21 | CFLAGS = -O |
| 22 | CXXFLAGS = -O |
| 23 | GLU_CFLAGS = |
Brian Paul | 9f4ccd8 | 2004-04-07 23:15:26 +0000 | [diff] [blame] | 24 | |
| 25 | # Misc tools and flags |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 26 | MKLIB_OPTIONS = |
Brian Paul | 9f4ccd8 | 2004-04-07 23:15:26 +0000 | [diff] [blame] | 27 | MKDEP = makedepend |
Keith Whitwell | fc23672 | 2004-12-08 15:16:36 +0000 | [diff] [blame] | 28 | MKDEP_OPTIONS = -fdepend |
Eric Anholt | 2fb5d15 | 2004-06-01 00:06:14 +0000 | [diff] [blame] | 29 | MAKE = make |
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 30 | INSTALL = install |
| 31 | COPY_LIBS = cp -f -d |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 32 | |
Brian Paul | f4f1c29 | 2005-07-01 01:27:00 +0000 | [diff] [blame] | 33 | # Python and flags (generally only needed by the developers) |
| 34 | PYTHON2 = python |
| 35 | PYTHON_FLAGS = -t -O -O |
| 36 | |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 37 | # Library names (base name) |
| 38 | GL_LIB = GL |
| 39 | GLU_LIB = GLU |
| 40 | GLUT_LIB = glut |
| 41 | GLW_LIB = GLw |
| 42 | OSMESA_LIB = OSMesa |
| 43 | |
| 44 | |
| 45 | # Library names (actual file names) |
Brian Paul | 05bbafa | 2005-03-23 02:12:21 +0000 | [diff] [blame] | 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 |
Brian Paul | 4417d4c | 2005-06-07 15:25:08 +0000 | [diff] [blame] | 50 | OSMESA_LIB_NAME = lib$(OSMESA_LIB).so |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 51 | |
| 52 | |
| 53 | # Optional assembly language optimization files for libGL |
| 54 | ASM_SOURCES = |
| 55 | |
Brian Paul | 9408fe0 | 2004-07-20 20:43:24 +0000 | [diff] [blame] | 56 | # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in |
| 57 | # order to build the Motif widget too) |
Brian Paul | 533befc | 2004-03-26 21:48:09 +0000 | [diff] [blame] | 58 | GLW_SOURCES = GLwDrawA.c |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 59 | |
| 60 | |
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 61 | # Directories to build |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 62 | LIB_DIR = lib |
Brian Paul | f404495 | 2004-03-26 15:46:53 +0000 | [diff] [blame] | 63 | SRC_DIRS = mesa glu glut/glx glw |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 64 | GLU_DIRS = sgi |
| 65 | DRIVER_DIRS = x11 osmesa |
Brian Paul | cb34c11 | 2005-05-05 13:08:06 +0000 | [diff] [blame] | 66 | # Which subdirs under $(TOP)/progs/ to enter: |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 67 | PROGRAM_DIRS = demos redbook samples xdemos |
| 68 | |
| 69 | |
| 70 | # Library/program dependencies |
Brian Paul | 2216aac | 2006-09-06 13:56:26 +0000 | [diff] [blame^] | 71 | #EXTRA_LIB_PATH ?= |
Ian Romanick | 9204e87 | 2005-07-02 07:38:40 +0000 | [diff] [blame] | 72 | GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 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 |
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 78 | |
| 79 | |
| 80 | |
| 81 | # Installation directories (for make install) |
| 82 | INSTALL_DIR = /usr/local |
| 83 | DRI_DRIVER_INSTALL_DIR = /usr/X11R6/lib/modules/dri |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 84 | |
| 85 | # Where libGL will look for DRI hardware drivers |
| 86 | DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR) |
| 87 | |