108 lines
2.9 KiB
Plaintext
108 lines
2.9 KiB
Plaintext
|
# Autoconf configuration
|
||
|
|
||
|
# Pull in the defaults
|
||
|
include $(TOP)/configs/default
|
||
|
|
||
|
# This is generated by configure
|
||
|
CONFIG_NAME = autoconf
|
||
|
|
||
|
# Compiler and flags
|
||
|
CC = gcc
|
||
|
CXX = g++
|
||
|
OPT_FLAGS =
|
||
|
ARCH_FLAGS =
|
||
|
ASM_FLAGS =
|
||
|
PIC_FLAGS = -fPIC
|
||
|
DEFINES =
|
||
|
CFLAGS = -g -O2 -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing \
|
||
|
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(ASM_FLAGS) $(DEFINES)
|
||
|
CXXFLAGS = -g -O2 -Wall -fno-strict-aliasing \
|
||
|
$(OPT_FLAGS) $(PIC_FLAGS) $(ARCH_FLAGS) $(DEFINES)
|
||
|
LDFLAGS =
|
||
|
EXTRA_LIB_PATH =
|
||
|
|
||
|
# Assembler
|
||
|
ASM_SOURCES =
|
||
|
ASM_API =
|
||
|
|
||
|
# Misc tools and flags
|
||
|
MAKE = gmake
|
||
|
SHELL = /bin/sh
|
||
|
MKLIB_OPTIONS =
|
||
|
MKDEP = /usr/X11R6/bin/makedepend
|
||
|
MKDEP_OPTIONS = -fdepend -I/usr/lib/gcc-lib/amd64-unknown-openbsd4.4/3.3.5/include
|
||
|
|
||
|
# 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
|
||
|
|
||
|
# Library names (actual file names)
|
||
|
GL_LIB_NAME = lib$(GL_LIB).so
|
||
|
GLU_LIB_NAME = lib$(GLU_LIB).so
|
||
|
GLUT_LIB_NAME = lib$(GLUT_LIB).so
|
||
|
GLW_LIB_NAME = lib$(GLW_LIB).so
|
||
|
OSMESA_LIB_NAME = lib$(OSMESA_LIB).so
|
||
|
|
||
|
# Directories to build
|
||
|
LIB_DIR = lib
|
||
|
SRC_DIRS = glx/x11 mesa glu glw glut/glx
|
||
|
GLU_DIRS = sgi
|
||
|
DRIVER_DIRS = dri
|
||
|
# Which subdirs under $(TOP)/progs/ to enter:
|
||
|
PROGRAM_DIRS = xdemos demos redbook samples glsl
|
||
|
|
||
|
# Driver specific build vars
|
||
|
DRI_DIRS = i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v savage sis tdfx trident unichrome ffb swrast
|
||
|
WINDOW_SYSTEM = dri
|
||
|
USING_EGL = 0
|
||
|
|
||
|
# Dependencies
|
||
|
X11_INCLUDES = -I/usr/X11R6/include
|
||
|
|
||
|
# GLw motif setup
|
||
|
GLW_SOURCES = GLwDrawA.c
|
||
|
MOTIF_CFLAGS =
|
||
|
|
||
|
# Library/program dependencies
|
||
|
GL_LIB_DEPS = $(EXTRA_LIB_PATH) -L/usr/X11R6/lib -lXxf86vm -lXext -lXdamage -lXfixes -lX11 -lXau -lXdmcp -L/usr/X11R6/lib -ldrm -lm -lpthread
|
||
|
OSMESA_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) \
|
||
|
$(EXTRA_LIB_PATH)
|
||
|
GLU_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) \
|
||
|
$(EXTRA_LIB_PATH) -lm
|
||
|
GLUT_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GLU_LIB) -l$(GL_LIB) \
|
||
|
$(EXTRA_LIB_PATH) -L/usr/X11R6/lib -lXmu -lXt -lSM -lICE -lXi -lXext -lX11 -lXdmcp -lXau -lm
|
||
|
GLW_LIB_DEPS = -L$(TOP)/$(LIB_DIR) -l$(GL_LIB) \
|
||
|
$(EXTRA_LIB_PATH) -L/usr/X11R6/lib -lXt -lX11 -lXau -lXdmcp -lSM -lICE
|
||
|
APP_LIB_DEPS = $(EXTRA_LIB_PATH) -lm
|
||
|
|
||
|
# DRI dependencies
|
||
|
DRI_LIB_DEPS = $(EXTRA_LIB_PATH) -L/usr/X11R6/lib -ldrm -lexpat -lm -lpthread
|
||
|
LIBDRM_CFLAGS = -I/usr/X11R6/include -I/usr/X11R6/include/drm
|
||
|
LIBDRM_LIB = -L/usr/X11R6/lib -ldrm
|
||
|
DRI2PROTO_CFLAGS = -I/usr/X11R6/include
|
||
|
EXPAT_INCLUDES =
|
||
|
|
||
|
# Autoconf directories
|
||
|
prefix = /usr/X11R6
|
||
|
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)
|