summaryrefslogtreecommitdiff
path: root/xc/lib/GL/mesa/src/OSmesa/Imakefile
blob: c15de3f30c1c72cdceeda0835f532a85383078da (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
XCOMM $XFree86: xc/lib/GL/mesa/src/OSmesa/Imakefile,v 1.10 2001/04/03 02:29:33 dawes Exp $

#include <Threads.tmpl>

#define DoNormalLib (NormalLibGlx || SharedLibGlxWithoutPIC)
#define DoSharedLib (SharedLibGlx && !SharedLibGlxWithoutPIC)
#define DoExtraLib SharedLibGlx
#define DoDebugLib DebugLibGlx
#define DoProfileLib ProfileLibGlx

#include "../Imakefile.inc"
#ifdef i386Architecture
#include "../X86/Imakefile.inc"
#endif

LinkSourceFile(osmesa.c, $(MESASRCDIR)/src/OSmesa)

#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif

MESA_INCLUDES = -I$(MESASRCDIR)/src/OSmesa -I$(MESASRCDIR)/src \
		-I$(MESASRCDIR)/include

      DEFINES = $(ALLOC_DEFINES) $(DRI_DEFINES)
     INCLUDES = -I$(XINCLUDESRC) -I$(EXTINCSRC) $(MESA_INCLUDES) $(DRI_INCLUDES)

     MESAOBJS = $(COREMESAOBJS) $(MESA_ASM_OBJS)
    MESAUOBJS = $(COREMESAUOBJS) $(MESA_ASM_UOBJS)
    MESADOBJS = $(COREMESADOBJS) $(MESA_ASM_DOBJS)
    MESAPOBJS = $(COREMESAPOBJS) $(MESA_ASM_POBJS)

         SRCS = osmesa.c
         OBJS = osmesa.o $(MESAOBJS)
#if DoSharedLib
        UOBJS = unshared/osmesa.o $(MESAUOBJS)
#else
        UOBJS = $(OBJS)
#endif
        DOBJS = debugger/osmesa.o $(MESADOBJS)
        POBJS = profiled/osmesa.o $(MESAPOBJS)

#if LocalThreads
  THREADOBJS = $(THREADS_LIBS)
#endif

#if !GlxUseBuiltInDRIDriver
 REQUIREDLIBS = $(LDPRELIB) $(GLXLIB)
#endif

#include <Library.tmpl>

LibraryObjectRule()

SubdirLibraryRule($(OBJS))
NormalLintTarget($(SRCS))

LIBNAME = OSMesa
SOREV = 3.3


#if DoNormalLib
NormalLibraryTarget($(LIBNAME), $(UOBJS))
InstallLibrary($(LIBNAME),$(USRLIBDIR))
#endif

#if DoSharedLib
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()