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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
XCOMM $XFree86: xc/lib/GL/Imakefile,v 1.43 2003/06/30 01:45:10 torrey Exp $
XCOMM
XCOMM Imake tokens which are significant to building libGL:
XCOMM
XCOMM BuildGLXLibrary - if defined, build libs in xc/lib/GL and xc/lib/GLw
XCOMM
XCOMM BuildXF86DRI - if defined, build libGL with DRI capability
XCOMM
XCOMM Only zero or one of the following can be defined at once:
XCOMM GlxBuiltInGamma - if defined, build gamma_dri.so driver into libGL
XCOMM GlxBuiltInTdfx - if defined, build tdfx_dri.so driver into libGL
XCOMM GlxBuiltInMga - if defined, build mga_dri.so driver into libGL
XCOMM GlxBuiltInI810 - if defined, build i810_dri.so driver into libGL
XCOMM GlxBuiltInR128 - if defined, build r128_dri.so driver into libGL
XCOMM GlxBuiltInRadeon - if defined, build radeon_dri.so driver into libGL
XCOMM GlxBuiltInR200 - if defined, build r200_dri.so driver into libGL
XCOMM GlxBuiltInFfb - if defined, build ffb_dri.so driver into libGL
XCOMM GlxBuiltInSIS - if defined, build sis_dri.so driver into libGL
XCOMM
XCOMM GlxUseBuiltInDRIDriver - automatically defined if any of the
XCOMM GlxBuiltIn[Gamma,Tdfx,Mga,I810,R128,Radeon,R200,Ffb,SIS] tokens is
XCOMM defined
XCOMM
XCOMM GlxBuiltInXMesa - if defined, build XMesa (Xlib Mesa driver) into libGL
XCOMM to enable rendering to displays that lack the GLX extension.
XCOMM
XCOMM GlxDriverUsesMesa - will be defined if building a DRI driver into
XCOMM libGL and it uses Mesa.
XCOMM
XCOMM GlxUseSGISI - if defined, use the SGI OpenGL Sample Implementation
XCOMM to build the GLX server extension (not fully implemented yet).
XCOMM
XCOMM NormalLibGlx - if defined, build static libGL.a library
XCOMM
XCOMM SharedLibGlx - if defined, build dynamic libGL.so library
XCOMM
XCOMM DebugLibGlx - if defined, build libGL with debug info
XCOMM
XCOMM ProfileLibGlx - if defined, build libGL with profiling info
XCOMM
XCOMM SharedGlxRev - dynamic library version, currently defined to be "1.2"
XCOMM
XCOMM GlxSoProf - if defined, build dynamic libGL for profiling with soprof
XCOMM
XCOMM GlxStubLib - purpose???
XCOMM
XCOMM
XCOMM Server-side tokens:
XCOMM BuildGlxExt
XCOMM GlxUseSGISI
NULL =
#include <Threads.tmpl>
#define IHaveSubdirs
#define PassCDebugFlags
LIBGLBUILDDIR = GL
GLXDIRS = glx
/*
* Need to build the Mesa + XMesa source in the following cases:
* BuildXF86DRI && defined(DriDrivers)
* GlxDriverUsesMesa
* GlxBuiltInXMesa
* BuildOSMesaLib
*/
#if BuildOSMesaLib || \
(BuildXF86DRI && \
(defined(DriDrivers) || GlxDriverUsesMesa || GlxBuiltInXMesa))
MESADIRS = mesa
#endif
/*
* Only need the OSmesa code in the following case:
* BuildOSMesaLib
*/
#if BuildOSMesaLib
OSMESADIRS = mesa/drivers/osmesa
#endif
/*
* Need to build the DRI code in the following cases:
* BuildXF86DRI
*/
#if BuildXF86DRI
DRIDIRS = dri/drm
#endif
/*
* Need to build the DRI drivers in the following cases:
* BuildXF86DRI && defined(DriDrivers)
*/
#if BuildXF86DRI && defined(DriDrivers)
DRIVERDIRS = mesa/drivers/dri
#endif
#if defined(DarwinArchitecture) && BuildAppleDRI
DRIDIRS = apple
#endif
/*
* The build order depends on whether the drivers are loaded into libGL or
* built-in to libGL. In the former case, libGL needs to be built before
* the drivers, and in the latter case, it needs to be built after the driver.
*/
#if BuildXF86DRI && GlxUseBuiltInDRIDriver
SUBDIRS = \
$(MESADIRS) \
$(DRIDIRS) \
$(DRIVERDIRS) \
$(GLXDIRS) \
$(LIBGLBUILDDIR) \
$(OSMESADIRS) \
$(NULL)
#else
SUBDIRS = \
$(MESADIRS) \
$(GLXDIRS) \
$(DRIDIRS) \
$(LIBGLBUILDDIR) \
$(OSMESADIRS) \
$(DRIVERDIRS) \
$(NULL)
#endif
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
|