aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/GL/apple/Imakefile
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/GL/apple/Imakefile')
-rw-r--r--nx-X11/lib/GL/apple/Imakefile54
1 files changed, 54 insertions, 0 deletions
diff --git a/nx-X11/lib/GL/apple/Imakefile b/nx-X11/lib/GL/apple/Imakefile
new file mode 100644
index 000000000..0a593e63e
--- /dev/null
+++ b/nx-X11/lib/GL/apple/Imakefile
@@ -0,0 +1,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()