aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xprint/Imakefile
blob: 0e66bf55d515300a0dcfbccb65c71ea9ecbb955e (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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
XCOMM $Xorg: Imakefile,v 1.4 2001/03/14 18:44:11 pookie Exp $
#include <Server.tmpl>

#ifndef XpRasterDDX
#define XpRasterDDX YES
#endif
#ifndef XpColorPclDDX
#define XpColorPclDDX YES
#endif
#ifndef XpMonoPclDDX
#define XpMonoPclDDX NO
#endif
#ifndef XpPostScriptDDX
#define XpPostScriptDDX YES
#endif

SRCS1 =	Init.c Quarks.c spooler.c attributes.c Util.c mediaSizes.c \
	Oid.c AttrValid.c

OBJS1 = Init.o Quarks.o spooler.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
#endif
#ifdef PrintServerExtensions
XPEXT_DEFINES = PrintServerExtensions
#else
XPEXT_DEFINES = $(EXT_DEFINES)
#endif
SRCS2 = ddxInit.c
OBJS2 = ddxInit.o
#endif

SRCS3 = miinitext.c dpmsstubs.c
OBJS3 = miinitext.o dpmsstubs.o

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

#if XpRasterDDX || XpColorPclDDX || XpMonoPclDDX || XpPostScriptDDX

SUBDIRS = $(RASTDIR) $(PCLDIR) $(MPCLDIR) $(PSDIR) etc
#define IHaveSubdirs

#endif

   INCLUDES = -I$(XINCLUDESRC) -I. -I../mfb -I../mi -I../cfb \
             -I../include -I$(TOP)/include -I$(LIBSRC) \
             -I$(EXTINCSRC) -I$(FONTINCSRC) -I$(XLIBSRC)


   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 -D_XP_PRINT_SERVER_

/* Go ahead:  Call me paranoid ... */
Makefiles::
	RemoveFiles(Quark.c Xlcint.h Xresource.h Xrm.c XrmI.h)

LinkSourceFile(Quarks.c,$(XLIBSRC))

NormalLibraryObjectRule()

#if XprtServer
all:: $(OBJS2) $(OBJS_OS2) $(OBJS3)
#endif

NormalLibraryTarget(printer,$(OBJS))
NormalLintTarget($(SRCS))

SpecialCObjectRule(ddxInit,$(ICONFIGFILES),$(PO_DEFINES) $(OS_DEFINES) $(EXT_DEFINES))
#if XprtServer
LinkSourceFile(miinitext.c,$(SERVERSRC)/mi)
SpecialCObjectRule(miinitext,$(ICONFIGFILES), -DPRINT_ONLY_SERVER $(OS_DEFINES) $(XPEXT_DEFINES) -DXPRINT)
LinkSourceFile(dpmsstubs.c,$(SERVERSRC)/Xext)
LinkSourceFile(dpmsproc.h,$(SERVERSRC)/Xext)
SpecialCObjectRule(dpmsstubs,$(ICONFIGFILES),$(PO_DEFINES) $(OS_DEFINES) $(XPEXT_DEFINES) -DXPRINT)
#endif

#ifdef OS2Architecture
LinkSourceFile(os2_stubs.c,../hw/xfree86/os-support/os2)
SpecialCObjectRule(os2_stubs,$(ICONFIGFILES),-DOS2NULLSELECT)
#endif

#ifdef IHaveSubdirs
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))
MakeLintLibSubdirs($(SUBDIRS))
#endif

DependTarget()

InstallManPage(Xprt,$(MANDIR))

#ifdef HasDocBookTools
all:: Xprt.man Xprt.html

ConvertDocBookToManPage(Xprt.sgml, Xprt.man)
ConvertDocBookToHTML(Xprt.sgml, Xprt.html)
#endif /* HasDocBookTools */