summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/darwin/bundle/Imakefile
blob: aaeed48a724f9c1de08b4f6167d1db13e134c23e (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
XCOMM $XFree86: xc/programs/Xserver/hw/darwin/bundle/Imakefile,v 1.9 2001/04/18 20:28:52 torrey Exp $

#include <Server.tmpl>

SRCS =	Preferences.m \
        XApplication.m \
        Xserver.m \
        quartz.c \
        quartzAudio.c \
        quartzCocoa.m \
        quartzCursor.c \
        quartzPasteboard.c

OBJS =	Preferences.o \
        XApplication.o \
        Xserver.o \
        quartz.o \
        quartzAudio.o \
        quartzCocoa.o \
        quartzCursor.o \
        quartzPasteboard.o

INCLUDES = -I. -I$(SERVERSRC)/mi -I$(SERVERSRC)/include -I$(XINCLUDESRC) \
           -I$(FONTINCSRC)

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

DEFINES = $(CUSTOMVERDEF) -DXBINDIR=$(DESTDIR)$(BINDIR) -DXINITDIR=$(XINITDIR)
#if NothingOutsideProjectRoot
XDARWINROOT = $(DESTDIR)$(BINDIR)
#else
XDARWINROOT = /Applications
#endif

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

AllTarget(quartzStartup.o)

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

AllTarget(XDarwin)
XDarwin:
	pbxbuild -target XDarwin

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

clean::
	pbxbuild "clean" -target XDarwin

DependTarget()