summaryrefslogtreecommitdiff
path: root/dist/Mesa/configs/autoconf
blob: 4ab56ae9ee4f4bc47f7121f1f83b4d4f6e0ad772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# 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)