55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
XCOMM $XFree86: xc/lib/GL/apple/Imakefile,v 1.8 2005/03/01 03:48:49 dawes 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$(DRMINCLUDESDIR) -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,$(DRMINCLUDESDIR))
|
|
|
|
#include <Library.tmpl>
|
|
|
|
LibraryObjectRule()
|
|
|
|
SubdirLibraryRule($(OBJS))
|
|
NormalLintTarget($(SRCS))
|
|
|
|
DependTarget()
|