aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/darwin/Imakefile
blob: 213816647a8ad757c09988b72828d6f555294ae7 (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
XCOMM $XdotOrg: xc/programs/Xserver/hw/darwin/Imakefile,v 1.6 2004/11/08 06:35:27 fabbione Exp $
XCOMM $XFree86: xc/programs/Xserver/hw/darwin/Imakefile,v 1.19 2003/05/14 05:27:55 torrey Exp $

#include <Server.tmpl>
#define IHaveSubdirs

LinkSourceFile(Xorg.man,../xfree86)

/* The version of miinitext.c in mi is built with many extensions off. */
LinkSourceFile(miinitext.c,$(SERVERSRC)/mi)
SpecialCObjectRule(miinitext,$(ICONFIGFILES),$(EXT_DEFINES))

#if BuildXInputExt
XINPUTSRCS = darwinXinput.c
XINPUTOBJS = darwinXinput.o
#endif

SRCS =	darwin.c \
        darwinEvents.c \
        darwinKeyboard.c \
        miinitext.c \
        $(XINPUTSRCS)

OBJS =	darwin.o \
        darwinEvents.o \
        darwinKeyboard.o \
        miinitext.o \
        $(XINPUTOBJS)

INCLUDES = -I. -I$(SERVERSRC)/mi -I$(SERVERSRC)/fb -I$(EXTINCSRC) \
           -I$(SERVERSRC)/render -I$(SERVERSRC)/include -I$(XINCLUDESRC) \
           -I$(SERVERSRC)/os -I$(INCLUDESRC) -I$(FONTINCSRC) \
           -I$(SERVERSRC)/miext/shadow -I$(SERVERSRC)/hw/xfree86 \
           -I$(SERVERSRC)/Xi

OSNAME = OSName
OSVENDOR = OSVendor
OSNAMEDEF = -DOSNAME='" $(OSNAME)"' -DOSVENDOR='" $(OSVENDOR)"'
#if defined(XorgCustomVersion) || defined(XFree86CustomVersion)
# if defined(XorgCustomVersion)
CUSTOMVERSION = XorgCustomVersion
# else 
CUSTOMVERSION = XFree86CustomVersion
# endif /* XorgCustomVersion */
CUSTOMVERDEF = -DXORG_CUSTOM_VERSION='$(CUSTOMVERSION)'
#endif /* XorgCustomVersion || XFree86CustomVersion */
#if defined(BuilderString)
BUILDERSTRING = BuilderString
BUILDERMSG = -DBUILDERSTRING='$(BUILDERSTRING)'
#endif
XORGREL = XOrgReleaseString
XORGREL_DEF = -DXORG_RELEASE="\"$(XORGREL)\""

#if defined(BuildDate)
    BUILD_DATE = BuildDate
#else
    BUILD_DATE = 0
#endif

#if defined(ChangelogDate)
    CLOG_DATE = ChangelogDate
#else
    CLOG_DATE = 0
#endif

#if OSMajorVersion >= 6
CLUTDEF = -DUSE_NEW_CLUT
#endif

#if DarwinQuartzSupport
SUBDIRS = iokit bundle quartz utils
QUARTZDEF = -DDARWIN_WITH_QUARTZ
#else
SUBDIRS = iokit utils
#endif

DEFINES = $(QUARTZDEF) $(VENDORSUPPORTDEFS)
EXTRAMANDEFS = $(QUARTZDEF) -D__logdir__=$(LOGDIRECTORY)

SpecialCObjectRule(darwin,$(ICONFIGFILES),$(OSNAMEDEF) $(BUILDERMSG) \
                   $(CUSTOMVERDEF) $(XORGREL_DEF) $(CLUTDEF) $(VENDOR_DEFINES))

NormalLibraryObjectRule()
NormalLibraryTarget(darwin,$(OBJS))

InstallManPage(XDarwin,$(MANDIR))
InstallManPage(Xorg,$(MANDIR))

DependTarget()

MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))