aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/GL/apple/Imakefile
blob: 0a593e63e9f0a750afd3cd706079b6218fe9183d (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
XCOMM $XFree86: xc/lib/GL/apple/Imakefile,v 1.2 2003/10/09 23:42:32 torrey Exp $

#include <Threads.tmpl>

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

       XPRDIR = $(SERVERSRC)/hw/darwin/quartz/xpr

LinkSourceFile(x-list.c,$(XPRDIR))
LinkSourceFile(x-list.h,$(XPRDIR))
LinkSourceFile(x-hash.c,$(XPRDIR))
LinkSourceFile(x-hash.h,$(XPRDIR))

#if Malloc0ReturnsNull
ALLOC_DEFINES = -DMALLOC_0_RETURNS_NULL
#endif

     DRI_SRCS = dri_glx.c dri_driver.c dri_dispatch.c x-hash.c x-list.c
     DRI_OBJS = dri_glx.o dri_driver.o dri_dispatch.o x-hash.o x-list.o
     DRI_INCS = -I. -I$(GLXLIBSRC)/glx -I$(INCLUDESRC) -I$(INCLUDESRC)/GL \
                -I$(XINCLUDESRC) -I$(SERVERSRC)/GL/dri -I$(XPINCDIR) \
                -I$(MESASRCDIR)/include -I$(MESASRCDIR)/src/mesa/glapi \
                -I$(GLXLIBSRC)/include

           AS = /System/Library/Frameworks/ApplicationServices.framework

      DEFINES = $(ALLOC_DEFINES) GlxDefines $(GLX_DEFS) -DXP_NO_X_HEADERS=1 \
                -DOSVERSION=OSMajorVersion*100+OSMinorVersion
     INCLUDES = -I$(XLIBSRC) -I$(EXTINCSRC) -I$(XF86OSSRC) \
                -I$(DRMSRCDIR)/shared-core -I$(DRI_INCS) -F$(AS)/Frameworks
         SRCS = appledri.c $(DRI_SRCS)
         OBJS = appledri.o  $(DRI_OBJS)

/* We won't require this to run when building normally, just for updating.
   Also, don't give it any dependences so make doesn't attempt to rebuild
   it if the dates get screwed up. (It actually depends on build-dispatch
   and dri_dispatch.defs) */
dri_dispatch.h :
	./build-dispatch <dri_dispatch.defs >$@

LinkSourceFile(drm.h,$(DRMSRCDIR)/shared-core)

#include <Library.tmpl>

LibraryObjectRule()

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

DependTarget()