1 # Autoconf configuration
4 include $(TOP)/configs/default
6 # This is generated by configure
12 OPT_FLAGS = @OPT_FLAGS@
13 ARCH_FLAGS = @ARCH_FLAGS@
14 ASM_FLAGS = @ASM_FLAGS@
15 PIC_FLAGS = @PIC_FLAGS@
17 API_DEFINES = @API_DEFINES@
18 GLES_OVERLAY = @GLES_OVERLAY@
19 CFLAGS = @CPPFLAGS@ @CFLAGS@ \
20 $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
21 CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@ \
22 $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
24 EXTRA_LIB_PATH = @EXTRA_LIB_PATH@
25 RADEON_CFLAGS = @RADEON_CFLAGS@
26 RADEON_LDFLAGS = @RADEON_LDFLAGS@
27 INTEL_LIBS = @INTEL_LIBS@
28 INTEL_CFLAGS = @INTEL_CFLAGS@
30 X11_CFLAGS = @X11_CFLAGS@
31 LLVM_CFLAGS = @LLVM_CFLAGS@
32 LLVM_LDFLAGS = @LLVM_LDFLAGS@
33 LLVM_LIBS = @LLVM_LIBS@
37 MESA_ASM_SOURCES = @MESA_ASM_SOURCES@
38 GLAPI_ASM_SOURCES = @GLAPI_ASM_SOURCES@
40 # Misc tools and flags
43 MKLIB_OPTIONS = @MKLIB_OPTIONS@
45 MKDEP_OPTIONS = @MKDEP_OPTIONS@
48 # Python and flags (generally only needed by the developers)
50 PYTHON_FLAGS = -t -O -O
52 # Library names (base name)
57 OSMESA_LIB = @OSMESA_LIB@
58 GLESv1_CM_LIB = GLESv1_CM
62 # Library names (actual file names)
63 GL_LIB_NAME = @GL_LIB_NAME@
64 GLU_LIB_NAME = @GLU_LIB_NAME@
65 GLUT_LIB_NAME = @GLUT_LIB_NAME@
66 GLW_LIB_NAME = @GLW_LIB_NAME@
67 OSMESA_LIB_NAME = @OSMESA_LIB_NAME@
68 EGL_LIB_NAME = @EGL_LIB_NAME@
69 GLESv1_CM_LIB_NAME = @GLESv1_CM_LIB_NAME@
70 GLESv2_LIB_NAME = @GLESv2_LIB_NAME@
71 VG_LIB_NAME = @VG_LIB_NAME@
73 # Globs used to install the lib and all symlinks
74 GL_LIB_GLOB = @GL_LIB_GLOB@
75 GLU_LIB_GLOB = @GLU_LIB_GLOB@
76 GLUT_LIB_GLOB = @GLUT_LIB_GLOB@
77 GLW_LIB_GLOB = @GLW_LIB_GLOB@
78 OSMESA_LIB_GLOB = @OSMESA_LIB_GLOB@
79 EGL_LIB_GLOB = @EGL_LIB_GLOB@
80 GLESv1_CM_LIB_GLOB = @GLESv1_CM_LIB_GLOB@
81 GLESv2_LIB_GLOB = @GLESv2_LIB_GLOB@
82 VG_LIB_GLOB = @VG_LIB_GLOB@
84 # Directories to build
88 DRIVER_DIRS = @DRIVER_DIRS@
89 EGL_DRIVERS_DIRS = @EGL_DRIVERS_DIRS@
90 GALLIUM_DIRS = @GALLIUM_DIRS@
91 GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@
92 GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@
93 GALLIUM_TARGET_DIRS = @GALLIUM_TARGET_DIRS@
94 GALLIUM_STATE_TRACKERS_DIRS = @GALLIUM_STATE_TRACKERS_DIRS@
95 GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a
96 GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a)
98 # Driver specific build vars
100 EGL_PLATFORMS = @EGL_PLATFORMS@
101 EGL_CLIENT_APIS = @EGL_CLIENT_APIS@
104 X11_INCLUDES = @X11_INCLUDES@
107 GLW_SOURCES = @GLW_SOURCES@
108 MOTIF_CFLAGS = @MOTIF_CFLAGS@
110 # Library/program dependencies
111 GL_LIB_DEPS = $(EXTRA_LIB_PATH) @GL_LIB_DEPS@
112 OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @OSMESA_MESA_DEPS@ \
113 $(EXTRA_LIB_PATH) @OSMESA_LIB_DEPS@
114 EGL_LIB_DEPS = $(EXTRA_LIB_PATH) @EGL_LIB_DEPS@
115 GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLU_MESA_DEPS@ \
116 $(EXTRA_LIB_PATH) @GLU_LIB_DEPS@
117 GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLUT_MESA_DEPS@ \
118 $(EXTRA_LIB_PATH) @GLUT_LIB_DEPS@
119 GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) @GLW_MESA_DEPS@ \
120 $(EXTRA_LIB_PATH) @GLW_LIB_DEPS@
121 APP_LIB_DEPS = $(EXTRA_LIB_PATH) @APP_LIB_DEPS@
122 GLESv1_CM_LIB_DEPS = $(EXTRA_LIB_PATH) @GLESv1_LIB_DEPS@
123 GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH) @GLESv2_LIB_DEPS@
124 VG_LIB_DEPS = $(EXTRA_LIB_PATH) @VG_LIB_DEPS@
127 DRI_LIB_DEPS = $(EXTRA_LIB_PATH) @DRI_LIB_DEPS@
128 LIBDRM_CFLAGS = @LIBDRM_CFLAGS@
129 LIBDRM_LIB = @LIBDRM_LIBS@
130 DRI2PROTO_CFLAGS = @DRI2PROTO_CFLAGS@
131 EXPAT_INCLUDES = @EXPAT_INCLUDES@
133 # Autoconf directories
135 exec_prefix = @exec_prefix@
137 includedir = @includedir@
139 # Installation directories (for make install)
140 INSTALL_DIR = $(prefix)
141 INSTALL_LIB_DIR = $(libdir)
142 INSTALL_INC_DIR = $(includedir)
144 # DRI installation directories
145 DRI_DRIVER_INSTALL_DIR = @DRI_DRIVER_INSTALL_DIR@
147 # Where libGL will look for DRI hardware drivers
148 DRI_DRIVER_SEARCH_DIR = @DRI_DRIVER_SEARCH_DIR@
150 # EGL driver install directory
151 EGL_DRIVER_INSTALL_DIR = @EGL_DRIVER_INSTALL_DIR@
153 # Xorg driver install directory (for xorg state-tracker)
154 XORG_DRIVER_INSTALL_DIR = @XORG_DRIVER_INSTALL_DIR@
156 # pkg-config substitutions
157 GL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
158 GL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
159 GL_PC_CFLAGS = @GL_PC_CFLAGS@
160 DRI_PC_REQ_PRIV = @DRI_PC_REQ_PRIV@
161 GLU_PC_REQ = @GLU_PC_REQ@
162 GLU_PC_REQ_PRIV = @GLU_PC_REQ_PRIV@
163 GLU_PC_LIB_PRIV = @GLU_PC_LIB_PRIV@
164 GLU_PC_CFLAGS = @GLU_PC_CFLAGS@
165 GLUT_PC_REQ_PRIV = @GLUT_PC_REQ_PRIV@
166 GLUT_PC_LIB_PRIV = @GLUT_PC_LIB_PRIV@
167 GLUT_PC_CFLAGS = @GLUT_PC_CFLAGS@
168 GLW_PC_REQ_PRIV = @GLW_PC_REQ_PRIV@
169 GLW_PC_LIB_PRIV = @GLW_PC_LIB_PRIV@
170 GLW_PC_CFLAGS = @GLW_PC_CFLAGS@
171 OSMESA_PC_REQ = @OSMESA_PC_REQ@
172 OSMESA_PC_LIB_PRIV = @OSMESA_PC_LIB_PRIV@
173 GLESv1_CM_PC_LIB_PRIV = @GLESv1_CM_PC_LIB_PRIV@
174 GLESv2_PC_LIB_PRIV = @GLESv2_PC_LIB_PRIV@
175 EGL_PC_REQ_PRIV = @GL_PC_REQ_PRIV@
176 EGL_PC_LIB_PRIV = @GL_PC_LIB_PRIV@
177 EGL_PC_CFLAGS = @GL_PC_CFLAGS@
179 EGL_DRI2_CFLAGS = @EGL_DRI2_CFLAGS@
180 EGL_DRI2_LIBS = @EGL_DRI2_LIBS@
182 MESA_LLVM = @MESA_LLVM@
184 LLVM_VERSION = @LLVM_VERSION@
185 ifneq ($(LLVM_VERSION),)
186 HAVE_LLVM := 0x0$(subst .,0,$(LLVM_VERSION:svn=))
187 DEFINES += -DHAVE_LLVM=$(HAVE_LLVM)