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
|
XCOMM $XFree86: xc/lib/GL/mesa/src/OSmesa/Imakefile,v 1.16 2002/11/25 14:04:50 eich Exp $
#include <Threads.tmpl>
#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
#define DoDebugLib DebugLibGlx
#define DoProfileLib ProfileLibGlx
/* Large PIC tables needed for Solaris SPARC builds */
#if (defined(SunArchitecture) && defined(SparcArchitecture))
# define LargePICTable YES
#endif
#include "../../array_cache/Imakefile.inc"
#include "../../math/Imakefile.inc"
#include "../../main/Imakefile.inc"
#include "../../shader/Imakefile.inc"
#include "../../shader/grammar/Imakefile.inc"
#include "../../shader/slang/Imakefile.inc"
#include "../../swrast/Imakefile.inc"
#include "../../swrast_setup/Imakefile.inc"
#include "../../tnl/Imakefile.inc"
#include "../../tnl_dd/Imakefile.inc"
#include "../../Imakefile.inc"
#if defined(i386Architecture) && !SystemV4 && MesaUseX86Asm
#include "../../x86/Imakefile.inc"
#endif
#ifdef SparcArchitecture
#include "../../sparc/Imakefile.inc"
#endif
LinkSourceFile(osmesa.c, $(MESASRCDIR)/src/mesa/drivers/osmesa)
LinkSourceFile(driverfuncs.c, $(MESASRCDIR)/src/mesa/drivers/common)
LinkSourceFile(driverfuncs.h, $(MESASRCDIR)/src/mesa/drivers/common)
#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif
MESA_INCLUDES = -I$(MESASRCDIR)/src/mesa \
-I$(MESASRCDIR)/src/mesa/glapi \
-I$(MESASRCDIR)/src/mesa/shader \
-I$(MESASRCDIR)/src/mesa/main \
-I$(MESASRCDIR)/include
DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES)
INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) $(MESA_INCLUDES) \
$(DRI_INCLUDES) -I$(GLXLIBSRC)/include
MESAOBJS = $(COREMESAOBJS) $(MESA_ASM_OBJS)
MESAUOBJS = $(COREMESAUOBJS) $(MESA_ASM_UOBJS)
MESADOBJS = $(COREMESADOBJS) $(MESA_ASM_DOBJS)
MESAPOBJS = $(COREMESAPOBJS) $(MESA_ASM_POBJS)
SRCS = osmesa.c driverfuncs.c
OBJS = osmesa.o driverfuncs.o $(MESAOBJS)
#if DoSharedLib
UOBJS = unshared/osmesa.o unshared/driverfuncs.o $(MESAUOBJS)
#else
UOBJS = $(OBJS)
#endif
DOBJS = debugger/osmesa.o debugger/driverfuncs.o $(MESADOBJS)
POBJS = profiled/osmesa.o profiled/driverfuncs.o $(MESAPOBJS)
#if LocalThreads
THREADOBJS = $(THREADS_LIBS)
#endif
#if !GlxUseBuiltInDRIDriver
# ifdef SharedOSMesaReqs
REQUIREDLIBS = SharedOSMesaReqs
# else
REQUIREDLIBS = MathLibrary $(LDPRELIB) $(XLIB) $(GLXLIB)
# endif
#endif
#include <Library.tmpl>
LibraryObjectRule()
SubdirLibraryRule($(OBJS))
NormalLintTarget($(SRCS))
LIBNAME = OSMesa
SOREV = 4.0
#if DoNormalLib
NormalLibraryTarget($(LIBNAME), $(UOBJS))
InstallLibrary($(LIBNAME),$(USRLIBDIR))
#endif
#if SharedLibGlx
SharedLibraryTarget($(LIBNAME),$(SOREV), $(OBJS), ., .)
InstallSharedLibrary($(LIBNAME),$(SOREV),$(SHLIBDIR))
#endif
#if DoDebugLib
DebuggedLibraryTarget($(LIBNAME),$(DOBJS))
InstallLibrary($(LIBNAME_d,$(USRLIBDIR))
#endif
#if DoProfileLib
ProfiledLibraryTarget($(LIBNAME), $(POBJS))
InstallLibrary($(LIBNAME)_p,$(USRLIBDIR))
#endif
DependTarget()
|