Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 1 | # Autoconf configuration |
| 2 | |
| 3 | # Pull in the defaults |
| 4 | include $(TOP)/configs/default |
| 5 | |
| 6 | # This is generated by configure |
| 7 | CONFIG_NAME = autoconf |
| 8 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 9 | # Compiler and flags |
| 10 | CC = @CC@ |
| 11 | CXX = @CXX@ |
| 12 | OPT_FLAGS = @OPT_FLAGS@ |
| 13 | ARCH_FLAGS = @ARCH_FLAGS@ |
| 14 | ASM_FLAGS = @ASM_FLAGS@ |
| 15 | PIC_FLAGS = @PIC_FLAGS@ |
| 16 | DEFINES = @DEFINES@ |
| 17 | CFLAGS = @CPPFLAGS@ @CFLAGS@ \ |
| 18 | $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES) |
| 19 | CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ \ |
| 20 | $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES) |
| 21 | LDFLAGS = @LDFLAGS@ |
| 22 | EXTRA_LIB_PATH = @EXTRA_LIB_PATH@ |
| 23 | |
| 24 | # Assembler |
Dan Nicholson | c5bae14 | 2009-02-11 11:04:29 -0800 | [diff] [blame] | 25 | MESA_ASM_SOURCES = @MESA_ASM_SOURCES@ |
| 26 | GLAPI_ASM_SOURCES = @GLAPI_ASM_SOURCES@ |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 27 | |
| 28 | # Misc tools and flags |
| 29 | MAKE = @MAKE@ |
Dan Nicholson | bfb27b5 | 2008-06-30 09:40:30 -0700 | [diff] [blame] | 30 | SHELL = @SHELL@ |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 31 | MKLIB_OPTIONS = @MKLIB_OPTIONS@ |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 32 | MKDEP = @MKDEP@ |
Kristian Høgsberg | bcecea6 | 2008-02-25 18:50:26 -0500 | [diff] [blame] | 33 | MKDEP_OPTIONS = @MKDEP_OPTIONS@ |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 34 | |
| 35 | # Python and flags (generally only needed by the developers) |
| 36 | PYTHON2 = python |
| 37 | PYTHON_FLAGS = -t -O -O |
| 38 | |
| 39 | # Library names (base name) |
| 40 | GL_LIB = GL |
| 41 | GLU_LIB = GLU |
| 42 | GLUT_LIB = glut |
| 43 | GLW_LIB = GLw |
Dan Nicholson | 6689f9e | 2007-12-05 21:04:15 -0800 | [diff] [blame] | 44 | OSMESA_LIB = @OSMESA_LIB@ |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 45 | |
| 46 | # Library names (actual file names) |
| 47 | GL_LIB_NAME = @GL_LIB_NAME@ |
| 48 | GLU_LIB_NAME = @GLU_LIB_NAME@ |
| 49 | GLUT_LIB_NAME = @GLUT_LIB_NAME@ |
| 50 | GLW_LIB_NAME = @GLW_LIB_NAME@ |
| 51 | OSMESA_LIB_NAME = @OSMESA_LIB_NAME@ |
| 52 | |
Siddhartha Chaudhuri | 1a46c8a | 2009-02-09 07:58:38 -0700 | [diff] [blame] | 53 | # Globs used to install the lib and all symlinks |
| 54 | GL_LIB_GLOB = @GL_LIB_GLOB@ |
| 55 | GLU_LIB_GLOB = @GLU_LIB_GLOB@ |
| 56 | GLUT_LIB_GLOB = @GLUT_LIB_GLOB@ |
| 57 | GLW_LIB_GLOB = @GLW_LIB_GLOB@ |
| 58 | OSMESA_LIB_GLOB = @OSMESA_LIB_GLOB@ |
| 59 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 60 | # Directories to build |
| 61 | LIB_DIR = @LIB_DIR@ |
| 62 | SRC_DIRS = @SRC_DIRS@ |
| 63 | GLU_DIRS = @GLU_DIRS@ |
| 64 | DRIVER_DIRS = @DRIVER_DIRS@ |
Jakob Bornecrantz | 7e54d7d | 2009-02-11 02:38:21 +0100 | [diff] [blame] | 65 | GALLIUM_DIRS = @GALLIUM_DIRS@ |
Jerome Glisse | 14f79d4 | 2008-12-18 13:36:07 +0100 | [diff] [blame] | 66 | GALLIUM_AUXILIARY_DIRS = @GALLIUM_AUXILIARY_DIRS@ |
Jakob Bornecrantz | d67bd60 | 2009-02-20 11:03:18 +0000 | [diff] [blame^] | 67 | GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@ |
Jakob Bornecrantz | 7e54d7d | 2009-02-11 02:38:21 +0100 | [diff] [blame] | 68 | GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@ |
| 69 | GALLIUM_WINSYS_DRM_DIRS = @GALLIUM_WINSYS_DRM_DIRS@ |
| 70 | GALLIUM_STATE_TRACKERS_DIRS = @GALLIUM_STATE_TRACKERS_DIRS@ |
Jerome Glisse | 14f79d4 | 2008-12-18 13:36:07 +0100 | [diff] [blame] | 71 | GALLIUM_AUXILIARIES = $(foreach DIR,$(GALLIUM_AUXILIARY_DIRS),$(TOP)/src/gallium/auxiliary/$(DIR)/lib$(DIR).a) |
Jakob Bornecrantz | d67bd60 | 2009-02-20 11:03:18 +0000 | [diff] [blame^] | 72 | GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a) |
Jerome Glisse | 14f79d4 | 2008-12-18 13:36:07 +0100 | [diff] [blame] | 73 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 74 | # Which subdirs under $(TOP)/progs/ to enter: |
| 75 | PROGRAM_DIRS = @PROGRAM_DIRS@ |
| 76 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 77 | # Driver specific build vars |
Jakob Bornecrantz | 7e54d7d | 2009-02-11 02:38:21 +0100 | [diff] [blame] | 78 | DRI_DIRS = @DRI_DIRS@ |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 79 | WINDOW_SYSTEM = @WINDOW_SYSTEM@ |
| 80 | USING_EGL = @USING_EGL@ |
| 81 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 82 | # Dependencies |
| 83 | X11_INCLUDES = @X11_INCLUDES@ |
| 84 | |
Dan Nicholson | 776c60d | 2008-07-18 07:40:41 -0700 | [diff] [blame] | 85 | # GLw motif setup |
| 86 | GLW_SOURCES = @GLW_SOURCES@ |
| 87 | MOTIF_CFLAGS = @MOTIF_CFLAGS@ |
| 88 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 89 | # Library/program dependencies |
| 90 | GL_LIB_DEPS = $(EXTRA_LIB_PATH) @GL_LIB_DEPS@ |
| 91 | OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \ |
| 92 | $(EXTRA_LIB_PATH) @OSMESA_LIB_DEPS@ |
| 93 | GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLU_MESA_DEPS@ \ |
| 94 | $(EXTRA_LIB_PATH) @GLU_LIB_DEPS@ |
| 95 | GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLUT_MESA_DEPS@ \ |
| 96 | $(EXTRA_LIB_PATH) @GLUT_LIB_DEPS@ |
| 97 | GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLW_MESA_DEPS@ \ |
| 98 | $(EXTRA_LIB_PATH) @GLW_LIB_DEPS@ |
| 99 | APP_LIB_DEPS = $(EXTRA_LIB_PATH) @APP_LIB_DEPS@ |
| 100 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 101 | # DRI dependencies |
| 102 | DRI_LIB_DEPS = $(EXTRA_LIB_PATH) @DRI_LIB_DEPS@ |
| 103 | LIBDRM_CFLAGS = @LIBDRM_CFLAGS@ |
| 104 | LIBDRM_LIB = @LIBDRM_LIBS@ |
Kristian Høgsberg | e82dd8c | 2008-03-26 19:26:59 -0400 | [diff] [blame] | 105 | DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@ |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 106 | EXPAT_INCLUDES = @EXPAT_INCLUDES@ |
| 107 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 108 | # Autoconf directories |
| 109 | prefix = @prefix@ |
| 110 | exec_prefix = @exec_prefix@ |
| 111 | libdir = @libdir@ |
Dan Nicholson | 11ac5b2 | 2008-07-03 09:17:44 -0700 | [diff] [blame] | 112 | includedir = @includedir@ |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 113 | |
| 114 | # Installation directories (for make install) |
| 115 | INSTALL_DIR = $(prefix) |
Dan Nicholson | 11ac5b2 | 2008-07-03 09:17:44 -0700 | [diff] [blame] | 116 | INSTALL_LIB_DIR = $(libdir) |
| 117 | INSTALL_INC_DIR = $(includedir) |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 118 | |
| 119 | # DRI installation directories |
| 120 | DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@ |
| 121 | |
| 122 | # Where libGL will look for DRI hardware drivers |
| 123 | DRI_DRIVER_SEARCH_DIR = $(DRI_DRIVER_INSTALL_DIR) |
Dan Nicholson | 71e208b | 2008-11-24 11:01:57 -0800 | [diff] [blame] | 124 | |
| 125 | # pkg-config substitutions |
| 126 | GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@ |
| 127 | GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@ |
| 128 | GL_PC_CFLAGS = @GL_PC_CFLAGS@ |
| 129 | DRI_PC_REQ_PRIV = @DRI_PC_REQ_PRIV@ |
| 130 | GLU_PC_REQ = @GLU_PC_REQ@ |
| 131 | GLU_PC_REQ_PRIV = @GLU_PC_REQ_PRIV@ |
Dan Nicholson | 71e208b | 2008-11-24 11:01:57 -0800 | [diff] [blame] | 132 | GLU_PC_LIB_PRIV = @GLU_PC_LIB_PRIV@ |
| 133 | GLU_PC_CFLAGS = @GLU_PC_CFLAGS@ |
| 134 | GLUT_PC_REQ_PRIV = @GLUT_PC_REQ_PRIV@ |
| 135 | GLUT_PC_LIB_PRIV = @GLUT_PC_LIB_PRIV@ |
| 136 | GLUT_PC_CFLAGS = @GLUT_PC_CFLAGS@ |
| 137 | GLW_PC_REQ_PRIV = @GLW_PC_REQ_PRIV@ |
| 138 | GLW_PC_LIB_PRIV = @GLW_PC_LIB_PRIV@ |
| 139 | GLW_PC_CFLAGS = @GLW_PC_CFLAGS@ |
Dan Nicholson | 8be02fc | 2008-12-14 09:35:29 -0800 | [diff] [blame] | 140 | OSMESA_PC_REQ = @OSMESA_PC_REQ@ |
| 141 | OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@ |