home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / printing / ghostscrip / source / specific / mak / gdevs < prev    next >
Encoding:
Text File  |  1991-10-25  |  9.1 KB  |  269 lines

  1. #    Copyright (C) 1989, 1990, 1991 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 many drivers are supported only on a subset
  26. # of the target platforms.  The currently available drivers are:
  27.  
  28. # Displays:
  29. #    bgi    Borland Graphics Interface   [MS-DOS only]
  30. #    ega    EGA display   [MS-DOS only]
  31. # +    mdb10    EIZO MDB-10 display (1024 x 768)   [MS-DOS only]
  32. # *    pe    Private Eye display  [MS-DOS only]
  33. # +    sonyfb    Sony Microsystems monochrome display   [Sony only]
  34. #    sunview  SunView window system   [SunOS only]
  35. #    vga    VGA display   [MS-DOS only]
  36. #    x11    X Windows version 11, release >=3   [Unix only]
  37. # Printers:
  38. #    bit    A "bit bucket" device for time benchmarking
  39. # +    bj10e    Canon BubbleJet BJ10e  [MS-DOS only]
  40. # +    deskjet  H-P DeskJet   [MS-DOS & Unix]
  41. #    epson    Epson dot matrix printers   [MS-DOS & Unix]
  42. # +    laserjet  H-P LaserJet   [MS-DOS & Unix]
  43. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression   [ditto]
  44. # +    ljet3    H-P LaserJet III* with Delta Row compression   [ditto]
  45. # +    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  46. # +    paintjet  H-P PaintJet color printer [MS-DOS & Unix]
  47. # *    trufax    TruFax facsimile driver  [Unix only]
  48.  
  49. # User-contributed drivers marked with * require hardware or software
  50. # that is not available to Aladdin Enterprises.  Please contact the
  51. # original contributors, not Aladdin Enterprises, if you have questions.
  52. # Contact information appears in the driver entry below.  Drivers marked
  53. # with a + are maintained by Aladdin Enterprises with the assistance of
  54. # users, since Aladdin Enterprises doesn't have the hardware for these
  55. # either.
  56.  
  57. # If you add drivers, it would be nice if you kept each list
  58. # in alphabetical order.
  59.  
  60. # Each platform-specific makefile must contain lines of the form
  61. #    DEVICES=<dev1> ... <devn>
  62. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  63. #    DEVICE_OBJS=$(<dev1>_) ... $(<devn>_)
  64. # where dev1 ... devn are the devices to be included in the build.
  65. # dev1 will be used as the default device.  Don't forget the _s!
  66. # On MS-DOS platforms, the first two of these lines must appear *before*,
  67. # and the last *after*, the lines
  68. #    (!)include gdevs.mak
  69. #    (!)include ghost.mak
  70. # in the makefile.  On Unix systems, these device definition lines
  71. # may appear anywhere in the makefile.
  72. #
  73. # The executable must be linked with all the files named in DEVICE_OBJS.
  74. # On MS-DOS platforms, this is done by constructing a file called
  75. # gconfig.tr, to get around the limit on the length of a DOS command line.
  76.  
  77. # ---------------------------- End of catalog ---------------------------- #
  78.  
  79. # If you want to add a new device driver, the examples below should be
  80. # enough of a guide to the correct form for the makefile rules.
  81. #
  82. # ****** IMPORTANT NOTE ******
  83. #
  84. # The names of the relocatable (.OBJ) files for MS-DOS drivers
  85. # must be unique in the first *7* characters, because of the way
  86. # the makefile eliminates duplicates.
  87.  
  88. # All device drivers depend on the following
  89. # (note that we include some indirect dependencies explicitly):
  90.  
  91. GDEV=$(AK) gs.h gx.h gsmatrix.h gxbitmap.h gxdevice.h
  92.  
  93. ###### ------------------- MS-DOS display devices ------------------- ######
  94.  
  95. ### All the devices use the same driver, with different parameters.
  96.  
  97. gdevegaa.$(OBJ): gdevegaa.asm
  98.  
  99. ETEST=ega.$(OBJ) trace.$(OBJ) $(ega_)
  100. ega.exe: $(ETEST) libc$(MM).tr
  101.     tlink /m /l $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  102.  
  103. ega.$(OBJ): ega.c $(GDEV)
  104.  
  105. PCFB=gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  106.  
  107. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV)
  108.  
  109. ### -------------------------- The EGA device -------------------------- ###
  110.  
  111. ega_=$(PCFB)
  112. ega.dev: $(ega_)
  113.     .$(DS)gssetdev ega.dev $(ega_)
  114.  
  115. ### -------------------------- The VGA device -------------------------- ###
  116.  
  117. vga_=$(PCFB)
  118. vga.dev: $(vga_)
  119.     .$(DS)gssetdev vga.dev $(vga_)
  120.  
  121. ### ---------------------- The EIZO MDB-10 device ---------------------- ###
  122.  
  123. mdb10_=$(PCFB)
  124. mdb10.dev: $(mdb10_)
  125.     .$(DS)gssetdev mdb10.dev $(mdb10_)
  126.  
  127. ###### --------- The BGI (Borland Graphics Interface) device -------- ######
  128.  
  129. bgi_=gdevbgi.$(OBJ) egavga.$(OBJ)
  130. bgi.dev: $(bgi_)
  131.     .$(DS)gssetdev bgi.dev $(bgi_)
  132.  
  133. gdevbgi.$(OBJ): gdevbgi.c $(GDEV)
  134.  
  135. egavga.$(OBJ): $(BGIDIR)\egavga.bgi
  136.     $(BGIDIR)\bgiobj $(BGIDIR)\egavga
  137.  
  138. ###### ------------------- The Private Eye display ------------------- ######
  139. ### Note: this driver was contributed by a user:                          ###
  140. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  141.  
  142. pe_=gdevpe.$(OBJ)
  143. pe.dev: $(pe_)
  144.     .$(DS)gssetdev pe.dev $(pe_)
  145.  
  146. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  147.  
  148. ###### --------------- Memory-buffered printer devices --------------- ######
  149.  
  150. PDEVH=$(GDEV) gxdevmem.h gxclist.h gdevprn.h
  151.  
  152. gdevprn.$(OBJ): gdevprn.c $(PDEVH)
  153.  
  154. ### ---------------------- The bit bucket device ----------------------- ###
  155.  
  156. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  157. bit.dev: $(bit_)
  158.     .$(DS)gssetdev bit.dev $(bit_)
  159.  
  160. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  161.  
  162. ### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
  163.  
  164. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  165. bj10e.dev: $(bj10e_)
  166.     .$(DS)gssetdev bj10e.dev $(bj10e_)
  167.  
  168. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  169.  
  170. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  171.  
  172. ### These are essentially the same device.
  173.  
  174. HPMONO=gdevdjet.$(OBJ) gdevprn.$(OBJ)
  175.  
  176. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH)
  177.  
  178. deskjet_=$(HPMONO)
  179. deskjet.dev: $(deskjet_)
  180.     .$(DS)gssetdev deskjet.dev $(deskjet_)
  181.  
  182. laserjet_=$(HPMONO)
  183. laserjet.dev: $(laserjet_)
  184.     .$(DS)gssetdev laserjet.dev $(laserjet_)
  185.  
  186. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  187. ### IIIp, IIId, IIIsi, IId, and IIp. 
  188.  
  189. ljet2p_=$(HPMONO)
  190. ljet2p.dev: $(ljet2p_)
  191.     .$(DS)gssetdev ljet2p.dev $(ljet2p_)
  192.  
  193. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  194. ### IIIp, IIId, IIIsi.
  195.  
  196. ljet3_=$(HPMONO)
  197. ljet3.dev: $(ljet3_)
  198.     .$(DS)gssetdev ljet3.dev $(ljet3_)
  199.  
  200. ### ----------------- The generic Epson printer device ----------------- ###
  201. ### Note that you can set the default density in the command line below. ###
  202.  
  203. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  204. epson.dev: $(epson_)
  205.     .$(DS)gssetdev epson.dev $(epson_)
  206.  
  207. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH) gdevs.mak
  208.     $(CCC) -DX_DPI=180 -DY_DPI=180 gdevepsn.c
  209.  
  210. ### ------------ The H-P PaintJet color printer device ----------------- ###
  211. ### Note: this driver was contributed by users:                          ###
  212. ###       please contact marc@vlsi.polymtl.ca if you have questions.     ###
  213. ### The files are packaged separately from the rest of the fileset.      ###
  214.  
  215. paintjet_=gdevpjet.$(OBJ) gdevprn.$(OBJ)
  216. paintjet.dev: $(paintjet_)
  217.     .$(DS)gssetdev paintjet.dev $(paintjet_)
  218.  
  219. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH)
  220.  
  221. ###### ------------------ Sony frame buffer device ----------------- ######
  222.  
  223. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  224. sonyfb.dev: $(sonyfb_)
  225.     .$(DS)gssetdev sonyfb.dev $(sonyfb_)
  226.  
  227. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  228.  
  229. ###### ----------------- Sony NWP533 printer device ----------------- ######
  230.  
  231. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  232. nwp533.dev: $(nwp533_)
  233.     .$(DS)gssetdev nwp533.dev $(nwp533_)
  234.  
  235. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  236.  
  237. ###### --------------------- The SunView device --------------------- ######
  238.  
  239. sunview_=gdevsun.$(OBJ)
  240. sunview.dev: $(sunview_)
  241.     .$(DS)gssetdev sunview.dev $(sunview_)
  242.  
  243. gdevsun.$(OBJ): gdevsun.c $(GDEV) arch.h
  244.  
  245. ### ----------------- The TruFax facsimile device ---------------------- ###
  246. ### Note: this driver was contributed by users:                          ###
  247. ###       please contact nao@bellcore.com if you have questions.         ###
  248. ### Note that the driver requires a file encode_l.o supplied by the      ###
  249. ###   makers of the TruFax product.                                      ###
  250.  
  251. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  252. trufax.dev: $(trufax_)
  253.     .$(DS)gssetdev trufax.dev $(trufax_)
  254.  
  255. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  256.  
  257. ###### ----------------------- The X11 device ----------------------- ######
  258.  
  259. x11_=gdevx.$(OBJ)
  260. x11.dev: $(x11_)
  261.     .$(DS)gssetdev x11.dev $(x11_)
  262.  
  263. ### Note: if the X11 client header libraries are located in a directory
  264. ### which your compiler automatically searches, you may remove the -I switch
  265. ### from the compilation line below; if not, you may have to edit the line
  266. ### so that it mentions the correct directory.
  267. gdevx.$(OBJ): gdevx.c $(GDEV) gdevx.h
  268.     $(CCC) -I/usr/local/X/include gdevx.c
  269.