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 |
Brian | e371a5f | 2007-04-27 17:01:23 -0600 | [diff] [blame] | 11 | MESA_MAJOR=7 |
Brian | c128c3c | 2007-05-14 14:30:36 -0600 | [diff] [blame] | 12 | MESA_MINOR=1 |
Brian | e371a5f | 2007-04-27 17:01:23 -0600 | [diff] [blame] | 13 | MESA_TINY=0 |
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 |
Ian Romanick | b3492a2 | 2008-01-03 15:08:53 -0800 | [diff] [blame] | 21 | HOST_CC = $(CC) |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 22 | CFLAGS = -O |
| 23 | CXXFLAGS = -O |
| 24 | GLU_CFLAGS = |
Brian Paul | 9f4ccd8 | 2004-04-07 23:15:26 +0000 | [diff] [blame] | 25 | |
Brian Paul | 90c93bb | 2008-09-11 11:00:54 -0600 | [diff] [blame^] | 26 | # Compiler for building demos/tests/etc |
| 27 | APP_CC = $(CC) |
| 28 | APP_CXX = $(CXX) |
| 29 | |
Brian Paul | 9f4ccd8 | 2004-04-07 23:15:26 +0000 | [diff] [blame] | 30 | # Misc tools and flags |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 31 | MKLIB_OPTIONS = |
Brian Paul | 9f4ccd8 | 2004-04-07 23:15:26 +0000 | [diff] [blame] | 32 | MKDEP = makedepend |
Keith Whitwell | fc23672 | 2004-12-08 15:16:36 +0000 | [diff] [blame] | 33 | MKDEP_OPTIONS = -fdepend |
Eric Anholt | 2fb5d15 | 2004-06-01 00:06:14 +0000 | [diff] [blame] | 34 | MAKE = make |
Brian Paul | 464fcd0 | 2006-10-19 20:09:05 +0000 | [diff] [blame] | 35 | INSTALL = $(TOP)/bin/minstall |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 36 | |
Brian Paul | f4f1c29 | 2005-07-01 01:27:00 +0000 | [diff] [blame] | 37 | # Python and flags (generally only needed by the developers) |
| 38 | PYTHON2 = python |
| 39 | PYTHON_FLAGS = -t -O -O |
| 40 | |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 41 | # Library names (base name) |
| 42 | GL_LIB = GL |
| 43 | GLU_LIB = GLU |
| 44 | GLUT_LIB = glut |
| 45 | GLW_LIB = GLw |
| 46 | OSMESA_LIB = OSMesa |
| 47 | |
| 48 | |
| 49 | # Library names (actual file names) |
Brian Paul | 05bbafa | 2005-03-23 02:12:21 +0000 | [diff] [blame] | 50 | GL_LIB_NAME = lib$(GL_LIB).so |
| 51 | GLU_LIB_NAME = lib$(GLU_LIB).so |
| 52 | GLUT_LIB_NAME = lib$(GLUT_LIB).so |
| 53 | GLW_LIB_NAME = lib$(GLW_LIB).so |
Brian Paul | 4417d4c | 2005-06-07 15:25:08 +0000 | [diff] [blame] | 54 | OSMESA_LIB_NAME = lib$(OSMESA_LIB).so |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 55 | |
| 56 | |
| 57 | # Optional assembly language optimization files for libGL |
José Fonseca | 90b2beb | 2008-02-19 13:27:13 +0900 | [diff] [blame] | 58 | MESA_ASM_SOURCES = |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 59 | |
Brian Paul | 9408fe0 | 2004-07-20 20:43:24 +0000 | [diff] [blame] | 60 | # GLw widget sources (Append "GLwMDrawA.c" here and add -lXm to GLW_LIB_DEPS in |
| 61 | # order to build the Motif widget too) |
Brian Paul | 533befc | 2004-03-26 21:48:09 +0000 | [diff] [blame] | 62 | GLW_SOURCES = GLwDrawA.c |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 63 | |
| 64 | |
Brian Paul | 0e794a1 | 2006-06-22 22:50:48 +0000 | [diff] [blame] | 65 | # Directories to build |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 66 | LIB_DIR = lib |
Brian Paul | e7725e1 | 2008-06-05 14:12:27 -0600 | [diff] [blame] | 67 | SRC_DIRS = gallium mesa egl gallium/winsys glu glut/glx glw |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 68 | GLU_DIRS = sgi |
José Fonseca | bfd5916 | 2008-02-18 14:25:04 +0900 | [diff] [blame] | 69 | DRIVER_DIRS = |
Brian Paul | cb34c11 | 2005-05-05 13:08:06 +0000 | [diff] [blame] | 70 | # Which subdirs under $(TOP)/progs/ to enter: |
Brian | 5dba996 | 2007-04-08 15:50:31 -0600 | [diff] [blame] | 71 | PROGRAM_DIRS = demos redbook samples glsl xdemos |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 72 | |
Jakob Bornecrantz | e59086a | 2008-07-13 18:04:49 +0200 | [diff] [blame] | 73 | # EGL directories |
| 74 | EGL_DRIVERS_DIRS = demo |
Zack Rusin | d76a7b6 | 2007-10-24 08:34:01 -0400 | [diff] [blame] | 75 | |
José Fonseca | bfd5916 | 2008-02-18 14:25:04 +0900 | [diff] [blame] | 76 | # Gallium directories and |
Jakob Bornecrantz | 5de823c | 2008-07-10 22:39:56 +0200 | [diff] [blame] | 77 | GALLIUM_AUXILIARY_DIRS = draw translate cso_cache pipebuffer tgsi sct rtasm util |
José Fonseca | bfd5916 | 2008-02-18 14:25:04 +0900 | [diff] [blame] | 78 | GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a) |
| 79 | GALLIUM_DRIVER_DIRS = softpipe i915simple i965simple failover |
| 80 | GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVER_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a) |
Brian Paul | e7725e1 | 2008-06-05 14:12:27 -0600 | [diff] [blame] | 81 | GALLIUM_WINSYS_DIRS = xlib egl_xlib |
José Fonseca | bfd5916 | 2008-02-18 14:25:04 +0900 | [diff] [blame] | 82 | |
| 83 | |
Brian Paul | a70ad91 | 2004-03-26 15:16:35 +0000 | [diff] [blame] | 84 | # Library/program dependencies |
Brian Paul | 2216aac | 2006-09-06 13:56:26 +0000 | [diff] [blame] | 85 | #EXTRA_LIB_PATH ?= |
Ian Romanick | ffcb4d8 | 2008-01-03 14:59:14 -0800 | [diff] [blame] | 86 | GL_LIB_DEPS = $(EXTRA_LIB_PATH) -lX11 -lXext -lm -lpthread |
| 87 | OSMESA_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) |
| 88 | GLU_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lm |
| 89 | GLUT_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) -lX11 -lXmu -lXi -lm |
| 90 | GLW_LIB_DEPS = $(EXTRA_LIB_PATH) -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) -lXt -lX11 |
| 91 | APP_LIB_DEPS = $(EXTRA_LIB_PATH) -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] | 92 | |
| 93 | |
| 94 | |
| 95 | # Installation directories (for make install) |
Brian Paul | 79b5d3e | 2006-10-19 20:11:15 +0000 | [diff] [blame] | 96 | INSTALL_DIR = /usr/local |
Alan Hourihane | 3eeafb7 | 2008-08-17 19:12:54 +0100 | [diff] [blame] | 97 | DRI_DRIVER_INSTALL_DIR = /usr/lib/dri |
Brian Paul | 883f989 | 2006-07-13 02:50:27 +0000 | [diff] [blame] | 98 | |
| 99 | # Where libGL will look for DRI hardware drivers |
| 100 | DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR) |
| 101 | |