1 XCOMM $XFree86: xc/programs/Xserver/hw/darwin/Imakefile,v 1.14 2002/08/28 06:19:15 torrey Exp $
6 LinkSourceFile(XFree86.man,../xfree86)
7 LinkSourceFile(appledri.h,$(LIBSRC)/GL/apple)
8 LinkSourceFile(appledristr.h,$(LIBSRC)/GL/apple)
62 AS := /System/Library/Frameworks/ApplicationServices.framework
64 INCLUDES = -I. -I$(SERVERSRC)/mi -I$(SERVERSRC)/fb -I$(EXTINCSRC) \
65 -I$(SERVERSRC)/render -I$(SERVERSRC)/include -I$(XINCLUDESRC) \
66 -I$(SERVERSRC)/os -I$(SERVERSRC)/Xext -I$(SERVERSRC)/GL/apple \
67 -I$(INCLUDESRC) -I$(FONTINCSRC) -F$(AS)/Frameworks \
72 OSNAMEDEF = -DOSNAME='" $(OSNAME)"' -DOSVENDOR='" $(OSVENDOR)"'
74 #if defined(XFree86CustomVersion)
75 CUSTOMVERSION = XFree86CustomVersion
76 CUSTOMVERDEF = -DXF86_CUSTOM_VERSION='$(CUSTOMVERSION)'
79 #if defined(BuilderString)
80 BUILDERSTRING = BuilderString
81 BUILDERMSG = -DBUILDERSTRING='$(BUILDERSTRING)'
86 DEFINES = $(CUSTOMVERDEF) -DXBINDIR=$(BINDIR) -DXINITDIR=$(XINITDIR) \
87 $(QUARTZDEFINES) $(DEBUGDEFINES)
90 DEBUGDEFINES = -DROOTLESSDEBUG
93 EXTRAMANDEFS = -D__logdir__=$(LOGDIRECTORY)
95 SpecialCObjectRule(darwin,$(ICONFIGFILES),$(OSNAMEDEF) $(BUILDERMSG) $(CUSTOMVERDEF))
97 NormalLibraryObjectRule()
98 NormalLibraryTarget(XQuartz,$(OBJS))
100 InstallManPage(Xquartz,$(MANDIR))
101 InstallManPage(XFree86,$(MANDIR))
105 MakeSubdirs($(SUBDIRS))
106 DependSubdirs($(SUBDIRS))
108 #ifndef DarwinArchEnv
109 #define DarwinArchEnv
112 PBXBUILD = DarwinArchEnv pbxbuild
113 PBXBUILDSTYLE = Development
118 #if NothingOutsideProjectRoot
119 APPINSTALLDIR = $(BINDIR)/../Applications
121 APPINSTALLDIR = /Applications/Utilities
125 $(PBXBUILD) -buildstyle $(PBXBUILDSTYLE) build
128 $(PBXBUILD) -buildstyle $(PBXBUILDSTYLE) install
129 mkdir -p $(DESTDIR)$(APPINSTALLDIR)
130 $(DITTO) $(PBXBUILDDIR)/UninstalledProducts/X11.app $(DESTDIR)$(APPINSTALLDIR)/X11.app
136 $(CC) $(CFLAGS) -c -o $@ $<