386BSD 0.1 development
[unix-history] / usr / othersrc / public / ghostscript-2.4.1 / devs.mak
CommitLineData
d3cad655
WJ
1# Copyright (C) 1989, 1992 Aladdin Enterprises. All rights reserved.
2# Distributed by Free Software Foundation, Inc.
3#
4# This file is part of Ghostscript.
5#
6# Ghostscript is distributed in the hope that it will be useful, but
7# WITHOUT ANY WARRANTY. No author or distributor accepts responsibility
8# to anyone for the consequences of using it or for whether it serves any
9# particular purpose or works at all, unless he says so in writing. Refer
10# to the Ghostscript General Public License for full details.
11#
12# Everyone is granted permission to copy, modify and redistribute
13# Ghostscript, but only under the conditions described in the Ghostscript
14# General Public License. A copy of this license is supposed to have been
15# given to you along with Ghostscript so you can know your rights and
16# responsibilities. It should be in a file named COPYING. Among other
17# things, the copyright notice and this notice must be preserved on all
18# copies.
19
20# makefile for Ghostscript device drivers.
21
22# -------------------------------- Catalog ------------------------------- #
23
24# It is possible to build Ghostscript with an arbitrary collection of
25# device drivers, although some drivers are supported only on a subset
26# of the target platforms. The currently available drivers are:
27
28# Displays:
29# MS-DOS EGA and VGA:
30# ega EGA (640x350, 16-color)
31# vga VGA (640x480, 16-color)
32# MS-DOS SuperVGA:
33# + atiw ATI Wonder SuperVGA, 256-color modes
34# * mdb10 EIZO MDB-10 (1024 x 768)
35# tseng SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
36# tseng16 Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
37# + tvga16 Trident SuperVGA in 800x600, 16-color mode (256K memory)
38# ****** NOTE: the vesa device does not work with the Watcom (32-bit MS-DOS)
39# ****** compiler or executable.
40# vesa SuperVGA with VESA standard API driver
41# MS-DOS other:
42# bgi Borland Graphics Interface (CGA and Hercules)
43# * pe Private Eye
44# Unix and VMS:
45# * sonyfb Sony Microsystems monochrome display [Sony only]
46# * sunview SunView window system [SunOS only]
47# x11 X Windows version 11, release >=3 [Unix and VMS only]
48# Printers:
49# bj10e Canon BubbleJet BJ10e
50# * cdeskjet H-P DeskJet 500C
51# + deskjet H-P DeskJet and DeskJet Plus
52# * dfaxhigh DigiBoard, Inc.'s DigiFAX software format (high resolution)
53# * dfaxlow DigiFAX low (normal) resolution
54# djet500 H-P DeskJet 500
55# * djet500c H-P DeskJet 500C
56# epson Epson-compatible dot matrix printers (9- or 24-pin)
57# * epsonc Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
58# + laserjet H-P LaserJet
59# * lbp8 Canon LBP-8II laser printer
60# * ln03 DEC LN03 printer [Ultrix only?]
61# + ljet2p H-P LaserJet IId/IIp/III* with TIFF compression
62# + ljet3 H-P LaserJet III* with Delta Row compression
63# * ljetplus H-P LaserJet Plus
64# * nwp533 Sony Microsystems NWP533 laser printer [Sony only]
65# paintjet H-P PaintJet color printer
66# * r4081 Ricoh 4081 laser printer
67# * trufax TruFax facsimile driver [Unix only]
68# File formats and others:
69# bit A "bit bucket" device for time benchmarking
70# gifmono Monochrome GIF file format
71# gif8 8-bit color GIF file format
72# pcxmono Monochrome PCX file format
73# pcx16 Older color PCX file format (EGA/VGA, 16-color)
74# pcx256 Newer color PCX file format (256-color)
75# pbm Portable Bitmap (plain format)
76# pbmraw Portable Bitmap (raw format)
77# pgm Portable Graymap (plain format)
78# pgmraw Portable Graymap (raw format)
79# ppm Portable Pixmap (plain format)
80# ppmraw Portable Pixmap (raw format)
81
82# User-contributed drivers marked with * require hardware or software
83# that is not available to Aladdin Enterprises. Please contact the
84# original contributors, not Aladdin Enterprises, if you have questions.
85# Contact information appears in the driver entry below.
86#
87# Drivers marked with a + are maintained by Aladdin Enterprises with
88# the assistance of users, since Aladdin Enterprises doesn't have access to
89# the hardware for these either.
90
91# If you add drivers, it would be nice if you kept each list
92# in alphabetical order.
93
94# Each platform-specific makefile contains a line of the form
95# DEVICE_DEVS=<dev1>.dev ... <devn>.dev
96# where dev1 ... devn are the devices to be included in the build.
97# You may edit this line to select any desired set of devices.
98# dev1 will be used as the default device (unless overridden from
99# the command line with -sDEVICE=xxx, of course.) If you can't fit all the
100# devices on a single line, you may add lines defining
101# DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
102# DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
103# etc. up to DEVICE_DEVS5.
104# Don't use continuation lines, since this may break the MS-DOS command
105# processor.
106
107# ---------------------------- End of catalog ---------------------------- #
108
109# If you want to add a new device driver, the examples below should be
110# enough of a guide to the correct form for the makefile rules.
111
112# All device drivers depend on the following:
113GDEV=$(AK) $(gx_h) $(gxdevice_h)
114
115###### ------------------- MS-DOS display devices ------------------- ######
116
117# There are really only two drivers: an EGA/VGA driver (4 bit-planes,
118# plane-addressed) and a SuperVGA driver (8 bit-planes, byte addressed).
119
120### ----------------------- EGA and VGA displays ----------------------- ###
121
122gdevegaa.$(OBJ): gdevegaa.asm
123
124ETEST=ega.$(OBJ) $(ega_)
125ega.exe: $(ETEST) libc$(MM).tr
126 tlink /m /l $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
127
128ega.$(OBJ): ega.c $(GDEV)
129
130# The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
131# or an empty string.
132
133EGAVGA=gdevpcfb.$(OBJ) $(PCFBASM)
134
135gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(dos__h)
136 $(CCC) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
137
138# The EGA/VGA family includes: EGA, VGA, MDB-10, and the
139# Tseng ET3000/4000 and Trident SuperVGA in 16-color mode.
140
141ega.dev: $(EGAVGA)
142 $(SHP)gssetdev ega $(EGAVGA)
143
144vga.dev: $(EGAVGA)
145 $(SHP)gssetdev vga $(EGAVGA)
146
147mdb10.dev: $(EGAVGA)
148 $(SHP)gssetdev mdb10 $(EGAVGA)
149
150tseng16.dev: $(EGAVGA)
151 $(SHP)gssetdev tseng16 $(EGAVGA)
152
153tvga16.dev: $(EGAVGA)
154 $(SHP)gssetdev tvga16 $(EGAVGA)
155
156### ------------------------- SuperVGA displays ------------------------ ###
157
158SVGA=gdevsvga.$(OBJ) $(PCFBASM)
159
160gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(dos__h)
161 $(CCC) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
162
163# The SuperVGA family includes: ATI Wonder, Tseng ET3000/4000, and VESA.
164
165atiw.dev: $(SVGA)
166 $(SHP)gssetdev atiw $(SVGA)
167
168tseng.dev: $(SVGA)
169 $(SHP)gssetdev tseng $(SVGA)
170
171vesa.dev: $(SVGA)
172 $(SHP)gssetdev vesa $(SVGA)
173
174### ------------ The BGI (Borland Graphics Interface) device ----------- ###
175
176# We should use an implicit rule for running bgiobj,
177# but a bug in Borland's `make' utility makes this not work.
178
179cga.$(OBJ): $(BGIDIR)\cga.bgi
180 $(BGIDIR)\bgiobj $(BGIDIR)\$&
181
182egavga.$(OBJ): $(BGIDIR)\egavga.bgi
183 $(BGIDIR)\bgiobj $(BGIDIR)\$&
184
185herc.$(OBJ): $(BGIDIR)\herc.bgi
186 $(BGIDIR)\bgiobj $(BGIDIR)\$&
187
188# Include egavga.$(OBJ) for debugging only.
189bgi_=gdevbgi.$(OBJ) cga.$(OBJ) herc.$(OBJ)
190bgi.dev: $(bgi_)
191 $(SHP)gssetdev bgi $(bgi_)
192 $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
193
194gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE)
195 $(CCC) -DBGI_LIB=$(QQ)$(BGIDIR)$(QQ) gdevbgi.c
196
197###### ------------------- The Private Eye display ------------------- ######
198### Note: this driver was contributed by a user: ###
199### please contact narf@media-lab.media.mit.edu if you have questions. ###
200
201pe_=gdevpe.$(OBJ)
202pe.dev: $(pe_)
203 $(SHP)gssetdev pe $(pe_)
204
205gdevpe.$(OBJ): gdevpe.c $(GDEV)
206
207###### --------------- Memory-buffered printer devices --------------- ######
208
209PDEVH=$(GDEV) $(gxdevmem_h) $(gxclist_h) $(gdevprn_h)
210
211gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
212
213### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
214
215bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
216bj10e.dev: $(bj10e_)
217 $(SHP)gssetdev bj10e $(bj10e_)
218
219gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
220
221### -------------------------- The DigiFAX device ----------------------- ###
222### This driver outputs images in a format suitable for use with ###
223### DigiBoard, Inc.'s DigiFAX software. Use -sDEVICE=dfaxhigh for ###
224### high resolution output, -sDEVICE=dfaxlow for normal output. ###
225### Note: this driver was contributed by a user: please contact ###
226### Rick Richardson (rick@digibd.com) if you have questions. ###
227
228digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
229dfaxhigh.dev: $(digifax_)
230 $(SHP)gssetdev dfaxhigh $(digifax_)
231
232dfaxlow.dev: $(digifax_)
233 $(SHP)gssetdev dfaxlow $(digifax_)
234
235gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
236
237### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
238
239### These are essentially the same device.
240
241HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
242HPMONO=gdevdjet.$(OBJ) $(HPPCL)
243
244gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
245
246gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
247
248deskjet.dev: $(HPMONO)
249 $(SHP)gssetdev deskjet $(HPMONO)
250
251djet500.dev: $(HPMONO)
252 $(SHP)gssetdev djet500 $(HPMONO)
253
254laserjet.dev: $(HPMONO)
255 $(SHP)gssetdev laserjet $(HPMONO)
256
257ljetplus.dev: $(HPMONO)
258 $(SHP)gssetdev ljetplus $(HPMONO)
259
260### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
261### IIIp, IIId, IIIsi, IId, and IIp.
262
263ljet2p.dev: $(HPMONO)
264 $(SHP)gssetdev ljet2p $(HPMONO)
265
266### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
267### IIIp, IIId, IIIsi.
268
269ljet3.dev: $(HPMONO)
270 $(SHP)gssetdev ljet3 $(HPMONO)
271
272### ------------ The H-P DeskJet 500C color printer device -------------- ###
273### Note: there are two different 500C drivers, both contributed by users.###
274### If you have questions about the djet500c driver, ###
275### please contact AKayser@et.tudelft.nl. ###
276### If you have questions about the cdeskjet driver, ###
277### please contact g.cameron@aberdeen.ac.uk. ###
278
279cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
280cdeskjet.dev: $(cdeskjet_)
281 $(SHP)gssetdev cdeskjet $(cdeskjet_)
282
283gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
284
285djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
286djet500c.dev: $(djet500c_)
287 $(SHP)gssetdev djet500c $(djet500c_)
288
289gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
290
291### ----------------- The generic Epson printer device ----------------- ###
292
293epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
294epson.dev: $(epson_)
295 $(SHP)gssetdev epson $(epson_)
296
297gdevepsn.$(OBJ): gdevepsn.c $(PDEVH) devs.mak
298
299### -------------- The Epson LQ-2550 color printer device -------------- ###
300### Note: this driver was contributed by users: please contact ###
301### Dave St. Clair (dave@exlog.com) if you have questions. ###
302
303epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
304epsonc.dev: $(epsonc_)
305 $(SHP)gssetdev epsonc $(epsonc_)
306
307gdevepsc.$(OBJ): gdevepsc.c $(PDEVH) devs.mak
308
309### ------------ The H-P PaintJet color printer device ----------------- ###
310
311paintjet_=gdevpjet.$(OBJ) $(HPPCL)
312paintjet.dev: $(paintjet_)
313 $(SHP)gssetdev paintjet $(paintjet_)
314
315gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
316
317### ----------------- The Canon LBP-8II printer device ----------------- ###
318### Note: this driver was contributed by users: please contact ###
319### Tom Quinn (trq@prg.oxford.ac.uk) if you have questions. ###
320### Note that the standard paper size for this driver is the European ###
321### A4 size, not the American 8.5" x 11" size. ###
322
323lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
324lbp8.dev: $(lbp8_)
325 $(SHP)gssetdev lbp8 $(lbp8_)
326
327gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
328
329### ----------------- The DEC LN03 printer device ---------------------- ###
330### Note: this driver was contributed by users: please contact ###
331### Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions. ###
332### A more general sixel driver is available from ###
333### Ian MacPhedran (macphed@dvinci.USask.CA). ###
334
335ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
336ln03.dev: $(ln03_)
337 $(SHP)gssetdev ln03 $(ln03_)
338
339gdevln03.$(OBJ): gdevln03.c $(PDEVH)
340
341### ------------- The Ricoh 4081 laser printer device ------------------ ###
342### Note: this driver was contributed by users: ###
343### please contact kdw@oasis.icl.co.uk if you have questions. ###
344
345r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
346r4081.dev: $(r4081_)
347 $(SHP)gssetdev r4081 $(r4081_)
348
349gdev4081.$(OBJ): gdev4081.c $(PDEVH)
350
351###### ------------------------ Sony devices ------------------------ ######
352### Note: these drivers were contributed by users: please contact ###
353### Mike Smolenski (mike@intertech.com) if you have questions. ###
354
355### ------------------- Sony NeWS frame buffer device ------------------ ###
356
357sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
358sonyfb.dev: $(sonyfb_)
359 $(SHP)gssetdev sonyfb $(sonyfb_)
360
361gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
362
363### -------------------- Sony NWP533 printer device -------------------- ###
364
365nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
366nwp533.dev: $(nwp533_)
367 $(SHP)gssetdev nwp533 $(nwp533_)
368
369gdevn533.$(OBJ): gdevn533.c $(PDEVH)
370
371###### --------------------- The SunView device --------------------- ######
372### Note: this driver is maintained by a user: if you have questions, ###
373### please contact Andreas Stolcke (stolcke@icsi.berkeley.edu). ###
374
375sunview_=gdevsun.$(OBJ)
376sunview.dev: $(sunview_)
377 $(SHP)gssetdev sunview $(sunview_)
378 $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
379
380gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
381
382### ----------------- The TruFax facsimile device ---------------------- ###
383### Note: this driver was contributed by users: please contact ###
384### Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
385### Note that the driver requires a file encode_l.o supplied by the ###
386### makers of the TruFax product. ###
387
388trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
389trufax.dev: $(trufax_)
390 $(SHP)gssetdev trufax $(trufax_)
391
392gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
393
394###### ----------------------- The X11 device ----------------------- ######
395
396# Aladdin Enterprises does not support Ghostview. For more information
397# about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
398
399x11_=gdevx.$(OBJ) gdevxini.$(OBJ)
400x11.dev: $(x11_)
401 $(SHP)gssetdev x11 $(x11_)
402 $(SHP)gsaddmod x11 -lib X11
403
404# See the main makefile for the definition of XINCLUDE.
405GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
406gdevx.$(OBJ): gdevx.c $(GDEVX)
407 $(CCC) $(XINCLUDE) gdevx.c
408
409gdevxini.$(OBJ): gdevxini.c $(GDEVX)
410 $(CCC) $(XINCLUDE) gdevxini.c
411
412### ---------------------- The bit bucket device ----------------------- ###
413
414bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
415bit.dev: $(bit_)
416 $(SHP)gssetdev bit $(bit_)
417
418gdevbit.$(OBJ): gdevbit.c $(PDEVH)
419
420###### ----------------------- PC file formats ---------------------- ######
421
422gdevpccm.$(OBJ): gdevpccm.c $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
423
424### ------------------------- GIF file formats ------------------------- ###
425
426GIF=gdevgif.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
427
428gdevgif.$(OBJ): gdevgif.c $(PDEVH) $(gdevpccm_h)
429
430gifmono.dev: $(GIF)
431 $(SHP)gssetdev gifmono $(GIF)
432
433gif8.dev: $(GIF)
434 $(SHP)gssetdev gif8 $(GIF)
435
436### ------------------------- PCX file formats ------------------------- ###
437
438PCX=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
439
440gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h)
441
442pcxmono.dev: $(PCX)
443 $(SHP)gssetdev pcxmono $(PCX)
444
445pcx16.dev: $(PCX)
446 $(SHP)gssetdev pcx16 $(PCX)
447
448pcx256.dev: $(PCX)
449 $(SHP)gssetdev pcx256 $(PCX)
450
451###### ------------------- Portable Bitmap devices ------------------ ######
452### For more information, see the pbm(5), pgm(5), and ppm(5) man pages. ###
453
454PXM=gdevpbm.$(OBJ) gdevprn.$(OBJ)
455
456gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
457
458### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
459
460pbm.dev: $(PXM)
461 $(SHP)gssetdev pbm $(PXM)
462
463pbmraw.dev: $(PXM)
464 $(SHP)gssetdev pbmraw $(PXM)
465
466### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
467
468pgm.dev: $(PXM)
469 $(SHP)gssetdev pgm $(PXM)
470
471pgmraw.dev: $(PXM)
472 $(SHP)gssetdev pgmraw $(PXM)
473
474### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
475
476ppm.dev: $(PXM)
477 $(SHP)gssetdev ppm $(PXM)
478
479ppmraw.dev: $(PXM)
480 $(SHP)gssetdev ppmraw $(PXM)