]> git.ipfire.org Git - thirdparty/cups.git/blame - pstoraster/Makefile
Copyright update...
[thirdparty/cups.git] / pstoraster / Makefile
CommitLineData
5fd17634 1#
efb2f309 2# "$Id: Makefile,v 1.36 2002/01/02 17:59:09 mike Exp $"
5fd17634 3#
4# GNU Ghostscript makefile for the Common UNIX Printing System (CUPS).
5#
efb2f309 6# Copyright 1993-2002 by Easy Software Products.
5fd17634 7#
8# These coded instructions, statements, and computer programs are the
9# property of Easy Software Products and are protected by Federal
10# copyright law. Distribution and use rights are outlined in the file
11# "LICENSE.txt" which should have been included with this file. If this
12# file is missing or damaged please contact Easy Software Products
13# at:
14#
15# Attn: CUPS Licensing Information
16# Easy Software Products
17# 44141 Airport View Drive, Suite 204
18# Hollywood, Maryland 20636-3111 USA
19#
20# Voice: (301) 373-9603
21# EMail: cups-info@cups.org
22# WWW: http://www.cups.org
23#
24# This makefile and any derivative of it may be used and distributed
25# freely under the terms of the GNU General Public License when
26# used with GNU Ghostscript or its derivatives. Use of the makefile
27# (or any derivative of it) with software other than GNU GhostScript
28# (or its derivatives) is governed by the CUPS license agreement.
29#
30
31include ../Makedefs
e556f3e9 32
5fd17634 33
34#
96ccd313 35# Object files...
36#
37
caddbb58 38LIBOBJS = gconfig.o \
39 gdevabuf.o \
40 gdevbbox.o \
41 gdevcups.o \
42 gdevdbit.o \
43 gdevddrw.o \
44 gdevdflt.o \
45 gdevdgbr.o \
46 gdevhit.o \
47 gdevm16.o \
48 gdevm1.o \
49 gdevm24.o \
50 gdevm2.o \
51 gdevm32.o \
52 gdevm4.o \
53 gdevm8.o \
54 gdevmem.o \
55 gdevmpla.o \
56 gdevnfwd.o \
57 gdevpipe.o \
58 gdevprn.o \
caddbb58 59 gp_getnv.o \
60 gp_nofb.o \
61 gp_nsync.o \
62 gp_unifn.o \
63 gp_unifs.o \
64 gp_unix.o \
65 gsalloc.o \
66 gsalpha.o \
67 gsargs.o \
68 gsbitops.o \
69 gsbittab.o \
70 gscdefs.o \
71 gscdevn.o \
72 gschar0.o \
73 gschar.o \
74 gscie.o \
75 gsclipsr.o \
76 gscolor1.o \
77 gscolor2.o \
78 gscolor3.o \
79 gscolor.o \
80 gscoord.o \
81 gscparam.o \
82 gscpixel.o \
83 gscrdp.o \
84 gscrd.o \
85 gscscie.o \
86 gscsepr.o \
87 gscspace.o \
88 gsdevice.o \
89 gsdevmem.o \
90 gsdparam.o \
91 gsdps1.o \
92 gsdsrc.o \
93 gsfcmap.o \
94 gsfont0.o \
95 gsfont.o \
96 gsfunc0.o \
97 gsfunc3.o \
98 gsfunc.o \
99 gshsb.o \
100 gsht1.o \
101 gshtscr.o \
102 gsht.o \
103 gsimage.o \
104 gsimpath.o \
105 gsinit.o \
106 gsiodev.o \
107 gsline.o \
108 gsmalloc.o \
109 gsmatrix.o \
110 gsmemory.o \
111 gsmisc.o \
112 gsnorop.o \
113 gspaint.o \
114 gsparams.o \
115 gsparam.o \
116 gspath1.o \
117 gspath.o \
118 gspcolor.o \
119 gsshade.o \
120 gsstate.o \
121 gstext.o \
122 gstrap.o \
123 gstype1.o \
124 gstype2.o \
125 gstype42.o \
126 gsutil.o \
127 gxacpath.o \
128 gxbcache.o \
129 gxccache.o \
130 gxccman.o \
131 gxcht.o \
132 gxclbits.o \
133 gxclimag.o \
134 gxclip2.o \
135 gxclipm.o \
136 gxclip.o \
137 gxclist.o \
138 gxclmem.o \
139 gxclpage.o \
140 gxclpath.o \
141 gxclrast.o \
142 gxclread.o \
143 gxclrect.o \
144 gxclutil.o \
145 gxclzlib.o \
146 gxcmap.o \
147 gxcpath.o \
148 gxctable.o \
149 gxdcconv.o \
150 gxdcolor.o \
151 gxdither.o \
152 gxfill.o \
153 gxhint1.o \
154 gxhint2.o \
155 gxhint3.o \
156 gxht.o \
157 gxi12bit.o \
158 gxicolor.o \
159 gxidata.o \
160 gxifast.o \
161 gxiinit.o \
162 gximage3.o \
163 gximage4.o \
164 gximono.o \
165 gxiscale.o \
166 gxmclip.o \
167 gxp1fill.o \
168 gxpaint.o \
169 gxpath2.o \
170 gxpath.o \
171 gxpcmap.o \
172 gxpcopy.o \
173 gxpdash.o \
174 gxpflat.o \
175 gxsample.o \
176 gxshade1.o \
177 gxshade4.o \
178 gxshade6.o \
179 gxshade.o \
180 gxstroke.o \
181 gxtype1.o \
182 ialloc.o \
183 ibnum.o \
184 iccinit0.o \
185 iconfig.o \
186 icontext.o \
187 idebug.o \
188 idict.o \
189 idparam.o \
190 idstack.o \
191 igcref.o \
192 igcstr.o \
193 igc.o \
194 iinit.o \
195 ilocate.o \
196 imainarg.o \
197 imain.o \
198 iname.o \
199 interp.o \
200 iparam.o \
201 ireclaim.o \
202 isave.o \
203 iscanbin.o \
204 iscannum.o \
205 iscan.o \
206 istack.o \
207 iutil2.o \
208 iutil.o \
209 sbcp.o \
210 sbhc.o \
211 sbwbs.o \
212 scantab.o \
213 scfdtab.o \
214 scfd.o \
215 scfetab.o \
216 scfe.o \
217 scfparam.o \
218 sdcparam.o \
219 sdctc.o \
220 sdctd.o \
221 sdcte.o \
222 sddparam.o \
223 sdeparam.o \
224 seexec.o \
225 sfilter1.o \
226 sfilter2.o \
227 sfxstdio.o \
228 shcgen.o \
229 shc.o \
230 siscale.o \
231 sjpegc.o \
232 sjpegd.o \
233 sjpegerr.o \
234 sjpege.o \
235 slzwce.o \
236 slzwc.o \
237 slzwd.o \
238 smtf.o \
239 spcxd.o \
240 spdiff.o \
241 spngp.o \
242 srld.o \
243 srle.o \
244 sstring.o \
245 stream.o \
246 szlibc.o \
247 szlibd.o \
248 szlibe.o \
249 zarith.o \
250 zarray.o \
251 zbseq.o \
252 zcfont.o \
253 zchar1.o \
254 zchar2.o \
255 zchar32.o \
256 zchar42.o \
257 zcharout.o \
258 zchar.o \
259 zcid.o \
260 zcie.o \
261 zcolor1.o \
262 zcolor2.o \
263 zcolor.o \
264 zcontrol.o \
265 zcrd.o \
266 zcsdevn.o \
267 zcsindex.o \
268 zcspixel.o \
269 zcssepr.o \
270 zdevcal.o \
271 zdevice2.o \
272 zdevice.o \
273 zdict.o \
274 zdps1.o \
275 zfbcp.o \
276 zfcmap.o \
277 zfdctd.o \
278 zfdcte.o \
279 zfdecode.o \
280 zfileio.o \
281 zfile.o \
282 zfilter2.o \
283 zfilterx.o \
284 zfilter.o \
285 zfname.o \
286 zfont0.o \
287 zfont1.o \
288 zfont2.o \
289 zfont32.o \
290 zfont42.o \
291 zfont.o \
292 zfproc.o \
293 zfreuse.o \
294 zfunc0.o \
295 zfunc3.o \
296 zfunc.o \
297 zfzlib.o \
298 zgeneric.o \
299 zgstate.o \
300 zhsb.o \
301 zht1.o \
302 zht2.o \
303 zht.o \
304 zimage2.o \
305 zimage3.o \
306 zimage.o \
307 ziodev2.o \
308 ziodev.o \
309 zmath.o \
310 zmatrix.o \
311 zmedia2.o \
312 zmisc1.o \
313 zmisc2.o \
314 zmisc3.o \
315 zmisc.o \
316 zpacked.o \
317 zpaint.o \
318 zpath1.o \
319 zpath.o \
320 zpcolor.o \
321 zrelbit.o \
322 zshade.o \
323 zstack.o \
324 zstring.o \
325 zsysvm.o \
326 ztoken.o \
327 ztrap.o \
328 ztype.o \
329 zupath.o \
330 zusparam.o \
331 zvmem2.o \
85e96ec0 332 zvmem.o
caddbb58 333
9958763a 334OBJS = $(LIBOBJS) genarch.o pstoraster.o
2777fb4c 335
336#
337# Data files...
338#
339
caddbb58 340DFILES = Fontmap \
341 gs_btokn.ps gs_ccfnt.ps gs_cff.ps gs_cidfn.ps \
342 gs_cmap.ps gs_cmdl.ps gs_dbt_e.ps gs_diskf.ps \
343 gs_dpnxt.ps gs_dps1.ps gs_dps2.ps gs_dps.ps gs_epsf.ps \
2777fb4c 344 gs_fform.ps gs_fonts.ps gs_init.ps gs_iso_e.ps \
082b40d2 345 gs_kanji.ps gs_ksb_e.ps gs_lev2.ps gs_ll3.ps \
346 gs_mex_e.ps gs_mro_e.ps gs_pfile.ps gs_res.ps \
347 gs_setpd.ps gs_statd.ps gs_std_e.ps gs_sym_e.ps \
348 gs_ttf.ps gs_typ32.ps gs_typ42.ps gs_type1.ps \
349 gs_wan_e.ps gs_wl1_e.ps gs_wl2_e.ps gs_wl5_e.ps
caddbb58 350
5fd17634 351
352#
353# Targets...
354#
355
9958763a 356TARGETS = genarch arch.h libgs.a pstoraster
5fd17634 357
caddbb58 358
5fd17634 359#
360# Make everything...
361#
362
363all: $(TARGETS)
364
365#
366# Clean all config and object files...
367#
368
369clean:
370 $(RM) $(TARGETS)
96ccd313 371 $(RM) $(OBJS)
5fd17634 372
caddbb58 373
2777fb4c 374#
375# Install files...
376#
377
378install: $(TARGETS)
bf905723 379 $(INSTALL_DIR) $(SERVERBIN)/filter
ea315b09 380 $(INSTALL_BIN) pstoraster $(SERVERBIN)/filter
bf905723 381 $(INSTALL_DIR) $(DATADIR)/pstoraster
9f8098a9 382 for file in $(DFILES); do \
383 $(INSTALL_DATA) $$file $(DATADIR)/pstoraster; \
384 done
2777fb4c 385
caddbb58 386
5fd17634 387#
388# genarch - generate the architecture configuration file.
389#
390
391genarch: genarch.o
37005c09 392 echo Linking $@...
5fd17634 393 $(CC) $(LDFLAGS) -o genarch genarch.o
96ccd313 394arch.h: genarch
37005c09 395 echo Generating $@...
96ccd313 396 ./genarch arch.h
5fd17634 397
caddbb58 398
5fd17634 399#
9958763a 400# libgs.a - GhostScript interpreter library...
5fd17634 401#
402
9958763a 403libgs.a: $(LIBOBJS) ../Makedefs
404 echo Archiving $@...
405 $(RM) $@
406 $(AR) $(ARFLAGS) $@ $(LIBOBJS)
407 $(RANLIB) $@
5fd17634 408
9958763a 409
410#
411# pstoraster - PostScript RIP filter.
412#
413
414pstoraster: pstoraster.o libgs.a ../Makedefs ../cups/$(LIBCUPS)
415 echo Linking $@...
416 $(CC) $(LDFLAGS) -o pstoraster pstoraster.o libgs.a \
e556f3e9 417 $(LINKCUPSIMAGE) $(IMGLIBS) $(DSOLIBS) $(LIBS) -lm
5fd17634 418
f6fb02d3 419
f6d7c203 420#
421# purify - target to test Ghostscript to see how leaky it is...
422#
423
424purify: pstoraster.o libgs.a ../Makedefs ../cups/$(LIBCUPS)
425 echo Linking $@...
426 purify $(CC) $(LDFLAGS) -o pstoraster.pure pstoraster.o libgs.a \
427 $(LINKCUPSIMAGE) $(IMGLIBS) $(DSOLIBS) $(LIBS) -lm
428
429
5fd17634 430#
5ecbd5c2 431# Generate dependencies for Ghostscript source files...
432#
433
434depend:
435 rm -f Dependencies
436 touch Dependencies
437 for file in $(OBJS:.o=.c); do \
438 echo $$file; \
439 makedepend -a -fDependencies -I.. -Y $$file >/dev/null 2>&1; \
440 done
441
442
443#
444# Dependencies...
445#
446
447$(OBJS): ../Makedefs
448
449include Dependencies
450
451
452#
efb2f309 453# End of "$Id: Makefile,v 1.36 2002/01/02 17:59:09 mike Exp $".
5fd17634 454#