]> git.ipfire.org Git - thirdparty/cups.git/blob - pstoraster/Makefile
Merge changes from 1.1 tree.
[thirdparty/cups.git] / pstoraster / Makefile
1 #
2 # "$Id: Makefile,v 1.31.2.1 2001/05/13 18:38:31 mike Exp $"
3 #
4 # GNU Ghostscript makefile for the Common UNIX Printing System (CUPS).
5 #
6 # Copyright 1993-2001 by Easy Software Products.
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
31 include ../Makedefs
32
33
34 #
35 # Object files...
36 #
37
38 LIBOBJS = 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 \
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 \
332 zvmem.o
333
334 OBJS = $(LIBOBJS) genarch.o pstoraster.o
335
336 #
337 # Data files...
338 #
339
340 DFILES = 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 \
344 gs_fform.ps gs_fonts.ps gs_init.ps gs_iso_e.ps \
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
350
351
352 #
353 # Targets...
354 #
355
356 TARGETS = genarch arch.h libgs.a pstoraster
357
358
359 #
360 # Make everything...
361 #
362
363 all: $(TARGETS)
364
365 #
366 # Clean all config and object files...
367 #
368
369 clean:
370 $(RM) $(TARGETS)
371 $(RM) $(OBJS)
372
373
374 #
375 # Install files...
376 #
377
378 install: $(TARGETS)
379 -$(MKDIR) $(SERVERBIN)/filter
380 $(CHMOD) ugo+rx $(SERVERBIN)
381 $(CHMOD) ugo+rx $(SERVERBIN)/filter
382 $(INSTALL_BIN) pstoraster $(SERVERBIN)/filter
383 -$(MKDIR) $(DATADIR)/pstoraster
384 $(CHMOD) ugo+rx $(DATADIR)
385 $(CHMOD) ugo+rx $(DATADIR)/pstoraster
386 $(INSTALL_DATA) $(DFILES) $(DATADIR)/pstoraster
387
388
389 #
390 # genarch - generate the architecture configuration file.
391 #
392
393 genarch: genarch.o
394 echo Linking $@...
395 $(CC) $(LDFLAGS) -o genarch genarch.o
396 arch.h: genarch
397 echo Generating $@...
398 ./genarch arch.h
399
400
401 #
402 # libgs.a - GhostScript interpreter library...
403 #
404
405 libgs.a: $(LIBOBJS) ../Makedefs
406 echo Archiving $@...
407 $(RM) $@
408 $(AR) $(ARFLAGS) $@ $(LIBOBJS)
409 $(RANLIB) $@
410
411
412 #
413 # pstoraster - PostScript RIP filter.
414 #
415
416 pstoraster: pstoraster.o libgs.a ../Makedefs ../cups/$(LIBCUPS)
417 echo Linking $@...
418 $(CC) $(LDFLAGS) -o pstoraster pstoraster.o libgs.a \
419 $(LINKCUPSIMAGE) $(IMGLIBS) $(DSOLIBS) $(LIBS) -lm
420
421
422 #
423 # Generate dependencies for Ghostscript source files...
424 #
425
426 depend:
427 rm -f Dependencies
428 touch Dependencies
429 for file in $(OBJS:.o=.c); do \
430 echo $$file; \
431 makedepend -a -fDependencies -I.. -Y $$file >/dev/null 2>&1; \
432 done
433
434
435 #
436 # Dependencies...
437 #
438
439 $(OBJS): ../Makedefs
440
441 include Dependencies
442
443
444 #
445 # End of "$Id: Makefile,v 1.31.2.1 2001/05/13 18:38:31 mike Exp $".
446 #