summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/darwin/quartz/Imakefile
blob: d510f3a1a5729964d92bf9b2470b2b6243122c07 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
XCOMM $XFree86: xc/programs/Xserver/hw/darwin/quartz/Imakefile,v 1.5 2002/12/05 01:07:40 torrey Exp $

#include <Server.tmpl>

SRCS =  Preferences.m \
        XApplication.m \
        XServer.m \
        XView.m \
        aquaPicture.c \
        aquaWindow.c \
        fullscreen.c \
        quartz.c \
        quartzAudio.c \
        quartzCocoa.m \
        quartzCursor.c \
        quartzPasteboard.c \
        rootlessAquaGlue.c \
        rootlessAquaImp.m \
        rootlessCommon.c \
        rootlessGC.c \
        rootlessScreen.c \
        rootlessValTree.c \
        rootlessWindow.c \
        pseudoramiX.c

OBJS =  Preferences.o \
        XApplication.o \
        XServer.o \
        XView.o \
        aquaPicture.o \
        aquaWindow.o \
        fullscreen.o \
        quartz.o \
        quartzAudio.o \
        quartzCocoa.o \
        quartzCursor.o \
        quartzPasteboard.o \
        rootlessAquaGlue.o \
        rootlessAquaImp.o \
        rootlessCommon.o \
        rootlessGC.o \
        rootlessScreen.o \
        rootlessValTree.o \
        rootlessWindow.o \
        pseudoramiX.o

INCLUDES = -I. -I$(SERVERSRC)/fb -I$(SERVERSRC)/mi -I$(SERVERSRC)/include \
           -I$(XINCLUDESRC) -I$(FONTINCSRC) -I$(SERVERSRC)/render \
           -I$(SERVERSRC)/miext/shadow -I$(EXTINCSRC) -I.. -I$(SERVERSRC)/Xext

#if defined(XFree86CustomVersion)
CUSTOMVERSION = XFree86CustomVersion
CUSTOMVERDEF =  -DXF86_CUSTOM_VERSION='$(CUSTOMVERSION)'
#endif
#if HasCGMachPort
QUARTZDEFINES = -DHAS_CG_MACH_PORT
#endif

#if XFree86Devel
PBXBUILDSTYLE = -buildstyle Development
DEBUGDEFINES = -DROOTLESSDEBUG
#else
PBXBUILDSTYLE = -buildstyle Deployment
#endif

DEFINES = $(CUSTOMVERDEF) -DXBINDIR=$(BINDIR) -DXINITDIR=$(XINITDIR) \
          $(QUARTZDEFINES) $(DEBUGDEFINES)
EXTRAMANDEFS = -D__XBinDir__=$(BINDIR)
#if NothingOutsideProjectRoot
XDARWINROOT = $(BINDIR)
#else
XDARWINROOT = /Applications
#endif

NormalLibraryObjectRule()
NormalLibraryTarget(XQuartz,$(OBJS))

AllTarget(quartzStartup.o)

AllTarget(XDarwinStartup)
NormalProgramTarget(XDarwinStartup,XDarwinStartup.o, \
	NullParameter,NullParameter, \
	-framework CoreFoundation -framework ApplicationServices)
InstallProgram(XDarwinStartup,$(BINDIR))
install::
	-(cd $(DESTDIR)$(BINDIR); $(RM) X; $(LN) XDarwinStartup X)

AllTarget(XDarwin)
XDarwin:
	pbxbuild -target XDarwin $(PBXBUILDSTYLE)

install::
	pbxbuild install -target XDarwin $(PBXBUILDSTYLE) \
		DSTROOT=$(DESTDIR)$(XDARWINROOT)

InstallManPage(XDarwinStartup,$(MANDIR))

clean::
	pbxbuild "clean" -target XDarwin $(PBXBUILDSTYLE)

DependTarget()