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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:48:04 cpqbld Exp $
XCOMM $XFree86: xc/programs/Xserver/Xprint/Imakefile,v 1.16 2001/04/20 15:51:16 tsi Exp $
#include <Server.tmpl>
#ifndef XpRasterDDX
#define XpRasterDDX NO
#endif
#ifndef XpColorPclDDX
#define XpColorPclDDX YES
#endif
#ifndef XpMonoPclDDX
#define XpMonoPclDDX NO
#endif
#ifndef XpPostScriptDDX
#define XpPostScriptDDX YES
#endif
SRCS1 = Init.c Quarks.c attributes.c Util.c mediaSizes.c \
Oid.c AttrValid.c
OBJS1 = Init.o Quarks.o attributes.o Util.o mediaSizes.o \
Oid.o AttrValid.o
#ifdef OS2Architecture
SRCS_OS2 = os2_stubs.c
OBJS_OS2 = os2_stubs.o
#endif
#if XprtServer
#if PrintOnlyServer || defined(PrintServerExtensions)
#if PrintOnlyServer
PO_DEFINES = -DPRINT_ONLY_SERVER
#endif
#ifdef PrintServerExtensions
XPEXT_DEFINES = PrintServerExtensions
#else
XPEXT_DEFINES = $(EXT_DEFINES)
#endif
SRCS3 = miinitext.c dpmsstubs.c
OBJS3 = miinitext.o dpmsstubs.o
#endif
SRCS2 = ddxInit.c
OBJS2 = ddxInit.o
#endif
SRCS = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS_OS2)
OBJS = $(OBJS1) $(OBJS_OS2)
#if XpRasterDDX
RASTDIR = raster
RASTDEF = -DXPRASTERDDX
#endif
#if XpColorPclDDX
PCLDIR = pcl
PCLDEF = -DXPPCLDDX
#endif
#if XpMonoPclDDX
MPCLDIR = pcl-mono
MPCLDEF = -DXPMONOPCLDDX
#endif
#if XpPostScriptDDX
PSDIR = ps
PSDEF = -DXPPSDDX
#endif
#if HasMkstemp
MKTMP_DEFINES = -DHAS_MKSTEMP
#endif
SUBDIRS = $(RASTDIR) $(PCLDIR) $(MPCLDIR) $(PSDIR)
#define IHaveSubdirs
INCLUDES = -I. -I../mfb \
-I../mi \
-I../cfb \
-I../include \
-I$(XINCLUDESRC) -I$(TOP)/include \
-I$(EXTINCSRC) -I$(FONTINCSRC)
LINTLIBS = $(TOP)/server/dix/llib-ldix.ln $(TOP)/server/os/llib-los.ln \
$(TOP)/server/ddx/mfb/llib-lmfb.ln \
$(TOP)/server/ddx/mi/llib-lmi.ln \
$(TOP)/server/ddx/cfb/llib-lcfb.ln
DEFINES = -DXPRINTDIR=\"$(XPRINTDIR)\" $(RASTDEF) $(PCLDEF) $(MPCLDEF) \
$(PSDEF) $(MKTMP_DEFINES) -UXFree86LOADER
NormalLibraryObjectRule()
#if XprtServer
all:: $(OBJS2) $(OBJS3) $(OBJS_OS2)
#endif
NormalLibraryTarget(printer,$(OBJS))
NormalLintTarget($(SRCS))
SpecialCObjectRule(ddxInit,$(ICONFIGFILES),$(PO_DEFINES) $(OS_DEFINES) $(EXT_DEFINES))
#if XprtServer && (PrintOnlyServer || defined(PrintServerExtensions))
LinkSourceFile(miinitext.c,$(SERVERSRC)/mi)
SpecialCObjectRule(miinitext,$(ICONFIGFILES),$(PO_DEFINES) $(OS_DEFINES) $(XPEXT_DEFINES) -DXPRINT -UGLXEXT)
#if PrintOnlyServer
LinkSourceFile(dpmsstubs.c,$(SERVERSRC)/Xext)
SpecialCObjectRule(dpmsstubs,$(ICONFIGFILES),$(PO_DEFINES) $(OS_DEFINES) $(XPEXT_DEFINES) -DXPRINT)
#endif
#endif
#ifdef OS2Architecture
LinkSourceFile(os2_stubs.c,../hw/xfree86/os-support/os2)
SpecialCObjectRule(os2_stubs,$(ICONFIGFILES),-DOS2NULLSELECT)
#endif
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
MakeLintLibSubdirs($(SUBDIRS))
DependTarget()
|