henesyinit from p9fce6d0435 years agoHistory
1149 lines · 38.1 KB · Text
RawDownload
#    Copyright (C) 1989, 1992, 1993, 1994, 1995 Aladdin Enterprises.  All rights reserved.# # This file is part of Aladdin Ghostscript.# # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author# or distributor accepts any responsibility for the consequences of using it,# or for whether it serves any particular purpose or works at all, unless he# or she says so in writing.  Refer to the Aladdin Ghostscript Free Public# License (the "License") for full details.# # Every copy of Aladdin Ghostscript must include a copy of the License,# normally in a plain ASCII text file named PUBLIC.  The License grants you# the right to copy, modify and redistribute Aladdin Ghostscript, but only# under certain conditions described in the License.  Among other things, the# License requires that the copyright notice and this notice be preserved on# all copies. # makefile for device drivers. # -------------------------------- Catalog ------------------------------- # # It is possible to build configurations with an arbitrary collection of# device drivers, although some drivers are supported only on a subset# of the target platforms.  The currently available drivers are: # MS-DOS displays (note: not usable with Desqview/X):#   MS-DOS EGA and VGA:#	ega	EGA (640x350, 16-color)#	vga	VGA (640x480, 16-color)#   MS-DOS SuperVGA:# +	atiw	ATI Wonder SuperVGA, 256-color modes# +	s3vga	SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)#	svga16	Generic SuperVGA in 800x600, 16-color mode#		  (replaces atiw16, tseng16, and tvga16 -- see below)#	tseng	SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes#	tseng8	Tseng Labs SuperVGA using only 8 colors (for halftone testing)# +	tvga	Trident SuperVGA, 256-color modes#   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)#   ****** compiler or executable.#	vesa	SuperVGA with VESA standard API driver#   MS-DOS other:#	bgi	Borland Graphics Interface (CGA)  [MS-DOS only]# *	herc	Hercules Graphics display   [MS-DOS only]# *	pe	Private Eye display# Other displays:#   MS Windows:#	mswin	Microsoft Windows 3.0, 3.1   [MS Windows only]#	mswindll  Microsoft Windows 3.1 DLL    [MS Windows only]#	mswinprn  Microsoft Windows 3.0, 3.1 printer   [MS Windows only]#   OS/2:# *	os2pm	OS/2 Presentation Manager   [OS/2 only]# *	os2dll	OS/2 DLL bitmap             [OS/2 only]#   Unix and VMS:#   ****** NOTE: For direct frame buffer addressing under SCO Unix or Xenix,#   ****** edit the definition of EGAVGA below.# *	att3b1	AT&T 3b1/Unixpc monochrome display   [3b1 only]# *	lvga256  Linux vgalib, 256-color VGA modes  [Linux only]# *	sonyfb	Sony Microsystems monochrome display   [Sony only]# *	sunview  SunView window system   [SunOS only]# +	vgalib	Linux PC with VGALIB   [Linux only]#	x11	X Windows version 11, release >=4   [Unix and VMS only]#	x11alpha  X Windows masquerading as a device with alpha capability#	x11cmyk  X Windows masquerading as a 1-bit-per-plane CMYK device#	x11mono  X Windows masquerading as a black-and-white device#   Platform-independent:# *	sxlcrt	CRT sixels, e.g. for VT240-like terminals# Printers:# *	ap3250	Epson AP3250 printer# *	appledmp  Apple Dot Matrix Printer (should also work with Imagewriter)#	bj10e	Canon BubbleJet BJ10e# *	bj200	Canon BubbleJet BJ200# *	cdeskjet  H-P DeskJet 500C with 1 bit/pixel color# *	cdjcolor  H-P DeskJet 500C with 24 bit/pixel color and#		high-quality color (Floyd-Steinberg) dithering;#		also good for DeskJet 540C# *	cdjmono  H-P DeskJet 500C printing black only;#		also good for DeskJet 510, 520, and 540C (black only)# *	cdj500	H-P DeskJet 500C (same as cdjcolor)# *	cdj550	H-P DeskJet 550C;#		also good for DeskJet 560C# *	cp50	Mitsubishi CP50 color printer# *	declj250  alternate DEC LJ250 driver# +	deskjet  H-P DeskJet and DeskJet Plus#	djet500  H-P DeskJet 500# *	djet500c  H-P DeskJet 500C alternate driver (does not work on 550C)# *	dnj650c  H-P DesignJet 650C#	epson	Epson-compatible dot matrix printers (9- or 24-pin)# *	eps9mid  Epson-compatible 9-pin, interleaved lines#		(intermediate resolution)# *	eps9high  Epson-compatible 9-pin, interleaved lines#		(triple resolution)# *	epsonc	Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers# *	ibmpro  IBM 9-pin Proprinter# *	imagen	Imagen ImPress printers# *	iwhi	Apple Imagewriter in high-resolution mode# *	iwlo	Apple Imagewriter in low-resolution mode# *	iwlq	Apple Imagewriter LQ in 320 x 216 dpi mode# *	jetp3852  IBM Jetprinter ink-jet color printer (Model #3852)# +	laserjet  H-P LaserJet# *	la50	DEC LA50 printer# *	la70	DEC LA70 printer# *	la70t	DEC LA70 printer with low-resolution text enhancement# *	la75	DEC LA75 printer# *	la75plus DEC LA75plus printer# *	lbp8	Canon LBP-8II laser printer# *	lips3	Canon LIPS III laser printer in English (CaPSL) mode# *	ln03	DEC LN03 printer# *	lj250	DEC LJ250 Companion color printer# +	ljet2p	H-P LaserJet IId/IIp/III* with TIFF compression# +	ljet3	H-P LaserJet III* with Delta Row compression# +	ljet4	H-P LaserJet 4 (defaults to 600 dpi)# +	lj4dith  H-P LaserJet 4 with Floyd-Steinberg dithering# +	ljetplus  H-P LaserJet Plus# *	lp2563	H-P 2563B line printer# *	m8510	C.Itoh M8510 printer# *	necp6	NEC P6/P6+/P60 printers at 360 x 360 DPI resolution# *	nwp533  Sony Microsystems NWP533 laser printer   [Sony only]# *	oki182	Okidata MicroLine 182# *	paintjet  alternate H-P PaintJet color printer# *	pj	H-P PaintJet XL driver # *	pjetxl	alternate H-P PaintJet XL driver# *	pjxl	H-P PaintJet XL color printer# *	pjxl300  H-P PaintJet XL300 color printer;#		also good for PaintJet 1200C# *	r4081	Ricoh 4081 laser printer# *	sj48	StarJet 48 inkjet printer# *	sparc	SPARCprinter# *	st800	Epson Stylus 800 printer# *	t4693d2  Tektronix 4693d color printer, 2 bits per R/G/B component# *	t4693d4  Tektronix 4693d color printer, 4 bits per R/G/B component# *	t4693d8  Tektronix 4693d color printer, 8 bits per R/G/B component# *	tek4696  Tektronix 4695/4696 inkjet plotter# *	xes	Xerox XES printers (2700, 3700, 4045, etc.)# Fax systems:# *	dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)# *	dfaxlow  DigiFAX low (normal) resolution# Fax file format:#   ****** NOTE: all of these drivers adjust the page size to match#   ****** one of the three CCITT standard sizes (U.S. letter with A4 width,#   ****** A4, or B4).#	faxg3	Group 3 fax, with EOLs but no header or EOD#	faxg32d  Group 3 2-D fax, with EOLs but no header or EOD#	faxg4	Group 4 fax, with EOLs but no header or EOD#	tiffg3	Group 3 fax TIFF#	tiffg32d  Group 3 2-D fax TIFF#	tiffg4	Group 4 fax TIFF# File formats and others:#	bit	Plain bits, monochrome#	bitrgb	Plain bits, RGB#	bitcmyk  Plain bits, CMYK#	bmpmono	Monochrome MS Windows .BMP file format#	bmp16	4-bit (EGA/VGA) .BMP file format#	bmp256	8-bit (256-color) .BMP file format#	bmp16m	24-bit .BMP file format# *	cif	CIF file format for VLSI#	gifmono	Monochrome GIF file format#	gif8	8-bit color GIF file format# *	mgrmono  1-bit monochrome MGR devices# *	mgrgray2  2-bit gray scale MGR devices# *	mgrgray4  4-bit gray scale MGR devices# *	mgrgray8  8-bit gray scale MGR devices# *	mgr4	4-bit (VGA) color MGR devices# *	mgr8	8-bit color MGR devices#	pcxmono	Monochrome PCX file format#	pcxgray	8-bit gray scale PCX file format#	pcx16	4-bit planar (EGA/VGA) color PCX file format#	pcx256	8-bit chunky color PCX file format#	pcx24b	24-bit color PCX file format, 3 8-bit planes#	psmono	Monochrome PostScript (Level 1) image#	pbm	Portable Bitmap (plain format)#	pbmraw	Portable Bitmap (raw format)#	pgm	Portable Graymap (plain format)#	pgmraw	Portable Graymap (raw format)#	ppm	Portable Pixmap (plain format) (RGB)#	ppmraw	Portable Pixmap (raw format) (RGB) # User-contributed drivers marked with * require hardware or software# that is not available to Aladdin Enterprises.  Please contact the# original contributors, not Aladdin Enterprises, if you have questions.# Contact information appears in the driver entry below.## Drivers marked with a + are maintained by Aladdin Enterprises with# the assistance of users, since Aladdin Enterprises doesn't have access to# the hardware for these either. # If you add drivers, it would be nice if you kept each list# in alphabetical order. # ---------------------------- End of catalog ---------------------------- # # As noted in gs.mak, DEVICE_DEVS and DEVICE_DEVS1..9 select the devices# that should be included in a given configuration.  By convention,# these are used as follows:#	DEVICE_DEVS - the default device, and any display devices.#	DEVICE_DEVS1 - additional display devices if needed.#	DEVICE_DEVS2 - dot matrix printers.#	DEVICE_DEVS3 - H-P monochrome printers.#	DEVICE_DEVS4 - H-P color printers.#	DEVICE_DEVS5 - additional H-P printers if needed.#	DEVICE_DEVS6 - other ink-jet and laser printers.#	DEVICE_DEVS7 - GIF, TIFF, and fax file formats.#	DEVICE_DEVS8 - BMP and PCX file formats.#	DEVICE_DEVS9 - PBM/PGM/PPM and bit file formats.# Feel free to disregard this convention if it gets in your way. # If you want to add a new device driver, the examples below should be# enough of a guide to the correct form for the makefile rules. # All device drivers depend on the following:GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h) # Define the header files for device drivers.  Every header file used by# more than one device driver must be listed here.gdev8bcm_h=gdev8bcm.hgdevpccm_h=gdevpccm.hgdevpcfb_h=gdevpcfb.h $(dos__h)gdevpcl_h=gdevpcl.hgdevsvga_h=gdevsvga.hgdevx_h=gdevx.h ###### ----------------------- Device support ----------------------- ###### # Provide a mapping between StandardEncoding and ISOLatin1Encoding.gdevemap.$(OBJ): gdevemap.c $(AK) $(std_h) # Implement dynamic color management for 8-bit mapped color displays.gdev8bcm.$(OBJ): gdev8bcm.c $(AK) \  $(gx_h) $(gxdevice_h) $(gdev8bcm_h) ###### ------------------- MS-DOS display devices ------------------- ###### # There are really only three drivers: an EGA/VGA driver (4 bit-planes,# plane-addressed), a SuperVGA driver (8 bit-planes, byte addressed),# and a special driver for the S3 chip. # PC display color mappinggdevpccm.$(OBJ): gdevpccm.c $(AK) \  $(gx_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h) ### ----------------------- EGA and VGA displays ----------------------- ### gdevegaa.$(OBJ): gdevegaa.asm ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevpccm.$(OBJ) gdevegaa.$(OBJ)ega.exe: $(ETEST) libc$(MM).tr	$(COMPDIR)\tlink $(LCT) $(LO) $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr ega.$(OBJ): ega.c $(GDEV)	$(CCC) -v ega.c # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)# or an empty string. # NOTE: for direct frame buffer addressing under SCO Unix or Xenix,# change gdevevga to gdevsco in the following line.  Also, since# SCO's /bin/as does not support the "out" instructions, you must build# the gnu assembler and have it on your path as "as".EGAVGA=gdevevga.$(OBJ) gdevpcfb.$(OBJ) gdevpccm.$(OBJ) $(PCFBASM)#EGAVGA=gdevsco.$(OBJ) gdevpcfb.$(OBJ) gdevpccm.$(OBJ) $(PCFBASM) gdevevga.$(OBJ): gdevevga.c $(GDEV) $(gdevpcfb_h)	$(CCD) gdevevga.c gdevsco.$(OBJ): gdevsco.c $(GDEV) $(gdevpcfb_h) # Common code for MS-DOS and SCO.gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(gconfigv_h) \  $(gdevpccm_h) $(gdevpcfb_h) $(gsparam_h)	$(CCD) gdevpcfb.c # The EGA/VGA family includes EGA and VGA.  Many SuperVGAs in 800x600,# 16-color mode can share the same code; see the next section below. ega.dev: $(EGAVGA)	$(SETDEV) ega $(EGAVGA) vga.dev: $(EGAVGA)	$(SETDEV) vga $(EGAVGA) ### ------------------------- SuperVGA displays ------------------------ ### # SuperVGA displays in 16-color, 800x600 mode are really just slightly# glorified VGA's, so we can handle them all with a single driver.# The way to select them on the command line is with#	-sDEVICE=svga16 -dDisplayMode=NNN# where NNN is the display mode in decimal.  See use.doc for the modes# for some popular display chipsets. svga16.dev: $(EGAVGA)	$(SETDEV) svga16 $(EGAVGA) # More capable SuperVGAs have a wide variety of slightly differing# interfaces, so we need a separate driver for each one. SVGA=gdevsvga.$(OBJ) gdevpccm.$(OBJ) $(PCFBASM) gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(gconfigv_h) \  $(gxarith_h) $(gdevpccm_h) $(gdevpcfb_h) $(gdevsvga_h)	$(CCD) gdevsvga.c # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,# and VESA. atiw.dev: $(SVGA)	$(SETDEV) atiw $(SVGA) tseng.dev: $(SVGA)	$(SETDEV) tseng $(SVGA) tseng8.dev: $(SVGA)	$(SETDEV) tseng8 $(SVGA) tvga.dev: $(SVGA)	$(SETDEV) tvga $(SVGA) vesa.dev: $(SVGA)	$(SETDEV) vesa $(SVGA) # The S3 driver doesn't share much code with the others. s3vga_=$(SVGA) gdevs3ga.$(OBJ) gdevsvga.$(OBJ) gdevpccm.$(OBJ)s3vga.dev: $(s3vga_)	$(SETDEV) s3vga $(s3vga_) gdevs3ga.$(OBJ): gdevs3ga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)	$(CCD) gdevs3ga.c ### ------------ The BGI (Borland Graphics Interface) device ----------- ### cgaf.$(OBJ): $(BGIDIR)\cga.bgi	$(BGIDIR)\bgiobj /F $(BGIDIR)\cga egavgaf.$(OBJ): $(BGIDIR)\egavga.bgi	$(BGIDIR)\bgiobj /F $(BGIDIR)\egavga # Include egavgaf.$(OBJ) for debugging only.bgi_=gdevbgi.$(OBJ) cgaf.$(OBJ)bgi.dev: $(bgi_)	$(SETDEV) bgi $(bgi_)	$(ADDMOD) bgi -lib $(LIBDIR)\graphics gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE) $(gxxfont_h)	$(CCC) -DBGI_LIB="$(BGIDIRSTR)" gdevbgi.c ### ------------------- The Hercules Graphics display ------------------- ### herc_=gdevherc.$(OBJ)herc.dev: $(herc_)	$(SETDEV) herc $(herc_) gdevherc.$(OBJ): gdevherc.c $(GDEV)	$(CCC) gdevherc.c ###### ----------------------- Other displays ------------------------ ###### ### ---------------------- The Private Eye display ---------------------- ###### Note: this driver was contributed by a user:                          ######   please contact narf@media-lab.media.mit.edu if you have questions.  ### pe_=gdevpe.$(OBJ)pe.dev: $(pe_)	$(SETDEV) pe $(pe_) gdevpe.$(OBJ): gdevpe.c $(GDEV) ### -------------------- The MS-Windows 3.n display --------------------- ### gdevmswn_h=gdevmswn.h $(GDEV) gp_mswin.h # Choose one of gdevwddb or gdevwdib here.mswin_=gdevmswn.$(OBJ) gdevmsxf.$(OBJ) gdevwdib.$(OBJ) \  gdevemap.$(OBJ) gdevpccm.$(OBJ)mswin.dev: $(mswin_)	$(SETDEV) mswin $(mswin_) gdevmswn.$(OBJ): gdevmswn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \  $(gsparam_h) $(gdevpccm_h) gdevmsxf.$(OBJ): gdevmsxf.c $(ctype__h) $(math__h) $(memory__h) \  $(gdevmswn_h) $(gsstruct_h) $(gsutil_h) $(gxxfont_h) # An implementation using a device-dependent bitmap.gdevwddb.$(OBJ): gdevwddb.c $(gdevmswn_h) # An implementation using a DIB filled by an image device.gdevwdib.$(OBJ): gdevwdib.c $(dos__h) $(gdevmswn_h) ### -------------------- The MS-Windows 3.n DLL ------------------------- ### # Must use gdevwdib.  mswin device must use the same.mswindll_=gdevmswn.$(OBJ) gdevmsxf.$(OBJ) gdevwdib.$(OBJ) \  gdevemap.$(OBJ) gdevpccm.$(OBJ)mswindll.dev: $(mswindll_)	$(SETDEV) mswindll $(mswindll_) ### -------------------- The MS-Windows 3.n printer --------------------- ### mswinprn_=gdevwprn.$(OBJ) gdevmsxf.$(OBJ)mswinprn.dev: $(mswinprn_)	$(SETDEV) mswinprn $(mswinprn_) gdevwprn.$(OBJ): gdevwprn.c $(gdevmswn_h) $(gp_h) ### ------------------ OS/2 Presentation Manager device ----------------- ### os2pm_=gdevpm.$(OBJ) gdevpccm.$(OBJ)os2pm.dev: $(os2pm_)	$(SETDEV) os2pm $(os2pm_) os2dll_=gdevpm.$(OBJ) gdevpccm.$(OBJ)os2dll.dev: $(os2dll_)	$(SETDEV) os2dll $(os2dll_) gdevpm.$(OBJ): gdevpm.c $(gp_h) $(gpcheck_h) \  $(gsexit_h) $(gsparam_h) $(gdevpccm_h) ### -------------- The AT&T 3b1 Unixpc monochrome display --------------- ###### Note: this driver was contributed by a user: please contact           ######       Andy Fyfe (andy@cs.caltech.edu) if you have questions.          ### att3b1_=gdev3b1.$(OBJ)att3b1.dev: $(att3b1_)	$(SETDEV) att3b1 $(att3b1_) gdev3b1.$(OBJ): gdev3b1.c ### ------------------------- DEC sixel displays ------------------------ ###### Note: this driver was contributed by a user: please contact           ######   Phil Keegstra (keegstra@tonga.gsfc.nasa.gov) if you have questions. ### # This is a "printer" device, but it probably shouldn't be.# I don't know why the implementor chose to do it this way.sxlcrt_=gdevln03.$(OBJ) gdevprn.$(OBJ)sxlcrt.dev: $(sxlcrt_)	$(SETDEV) sxlcrt $(sxlcrt_) ###### --------------- Memory-buffered printer devices --------------- ###### PDEVH=$(GDEV) $(gdevprn_h) gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsparam_h) ### --------------------- The Apple printer devices --------------------- ###### Note: these drivers were contributed by users.                        ######   If you have questions about the DMP driver, please contact          ######	Mark Wedel (master@cats.ucsc.edu).                                ######   If you have questions about the Imagewriter drivers, please contact ######	Jonathan Luckey (luckey@rtfm.mlb.fl.us).                          ######   If you have questions about the Imagewriter LQ driver, please       ######	contact Scott Barker (barkers@cuug.ab.ca).                        ### appledmp_=gdevadmp.$(OBJ) gdevprn.$(OBJ) gdevadmp.$(OBJ): gdevadmp.c $(GDEV) $(gdevprn_h) appledmp.dev: $(appledmp_)	$(SETDEV) appledmp $(appledmp_) iwhi.dev: $(appledmp_)	$(SETDEV) iwhi $(appledmp_) iwlo.dev: $(appledmp_)	$(SETDEV) iwlo $(appledmp_) iwlq.dev: $(appledmp_)	$(SETDEV) iwlq $(appledmp_) ### ------------ The Canon BubbleJet BJ10e and BJ200 devices ------------ ### bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ) bj10e.dev: $(bj10e_)	$(SETDEV) bj10e $(bj10e_) bj200.dev: $(bj10e_)	$(SETDEV) bj200 $(bj10e_) gdevbj10.$(OBJ): gdevbj10.c $(PDEVH) ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ### ### These are essentially the same device.### NOTE: printing at full resolution (300 DPI) requires a printer###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.### Note that the lj4dith driver is included with the H-P color printer###   drivers below. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)HPMONO=gdevdjet.$(OBJ) $(HPPCL) gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h) gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h) deskjet.dev: $(HPMONO)	$(SETDEV) deskjet $(HPMONO) djet500.dev: $(HPMONO)	$(SETDEV) djet500 $(HPMONO) 

Lines 1–500 of 1149.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t