blob: 40980ddb167e98dee835d5674c4c0445ddfaecf0 (
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
|
# Copyright (C) 2001-2019 Artifex Software, Inc.
# All Rights Reserved.
#
# This software is provided AS-IS with no warranty, either express or
# implied.
#
# This software is distributed under license and may not be copied,
# modified or distributed except as expressly authorized under the terms
# of the license contained in the file LICENSE in this distribution.
#
# Refer to licensing information at http://www.artifex.com or contact
# Artifex Software, Inc., 1305 Grant Avenue - Suite 200, Novato,
# CA 94945, U.S.A., +1(415)492-9861, for further information.
#
# Partial makefile common to all Unix and Desqview/X configurations.
# This is the next-to-last part of the makefile for these configurations.
UNIX_END_MAK=$(GLSRC)unix-end.mak $(TOP_MAKEFILES)
# Define the rule for building standard configurations.
directories: $(UNIX_END_MAK)
@if test "$(BINDIR)" != "" -a ! -d $(BINDIR); then mkdir $(BINDIR); fi
@if test "$(GLGENDIR)" != "" -a ! -d $(GLGENDIR); then mkdir $(GLGENDIR); fi
@if test "$(GLOBJDIR)" != "" -a ! -d $(GLOBJDIR); then mkdir $(GLOBJDIR); fi
@if test "$(DEVGENDIR)" != "" -a ! -d $(DEVGENDIR); then mkdir $(DEVGENDIR); fi
@if test "$(DEVOBJDIR)" != "" -a ! -d $(DEVOBJDIR); then mkdir $(DEVOBJDIR); fi
@if test "$(AUXDIR)" != "" -a ! -d $(AUXDIR); then mkdir $(AUXDIR); fi
@if test "$(PSGENDIR)" != "" -a ! -d $(PSGENDIR); then mkdir $(PSGENDIR); fi
@if test "$(PSGENDIR)" != "" -a ! -d $(PSGENDIR)/cups; then mkdir $(PSGENDIR)/cups; fi
@if test "$(PSOBJDIR)" != "" -a ! -d $(PSOBJDIR); then mkdir $(PSOBJDIR); fi
gs: .gssubtarget $(UNIX_END_MAK)
$(NO_OP)
gpcl6: .pcl6subtarget $(UNIX_END_MAK)
$(NO_OP)
gpcl6clean: cleansub
$(NO_OP)
gxps: .xpssubtarget $(UNIX_END_MAK)
$(NO_OP)
gxpsclean: cleansub
$(NO_OP)
gpdl: .gpdlsubtarget $(UNIX_END_MAK)
$(NO_OP)
gpdlclean: .cleansub
$(NO_OP)
libgs: $(GS_A)
$(NO_OP)
libgsexe: $(GS_A_XE)
$(NO_OP)
libgpcl6: $(GPCL_A)
$(NO_OP)
libgpcl6exe: $(GPCL_A_XE)
$(NO_OP)
libgxps: $(GXPS_A)
$(NO_OP)
libgxpsexe: $(GXPS_A_XE)
$(NO_OP)
libgpdl: $(GPDL_A)
$(NO_OP)
libgpdlexe: $(GPDL_A_XE)
$(NO_OP)
# Define a rule for building profiling configurations.
PGDEFS=GENOPT='-DPROFILE' CFLAGS='-pg $(CFLAGS_PROFILE) $(GCFLAGS) $(XCFLAGS)'\
LDFLAGS='$(XLDFLAGS) -pg' XLIBS='Xt SM ICE Xext X11' GENOPTAUX= \
CFLAGSAUX='$(CFLAGSAUX_STANDARD) $(GCFLAGSAUX) $(XCFLAGSAUX)'\
LDFLAGSAUX='$(XLDFLAGSAUX)'
PROFILEMAKEOPTS=$(SUB_MAKE_OPTION) $(PGDEFS) BUILDDIRPREFIX=$(PGDIRPREFIX)
pg:
$(MAKE) $(PROFILEMAKEOPTS) default
pgclean:
$(MAKE) $(PROFILEMAKEOPTS) cleansub
gspg:
$(MAKE) $(PROFILEMAKEOPTS) .gssubtarget
gpcl6pg:
$(MAKE) $(PROFILEMAKEOPTS) .pcl6subtarget
gpcl6pgclean:
$(MAKE) $(PROFILEMAKEOPTS) cleansub
gxpspg:
$(MAKE) $(PROFILEMAKEOPTS) .xpssubtarget
gxpspgclean:
$(MAKE) $(PROFILEMAKEOPTS) cleansub
gpdlpg:
$(MAKE) $(PROFILEMAKEOPTS) .gpdlsubtarget
gpdlpgclean:
$(MAKE) $(PROFILEMAKEOPTS) cleansub
# Define a rule for building debugging configurations.
DEBUGDEFS=GENOPT='-DDEBUG' CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)' \
GENOPTAUX='-DDEBUG_AUX' CFLAGSAUX='$(CFLAGSAUX_DEBUG) $(GCFLAGSAUX) $(XCFLAGSAUX)'
DEBUGMAKEOPTS=$(SUB_MAKE_OPTION) $(DEBUGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX)
debug:
$(MAKE) $(DEBUGMAKEOPTS) default
debug-apitest:
$(MAKE) $(DEBUGMAKEOPTS) apitest
debugclean:
$(MAKE) $(DEBUGMAKEOPTS) cleansub
gsdebug:
$(MAKE) $(DEBUGMAKEOPTS) .gssubtarget
gpcl6debug:
$(MAKE) $(DEBUGMAKEOPTS) .pcl6subtarget
#gpcl6-debug-apitest:
# $(MAKE) $(DEBUGMAKEOPTS) apitest
gpcl6debugclean:
$(MAKE) $(DEBUGMAKEOPTS) cleansub
gxpsdebug:
$(MAKE) $(DEBUGMAKEOPTS) .xpssubtarget
#gpcl6-debug-apitest:
# $(MAKE) $(DEBUGMAKEOPTS) apitest
gxpsdebugclean:
$(MAKE) $(DEBUGMAKEOPTS) cleansub
gpdldebug:
$(MAKE) $(DEBUGMAKEOPTS) .gpdlsubtarget
#gpcl6-debug-apitest:
# $(MAKE) $(DEBUGMAKEOPTS) apitest
gpdldebugclean:
$(MAKE) $(DEBUGMAKEOPTS) cleansub
libgsdebug:
$(MAKE) $(DEBUGMAKEOPTS) libgs
libgpcl6debug:
$(MAKE) $(DEBUGMAKEOPTS) libgpcl6
libgxpsdebug:
$(MAKE) $(DEBUGMAKEOPTS) libgxps
libgpdldebug:
$(MAKE) $(DEBUGMAKEOPTS) libgpdl
# Define a rule for building memento configurations.
MEMENTODEFS=GENOPT='-DMEMENTO -DDEBUG' \
CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)'\
BUILDDIRPREFIX=$(MEMENTODIRPREFIX) GENOPTAUX='-DMEMENTO' \
CFLAGSAUX='$(CFLAGSAUX_DEBUG) $(GCFLAGSAUX) $(XCFLAGSAUX)'
MEMENTOMAKEOPTS=$(SUB_MAKE_OPTION) $(MEMENTODEFS)
memento:
$(MAKE) $(MEMENTOMAKEOPTS) default
gsmemento:
$(MAKE) $(MEMENTOMAKEOPTS) .gssubtarget
gpcl6memento:
$(MAKE) $(MEMENTOMAKEOPTS) .pcl6subtarget
gxpsmemento:
$(MAKE) $(MEMENTOMAKEOPTS) .xpssubtarget
gpdlmemento:
$(MAKE) $(MEMENTOMAKEOPTS) .gpdlsubtarget
mementoclean:
$(MAKE) $(MEMENTOMAKEOPTS) cleansub
# Define a rule for building memento configurations with valgrind
MEMENTOVGDEFS=GENOPT='-DMEMENTO -DDEBUG -DPACIFY_VALGRIND -DHAVE_VALGRIND'\
CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)'\
BUILDDIRPREFIX=$(MEMENTODIRPREFIX) GENOPTAUX='-DMEMENTO'\
CFLAGSAUX='$(CFLAGSAUX_DEBUG) $(GCFLAGSAUX) $(XCFLAGSAUX)'\
BAND_LIST_STORAGE=memory
MEMENTOVGMAKEOPTS=$(SUB_MAKE_OPTION) $(MEMENTOVGDEFS)
mementovg:
$(MAKE) $(MEMENTOVGMAKEOPTS) default
gsmementovg:
$(MAKE) $(MEMENTOVGMAKEOPTS) .gssubtarget
gpcl6mementovg:
$(MAKE) $(MEMENTOVGMAKEOPTS) .pcl6subtarget
gxpsmementovg:
$(MAKE) $(MEMENTOVGMAKEOPTS) .xpssubtarget
gpdlmementovg:
$(MAKE) $(MEMENTOVGMAKEOPTS) .gpdlsubtarget
mementovgclean:
$(MAKE) $(MEMENTOVGMAKEOPTS) cleansub
gpcl6_gxps_clean: gpcl6clean gxpsclean
$(NO_OP)
# Define rules for building address sanitizer configurations.
SANITIZEDEFS=GENOPT='-DDEBUG' \
CFLAGS='$(CFLAGS_DEBUG) $(CFLAGS_SANITIZE) $(GCFLAGS) $(XCFLAGS)'\
LDFLAGS='$(LDFLAGS) $(LDFLAGS_SANITIZE)' \
BUILDDIRPREFIX=$(SANITIZEDIRPREFIX)
SANITIZEMAKEOPTS=$(SUB_MAKE_OPTION) $(SANITIZEDEFS)
sanitize:
$(MAKE) $(SANITIZEMAKEOPTS) default
gssanitize:
$(MAKE) $(SANITIZEMAKEOPTS) .gssubtarget
gpcl6sanitize:
$(MAKE) $(SANITIZEMAKEOPTS) .pcl6subtarget
gxpssanitize:
$(MAKE) $(SANITIZEMAKEOPTS) .xpssubtarget
gpdlsanitize:
$(MAKE) $(SANITIZEMAKEOPTS) .gpdlsubtarget
sanitizeclean:
$(MAKE) $(SANITIZEMAKEOPTS) cleansub
# Define a rule for building release configurations with valgrind
VGDEFS=GENOPT='-DPACIFY_VALGRIND -DHAVE_VALGRIND' \
CFLAGS='$(GCFLAGS) $(XCFLAGS)'\
CFLAGSAUX='$(CFLAGSAUX) $(GCFLAGSAUX) $(XCFLAGSAUX)'\
BAND_LIST_STORAGE=memory
VGMAKEOPTS=$(SUB_MAKE_OPTION) $(VGDEFS)
vg:
$(MAKE) $(VGMAKEOPTS) default
gsvg:
$(MAKE) $(VGMAKEOPTS) .gssubtarget
gpcl6vg:
$(MAKE) $(VGMAKEOPTS) .pcl6subtarget
gxpsvg:
$(MAKE) $(VGMAKEOPTS) .xpssubtarget
gpdlvg:
$(MAKE) $(VGMAKEOPTS) .gpdlsubtarget
vgclean:
$(MAKE) $(VGMAKEOPTS) cleansub
# Define a rule for building debugging configurations.
DEBUGVGDEFS=GENOPT='-DDEBUG -DPACIFY_VALGRIND -DHAVE_VALGRIND'\
CFLAGS='$(CFLAGS_DEBUG) $(GCFLAGS) $(XCFLAGS)'\
GENOPTAUXVG='-DDEBUG_AUX'\
CFLAGSAUX='$(CFLAGSAUX_DEBUG) $(GCFLAGSAUX) $(XCFLAGSAUX)'\
BAND_LIST_STORAGE=memory
DEBUGVGMAKEOPTS=$(SUB_MAKE_OPTION) $(DEBUGVGDEFS) BUILDDIRPREFIX=$(DEBUGDIRPREFIX)
debugvg:
$(MAKE) $(DEBUGVGMAKEOPTS) default
gsdebugvg:
$(MAKE) $(DEBUGVGMAKEOPTS) .gssubtarget
gpcl6debugvg:
$(MAKE) $(DEBUGVGMAKEOPTS) .pcl6subtarget
gxpsdebugvg:
$(MAKE) $(DEBUGVGMAKEOPTS) .xpssubtarget
gpdldebugvg:
$(MAKE) $(DEBUGVGMAKEOPTS) .gpdlsubtarget
debugvgclean:
$(MAKE) $(DEBUGVGMAKEOPTS) cleansub
# Emacs tags maintenance.
TAGS:
etags -t $(GLSRC)*.[ch] $(PSSRC)*.[ch]
|