forked from KolibriOS/kolibrios
89a9a5e25c
git-svn-id: svn://kolibrios.org@1902 a494cfbc-eb01-0410-851d-a64ba20cac60
193 lines
4.4 KiB
Plaintext
193 lines
4.4 KiB
Plaintext
# Autoconf configuration
|
|
|
|
# Pull in the defaults
|
|
include $(TOP)/configs/default
|
|
|
|
# This is generated by configure
|
|
CONFIG_NAME = autoconf
|
|
|
|
# Compiler and flags
|
|
AR = ar rc
|
|
CC = gcc
|
|
CXX = g++
|
|
OPT_FLAGS =
|
|
ARCH_FLAGS =
|
|
ASM_FLAGS = -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_SSE_ASM
|
|
PIC_FLAGS =
|
|
DEFINES = -D_POSIX_C_SOURCE=199309L -UWIN32 -U_WIN32 -DSTDCALL_API
|
|
API_DEFINES = -DFEATURE_GL=1
|
|
GLES_OVERLAY = 0
|
|
CFLAGS = -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing \
|
|
-I$(TOP)/../newlib/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) \
|
|
$(DEFINES)
|
|
CXXFLAGS = -g -O2 -Wall -fno-strict-aliasing \
|
|
-I$(TOP)/../newlib/include $(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
|
LDFLAGS =
|
|
EXTRA_LIB_PATH =
|
|
RADEON_CFLAGS =
|
|
RADEON_LDFLAGS =
|
|
INTEL_LIBS =
|
|
INTEL_CFLAGS =
|
|
X11_LIBS = -lX11
|
|
X11_CFLAGS =
|
|
LLVM_CFLAGS =
|
|
LLVM_LDFLAGS =
|
|
LLVM_LIBS =
|
|
GLW_CFLAGS =
|
|
GLUT_CFLAGS =
|
|
|
|
# dlopen
|
|
DLOPEN_LIBS = -ldl
|
|
|
|
# Source selection
|
|
MESA_ASM_SOURCES = $(X86_SOURCES)
|
|
GLAPI_ASM_SOURCES = $(X86_API)
|
|
|
|
# Misc tools and flags
|
|
MAKE = make
|
|
SHELL = /bin/bash
|
|
MKLIB_OPTIONS = -static
|
|
MKDEP = /usr/bin/makedepend
|
|
MKDEP_OPTIONS = -fdepend -I/usr/lib/gcc/i686-linux-gnu/4.4.5/include -I/usr/lib/gcc/i686-linux-gnu/4.4.5/include-fixed
|
|
INSTALL = /usr/bin/install -c
|
|
|
|
# Python and flags (generally only needed by the developers)
|
|
PYTHON2 = python
|
|
PYTHON_FLAGS = -t -O -O
|
|
|
|
# Library names (base name)
|
|
GL_LIB = GL
|
|
GLU_LIB = GLU
|
|
GLUT_LIB = glut
|
|
GLW_LIB = GLw
|
|
OSMESA_LIB = OSMesa
|
|
GLESv1_CM_LIB = GLESv1_CM
|
|
GLESv2_LIB = GLESv2
|
|
VG_LIB = OpenVG
|
|
|
|
# Library names (actual file names)
|
|
GL_LIB_NAME = lib$(GL_LIB).a
|
|
GLU_LIB_NAME = lib$(GLU_LIB).a
|
|
GLUT_LIB_NAME = lib$(GLUT_LIB).a
|
|
GLW_LIB_NAME = lib$(GLW_LIB).a
|
|
OSMESA_LIB_NAME = lib$(OSMESA_LIB).a
|
|
EGL_LIB_NAME = lib$(EGL_LIB).a
|
|
GLESv1_CM_LIB_NAME = lib$(GLESv1_CM_LIB).a
|
|
GLESv2_LIB_NAME = lib$(GLESv2_LIB).a
|
|
VG_LIB_NAME = lib$(VG_LIB).a
|
|
|
|
# Globs used to install the lib and all symlinks
|
|
GL_LIB_GLOB = lib$(GL_LIB).*a*
|
|
GLU_LIB_GLOB = lib$(GLU_LIB).*a*
|
|
GLUT_LIB_GLOB = lib$(GLUT_LIB).*a*
|
|
GLW_LIB_GLOB = lib$(GLW_LIB).*a*
|
|
OSMESA_LIB_GLOB = lib$(OSMESA_LIB).*a*
|
|
EGL_LIB_GLOB = lib$(EGL_LIB).*a*
|
|
GLESv1_CM_LIB_GLOB = lib$(GLESv1_CM_LIB).*a*
|
|
GLESv2_LIB_GLOB = lib$(GLESv2_LIB).*a*
|
|
VG_LIB_GLOB = lib$(VG_LIB).*a*
|
|
|
|
# Directories to build
|
|
LIB_DIR = lib
|
|
SRC_DIRS = mapi/glapi glsl mesa
|
|
GLU_DIRS = sgi
|
|
DRIVER_DIRS = osmesa
|
|
EGL_DRIVERS_DIRS =
|
|
GALLIUM_TARGET_DIRS =
|
|
GALLIUM_STATE_TRACKERS_DIRS =
|
|
|
|
# Driver specific build vars
|
|
EGL_PLATFORMS =
|
|
EGL_CLIENT_APIS = $(GL_LIB)
|
|
|
|
# Dependencies
|
|
X11_INCLUDES =
|
|
|
|
# GLw motif setup
|
|
GLW_SOURCES =
|
|
MOTIF_CFLAGS =
|
|
|
|
# Library/program dependencies
|
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH)
|
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) \
|
|
$(EXTRA_LIB_PATH)
|
|
EGL_LIB_DEPS = $(EXTRA_LIB_PATH)
|
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) \
|
|
$(EXTRA_LIB_PATH)
|
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) \
|
|
$(EXTRA_LIB_PATH)
|
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) \
|
|
$(EXTRA_LIB_PATH)
|
|
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lm
|
|
GLESv1_CM_LIB_DEPS = $(EXTRA_LIB_PATH)
|
|
GLESv2_LIB_DEPS = $(EXTRA_LIB_PATH)
|
|
VG_LIB_DEPS = $(EXTRA_LIB_PATH)
|
|
|
|
# DRI dependencies
|
|
DRI_LIB_DEPS = $(EXTRA_LIB_PATH)
|
|
LIBDRM_CFLAGS =
|
|
LIBDRM_LIB =
|
|
DRI2PROTO_CFLAGS =
|
|
EXPAT_INCLUDES =
|
|
|
|
# Autoconf directories
|
|
prefix = /usr/local
|
|
exec_prefix = ${prefix}
|
|
libdir = ${exec_prefix}/lib
|
|
includedir = ${prefix}/include
|
|
|
|
# Installation directories (for make install)
|
|
INSTALL_DIR = $(prefix)
|
|
INSTALL_LIB_DIR = $(libdir)
|
|
INSTALL_INC_DIR = $(includedir)
|
|
|
|
# DRI installation directories
|
|
DRI_DRIVER_INSTALL_DIR = ${libdir}/dri
|
|
|
|
# Where libGL will look for DRI hardware drivers
|
|
DRI_DRIVER_SEARCH_DIR = ${DRI_DRIVER_INSTALL_DIR}
|
|
|
|
# EGL driver install directory
|
|
EGL_DRIVER_INSTALL_DIR = ${libdir}/egl
|
|
|
|
# Xorg driver install directory (for xorg state-tracker)
|
|
XORG_DRIVER_INSTALL_DIR = ${exec_prefix}/lib/xorg/modules/drivers
|
|
|
|
# pkg-config substitutions
|
|
GL_PC_REQ_PRIV =
|
|
GL_PC_LIB_PRIV =
|
|
GL_PC_CFLAGS =
|
|
DRI_PC_REQ_PRIV =
|
|
GLU_PC_REQ =
|
|
GLU_PC_REQ_PRIV =
|
|
GLU_PC_LIB_PRIV =
|
|
GLU_PC_CFLAGS =
|
|
GLUT_PC_REQ_PRIV =
|
|
GLUT_PC_LIB_PRIV =
|
|
GLUT_PC_CFLAGS =
|
|
GLW_PC_REQ_PRIV =
|
|
GLW_PC_LIB_PRIV =
|
|
GLW_PC_CFLAGS =
|
|
OSMESA_PC_REQ =
|
|
OSMESA_PC_LIB_PRIV = -lm
|
|
GLESv1_CM_PC_LIB_PRIV =
|
|
GLESv2_PC_LIB_PRIV =
|
|
EGL_PC_REQ_PRIV =
|
|
EGL_PC_LIB_PRIV =
|
|
EGL_PC_CFLAGS =
|
|
|
|
XCB_DRI2_CFLAGS =
|
|
XCB_DRI2_LIBS =
|
|
LIBUDEV_CFLAGS =
|
|
LIBUDEV_LIBS =
|
|
|
|
MESA_LLVM = 0
|
|
|
|
LLVM_VERSION =
|
|
ifneq ($(LLVM_VERSION),)
|
|
HAVE_LLVM := 0x0$(subst .,0,$(LLVM_VERSION:svn=))
|
|
DEFINES += -DHAVE_LLVM=$(HAVE_LLVM)
|
|
endif
|
|
|
|
HAVE_XF86VIDMODE =
|