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. |
| 5 | |
| 6 | CONFIG_NAME = default |
| 7 | |
| 8 | # Version info |
| 9 | MESA_MAJOR=6 |
Brian Paul | 83fb8c3 | 2004-10-02 15:43:26 +0000 | [diff] [blame] | 10 | MESA_MINOR=3 |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 11 | MESA_TINY=0 |
| 12 | |
Jon Smirl | c0b0b48 | 2004-04-13 04:11:32 +0000 | [diff] [blame] | 13 | # external projects |
Jon Smirl | 78be0b5 | 2005-07-02 21:28:01 +0000 | [diff] [blame^] | 14 | DRM_SOURCE_PATH=$(TOP)/../drm |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 15 | |
| 16 | # Compiler and flags |
| 17 | CC = cc |
| 18 | CXX = CC |
| 19 | CFLAGS = -O |
| 20 | CXXFLAGS = -O |
| 21 | GLU_CFLAGS = |
Brian Paul | 9f4ccd8 | 2004-04-07 23:15:26 +0000 | [diff] [blame] | 22 | |
| 23 | # Misc tools and flags |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 24 | MKLIB_OPTIONS = |
Brian Paul | 9f4ccd8 | 2004-04-07 23:15:26 +0000 | [diff] [blame] | 25 | MKDEP = makedepend |
Keith Whitwell | fc23672 | 2004-12-08 15:16:36 +0000 | [diff] [blame] | 26 | MKDEP_OPTIONS = -fdepend |
Eric Anholt | 2fb5d15 | 2004-06-01 00:06:14 +0000 | [diff] [blame] | 27 | MAKE = make |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 28 | |
Brian Paul | f4f1c29 | 2005-07-01 01:27:00 +0000 | [diff] [blame] | 29 | # Python and flags (generally only needed by the developers) |
| 30 | PYTHON2 = python |
| 31 | PYTHON_FLAGS = -t -O -O |
| 32 | |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 33 | # Library names (base name) |
| 34 | GL_LIB = GL |
| 35 | GLU_LIB = GLU |
| 36 | GLUT_LIB = glut |
| 37 | GLW_LIB = GLw |
| 38 | OSMESA_LIB = OSMesa |
| 39 | |
| 40 | |
| 41 | # Library names (actual file names) |
Brian Paul | 05bbafa | 2005-03-23 02:12:21 +0000 | [diff] [blame] | 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 |
Brian Paul | 4417d4c | 2005-06-07 15:25:08 +0000 | [diff] [blame] | 46 | OSMESA_LIB_NAME = lib$(OSMESA_LIB).so |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 47 | |
| 48 | |
| 49 | # Optional assembly language optimization files for libGL |
| 50 | ASM_SOURCES = |
| 51 | |
Brian Paul | 9408fe0 | 2004-07-20 20:43:24 +0000 | [diff] [blame] | 52 | # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in |
| 53 | # order to build the Motif widget too) |
Brian Paul | 533befc | 2004-03-26 21:48:09 +0000 | [diff] [blame] | 54 | GLW_SOURCES = GLwDrawA.c |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 55 | |
| 56 | |
| 57 | # Directories |
| 58 | LIB_DIR = $(TOP)/lib |
| 59 | INSTALL_PREFIX = /usr/local |
Brian Paul | f404495 | 2004-03-26 15:46:53 +0000 | [diff] [blame] | 60 | SRC_DIRS = mesa glu glut/glx glw |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 61 | GLU_DIRS = sgi |
| 62 | DRIVER_DIRS = x11 osmesa |
Brian Paul | cb34c11 | 2005-05-05 13:08:06 +0000 | [diff] [blame] | 63 | # Which subdirs under $(TOP)/progs/ to enter: |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 64 | PROGRAM_DIRS = demos redbook samples xdemos |
| 65 | |
| 66 | |
| 67 | # Library/program dependencies |
Ian Romanick | 9204e87 | 2005-07-02 07:38:40 +0000 | [diff] [blame] | 68 | EXTRA_LIB_PATH ?= |
| 69 | GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread |
Brian Paul | d84f093 | 2004-09-13 21:04:48 +0000 | [diff] [blame] | 70 | OSMESA_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) |
| 71 | GLU_LIB_DEPS = -L$(LIB_DIR) -l$(GL_LIB) -lm |
Ian Romanick | 9204e87 | 2005-07-02 07:38:40 +0000 | [diff] [blame] | 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 |
Brian Paul | d84f093 | 2004-09-13 21:04:48 +0000 | [diff] [blame] | 74 | APP_LIB_DEPS = -L$(LIB_DIR) -l$(GLUT_LIB) -l$(GLU_LIB) -l$(GL_LIB) -lm |