home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / GSPM261 / DIFFS.ZIP / diffs / os2-emx.mak < prev    next >
Encoding:
Makefile  |  1993-12-25  |  68.2 KB  |  1,907 lines

  1. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  2. #
  3. # This file is part of Ghostscript.
  4. #
  5. # Ghostscript is distributed in the hope that it will be useful, but
  6. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  7. # to anyone for the consequences of using it or for whether it serves any
  8. # particular purpose or works at all, unless he says so in writing.  Refer
  9. # to the Ghostscript General Public License for full details.
  10. #
  11. # Everyone is granted permission to copy, modify and redistribute
  12. # Ghostscript, but only under the conditions described in the Ghostscript
  13. # General Public License.  A copy of this license is supposed to have been
  14. # given to you along with Ghostscript so you can know your rights and
  15. # responsibilities.  It should be in a file named COPYING.  Among other
  16. # things, the copyright notice and this notice must be preserved on all
  17. # copies.
  18.  
  19. # makefile for Ghostscript, OS/2 2.x, emx+gcc, tested with emx 0.8h
  20. # IBM/MS nmake and GNU make configuration.
  21. # made from Jim Yang's Borland C++ makefile by Kai Uwe Rommel (rommel@ars.muc.de)
  22.  
  23. # ------------------------------- Options ------------------------------- #
  24.  
  25. ####### The following are the only parts of the file you should need to edit.
  26.  
  27. # ------ Generic options ------ #
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with a :.
  30.  
  31. GS_LIB_DEFAULT=/lib/gs
  32.  
  33. # Define the name of the Ghostscript initialization file.
  34. # (There is no reason to change this.)
  35.  
  36. GS_INIT=gs_init.ps
  37.  
  38. # Choose generic configuration options.
  39.  
  40. # -DDEBUG
  41. #       includes debugging features (-Z switch) in the code.
  42. #         Code runs substantially slower even if no debugging switches
  43. #         are set.
  44. # -DNOPRIVATE
  45. #       makes private (static) procedures and variables public,
  46. #         so they are visible to the debugger and profiler.
  47. #         No execution time or space penalty.
  48.  
  49. GENOPT=
  50.  
  51. # Define the name of the executable file.
  52.  
  53. GS=gs.exe gspm.exe gsos2pm.exe
  54.  
  55. # ------ Platform-specific options ------ #
  56.  
  57. # Define the name of the C compiler.
  58.  
  59. CC=gcc -Zmtd -O -s
  60. AR=ar
  61. CFLAGS=-D__SVR3
  62.  
  63. # Define the extensions for the object and executable files.
  64.  
  65. OBJ=o
  66. LIB=a
  67. XE=.exe
  68.  
  69. # ------ Devices and features ------ #
  70.  
  71. # Choose the language feature(s) to include.  See gs.mak for details.
  72.  
  73. FEATURE_DEVS=filter.dev dps.dev level2.dev
  74.  
  75. # Choose the device(s) to include.  See devs.mak for details.
  76.  
  77. DEVICE_DEVS=os2pm.dev epson.dev eps9high.dev necp6.dev bj10e.dev bj200.dev
  78. DEVICE_DEVS2=laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev lbp8.dev
  79. DEVICE_DEVS3=deskjet.dev djet500.dev cdeskjet.dev cdjcolor.dev cdjmono.dev
  80. DEVICE_DEVS4=paintjet.dev pjetxl.dev pjxl.dev pjxl300.dev
  81. DEVICE_DEVS5=ibmpro.dev dfaxhigh.dev dfaxlow.dev bit.dev
  82. DEVICE_DEVS6=pbm.dev pbmraw.dev pgm.dev pgmraw.dev ppm.dev ppmraw.dev
  83. DEVICE_DEVS7=gifmono.dev gif8.dev pcxmono.dev pcx16.dev pcx256.dev
  84. DEVICE_DEVS8=bmpmono.dev bmp16.dev bmp256.dev bmp16m.dev tiffg3.dev
  85.  
  86.  
  87. # ---------------------------- End of options --------------------------- #
  88.  
  89. # Define the name of the makefile -- used in dependencies.
  90.  
  91. MAKEFILE=makefile
  92.  
  93. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  94.  
  95. AK=
  96.  
  97. # Define the compilation rules and flags.
  98.  
  99. CCC=$(CC) $(CCFLAGS) -c
  100.  
  101. # --------------------------- Generic makefile ---------------------------- #
  102.  
  103. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  104. # is generic.  tar_cat concatenates all these together.
  105. #    Copyright (C) 1990, 1991, 1993 Aladdin Enterprises.  All rights reserved.
  106. #
  107. # This file is part of Ghostscript.
  108. #
  109. # Ghostscript is distributed in the hope that it will be useful, but
  110. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  111. # to anyone for the consequences of using it or for whether it serves any
  112. # particular purpose or works at all, unless he says so in writing.  Refer
  113. # to the Ghostscript General Public License for full details.
  114. #
  115. # Everyone is granted permission to copy, modify and redistribute
  116. # Ghostscript, but only under the conditions described in the Ghostscript
  117. # General Public License.  A copy of this license is supposed to have been
  118. # given to you along with Ghostscript so you can know your rights and
  119. # responsibilities.  It should be in a file named COPYING.  Among other
  120. # things, the copyright notice and this notice must be preserved on all
  121. # copies.
  122.  
  123. # Partial makefile for Ghostscript, common to all Unix configurations.
  124.  
  125. # This part of the makefile gets inserted after the compiler-specific part
  126. # (xxx-head.mak) and before gs.mak and devs.mak.
  127.  
  128. # ----------------------------- Generic stuff ----------------------------- #
  129.  
  130. # Define the platform name.  For a "stock" System V platform,
  131. # use sysv_ instead of unix_.
  132.  
  133. PLATFORM=os2_
  134.  
  135. # Define the current directory prefix, shell quote string, and shell names.
  136.  
  137. EXP=
  138. QQ=\"
  139. SHELL=
  140. SH=$(SHELL)
  141. SHP=$(SH) $(EXP)
  142.  
  143. # Define the compilation rules and flags.
  144.  
  145. CCFLAGS=$(GENOPT) $(CFLAGS)
  146.  
  147. .SUFFIXES: .$(OBJ) .c .cc .s .exe
  148.  
  149. .c.$(OBJ):
  150.     $(CCC) $<
  151.  
  152. .$(OBJ).exe:
  153.     $(CC) -o $*.exe $<
  154.  
  155. CCCF=$(CCC)
  156. CCD=$(CCC)
  157. CCINT=$(CCC)
  158. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  159. #
  160. # This file is part of Ghostscript.
  161. #
  162. # Ghostscript is distributed in the hope that it will be useful, but
  163. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  164. # to anyone for the consequences of using it or for whether it serves any
  165. # particular purpose or works at all, unless he says so in writing.  Refer
  166. # to the Ghostscript General Public License for full details.
  167. #
  168. # Everyone is granted permission to copy, modify and redistribute
  169. # Ghostscript, but only under the conditions described in the Ghostscript
  170. # General Public License.  A copy of this license is supposed to have been
  171. # given to you along with Ghostscript so you can know your rights and
  172. # responsibilities.  It should be in a file named COPYING.  Among other
  173. # things, the copyright notice and this notice must be preserved on all
  174. # copies.
  175.  
  176. # Generic makefile for Ghostscript.
  177. # The platform-specific makefiles `include' this file.
  178. # They define the following symbols:
  179. #       GS - the name of the executable (without the extension, if any).
  180. #       GS_LIB_DEFAULT - the default directory/ies for searching for the
  181. #               initialization and font files at run time.
  182. #       DEVICE_DEVS - the devices to include in the executable.
  183. #               See devs.mak for details.
  184. #       DEVICE_DEVS1...DEVICE_DEVS9 - additional devices, if the definition of
  185. #               DEVICE_DEVS doesn't fit on one line.
  186. #               See devs.mak for details.
  187. #       FEATURE_DEVS - the optional features to include in the
  188. #               executable.  Current features are:
  189. #                   dps - (partial) support for Display PostScript extensions:
  190. #                       see language.doc for details.
  191. #                   level2 - (partial) support for PostScript Level 2
  192. #                       extensions: see language.doc for details.
  193. #                   compfont - support for composite (type 0) fonts.
  194. #                       *** NOT IMPLEMENTED YET. ***
  195. #                   filter - support for Level 2 filters (other than eexec,
  196. #                       ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  197. #                       and SubFileDecode, which are always included).
  198. #                   ccfonts - precompile fonts into C, and link them
  199. #                       with the executable.  In the standard makefiles,
  200. #                       this is only implemented for a very few fonts:
  201. #                       see fonts.doc for details.
  202. # It is very unlikely that anyone would want to edit the remaining
  203. #   symbols, but we describe them here for completeness:
  204. #       GS_INIT - the name of the initialization file for Ghostscript,
  205. #               normally gs_init.ps.
  206. #       PLATFORM - a "device" name for the platform, so that platforms can
  207. #               add various kinds of resources like devices and features.
  208. #       QQ - a " preceded by whatever escape characters are needed to
  209. #               persuade the shell to pass a " to a program (" on MS-DOS,
  210. #               \" on Unix).
  211. #       XE - the extension for executable files (e.g., null or .exe).
  212. #       OBJ - the extension for relocatable object files (e.g., o or obj).
  213. #       BEGINFILES - the list of files that `make begin' should delete.
  214. #       CCBEGIN - the compilation command for `make begin', normally
  215. #               $(CCC) *.c.
  216. #       CCC - the C invocation for normal compilation.
  217. #       CCD - the C invocation for files that store into frame buffers or
  218. #               device registers.  Needed because some optimizing compilers
  219. #               will eliminate necessary stores.
  220. #       CCCF - the C invocation for compiled fonts and other large,
  221. #               self-contained data modules.  Needed because MS-DOS
  222. #               requires using the 'huge' memory model for these.
  223. #       CCINT - the C invocation for compiling the main interpreter module,
  224. #               normally the same as CCC: this is needed because the
  225. #               Borland compiler generates *worse* code for this module
  226. #               (but only this module) when optimization (-O) is turned on.
  227. #       AK - if source files must be converted from ANSI to K&R syntax,
  228. #               this is ansi2knr$(XE); if not, it is null.
  229. #               If a particular platform requires other utility programs
  230. #               to be built, AK must include them too.
  231. #       SHP - the prefix for invoking a shell script in the current directory
  232. #               (null for MS-DOS, $(SH) ./ for Unix).
  233. #       EXPP, EXP - the prefix for invoking an executable program in the
  234. #               current directory (null for MS-DOS, ./ for Unix).
  235. #       SH - the shell for scripts (null on MS-DOS, sh on Unix).
  236. # The platform-specific makefiles must also include rules for creating
  237. #   ansi2knr$(XE), genarch$(XE), and genconf$(XE) from the corresponding
  238. #   .c files -- this is needed because Turbo C and Unix C treat the -o
  239. #   switch slightly differently (Turbo C requires no following space,
  240. #   Unix C requires a following space), and I haven't found a way to capture
  241. #   the difference in a macro.
  242.  
  243. all default: $(GS)
  244.  
  245. distclean realclean: clean
  246.     rm -f makefile
  247.  
  248. clean mostlyclean:
  249.     rm -f *.$(OBJ) *.a core gmon.out
  250.     rm -f *.dev *.d_* arch.h gconfig*.h o*.tr l*.tr
  251.     rm -f t _temp_* _temp_*.* *.map *.sym
  252.     rm -f ansi2knr$(XE) echogs$(XE) genarch$(XE) genconf$(XE)
  253.     rm -f $(GS) $(BEGINFILES) linkos2
  254.  
  255. # A rule to do a quick and dirty compilation attempt when first installing
  256. # Ghostscript.  Many of the compilations will fail: follow this with 'make'.
  257.  
  258. begin:
  259.     rm -f arch.h genarch$(XE) $(GS)$(XE) $(BEGINFILES)
  260.     make arch.h
  261.     - $(CCBEGIN)
  262.     rm -f gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gsmisc.$(OBJ)
  263.     rm -f iccfont.$(OBJ) iinit.$(OBJ) interp.$(OBJ) zfiledev.$(OBJ)
  264.  
  265. # Auxiliary programs
  266.  
  267. arch.h:
  268.     $(EXPP) $(EXP)genarch arch.h
  269.  
  270. # -------------------------------- Library -------------------------------- #
  271.  
  272. # Define the inter-dependencies of the .h files.
  273. # Since not all versions of `make' defer expansion of macros,
  274. # we must list these in bottom-to-top order.
  275.  
  276. # Generic files
  277.  
  278. arch_h=arch.h
  279. std_h=std.h $(arch_h)
  280.  
  281. # Platform interfaces
  282.  
  283. gp_h=gp.h
  284. gpcheck_h=gpcheck.h
  285.  
  286. # C library interfaces
  287.  
  288. # Because of variations in the "standard" header files between systems, and
  289. # because we must include std.h before any file that includes sys/types.h,
  290. # we define local include files named *_.h to substitute for <*.h>.
  291.  
  292. vmsmath_h=vmsmath.h
  293.  
  294. dos__h=dos_.h
  295. ctype__h=ctype_.h $(std_h)
  296. errno__h=errno_.h
  297. malloc__h=malloc_.h $(std_h)
  298. math__h=math_.h $(std_h) $(vmsmath_h)
  299. memory__h=memory_.h $(std_h)
  300. stat__h=stat_.h $(std_h)
  301. stdio__h=stdio_.h $(std_h)
  302. string__h=string_.h $(std_h)
  303. time__h=time_.h $(std_h)
  304. windows__h=windows_.h
  305.  
  306. # Miscellaneous
  307.  
  308. gdebug_h=gdebug.h
  309. gsio_h=gsio.h
  310. gstypes_h=gstypes.h
  311. gs_h=gs.h $(stdio__h) $(gsio_h) $(gstypes_h)
  312. gx_h=gx.h $(gs_h) $(gdebug_h)
  313. gconfig_h=gconfig.h gsconfig.h
  314. gserrors_h=gserrors.h
  315.  
  316. GX=$(AK) $(gx_h)
  317. GXERR=$(GX) $(gserrors_h)
  318.  
  319. ###### Low-level facilities and utilities
  320.  
  321. ### Include files
  322.  
  323. gsccode_h=gsccode.h
  324. gschar_h=gschar.h $(gsccode_h)
  325. gscie_h=gscie.h
  326. gscolor_h=gscolor.h
  327. gscolor2_h=gscolor2.h
  328. gscoord_h=gscoord.h
  329. gscrypt1_h=gscrypt1.h
  330. gscspace_h=gscspace.h
  331. gsfont_h=gsfont.h
  332. gsimage_h=gsimage.h
  333. gsmatrix_h=gsmatrix.h
  334. gspaint_h=gspaint.h
  335. gspath_h=gspath.h
  336. gsprops_h=gsprops.h
  337. gsstate_h=gsstate.h $(gscolor_h)
  338. gstype1_h=gstype1.h
  339. gsuid_h=gsuid.h
  340. gsutil_h=gsutil.h
  341. gsxfont_h=gsxfont.h
  342.  
  343. gxarith_h=gxarith.h
  344. gxbitmap_h=gxbitmap.h
  345. gxcache_h=gxcache.h $(gsuid_h) $(gsxfont_h)
  346. gxcdir_h=gxcdir.h
  347. gxchar_h=gxchar.h $(gschar_h)
  348. gxclist_h=gxclist.h
  349. # gxcldev is out of order because it include gxclist.
  350. gxcldev_h=gxcldev.h $(gxclist_h)
  351. gxcpath_h=gxcpath.h
  352. gxdevice_h=gxdevice.h $(gsmatrix_h) $(gsxfont_h) $(gxbitmap_h)
  353. gxdevmem_h=gxdevmem.h
  354. gxfdir_h=gxfdir.h $(gxcdir_h)
  355. gxfixed_h=gxfixed.h
  356. gxfont_h=gxfont.h $(gsfont_h) $(gsuid_h)
  357. gxfrac_h=gxfrac.h
  358. gximage_h=gximage.h $(gscspace_h) $(gsimage_h)
  359. gxlum_h=gxlum.h
  360. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  361. gxop1_h=gxop1.h
  362. gxpath_h=gxpath.h
  363. gxrefct_h=gxrefct.h
  364. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  365. gxxfont_h=gxxfont.h $(gsccode_h) $(gsmatrix_h) $(gsuid_h) $(gsxfont_h)
  366. # gxcolor and gxfmap are out of order because they include other files.
  367. gxcolor_h=gxcolor.h $(gxfrac_h) $(gsuid_h)
  368. gxfmap_h=gxfmap.h $(gxfrac_h) $(gxrefct_h)
  369.  
  370. gzcolor_h=gzcolor.h $(gscolor_h) $(gxfmap_h) $(gxlum_h)
  371. gzdevice_h=gzdevice.h $(gxdevice_h)
  372. gzht_h=gzht.h
  373. gzline_h=gzline.h
  374. gzpath_h=gzpath.h $(gxpath_h)
  375. gzstate_h=gzstate.h $(gsstate_h) $(gxfixed_h) $(gxmatrix_h)
  376.  
  377. ### Executable code
  378.  
  379. gp_nofb.$(OBJ): gp_nofb.c $(AK) \
  380.   $(gx_h) $(gp_h) $(gxdevice_h)
  381.  
  382. gsutil.$(OBJ): gsutil.c $(AK) \
  383.   $(std_h) $(gsprops_h) $(gsutil_h)
  384.  
  385. gxccache.$(OBJ): gxccache.c $(GXERR) $(gpcheck_h) \
  386.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  387.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  388.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h) \
  389.   $(gscspace_h) $(gsimage_h)
  390.  
  391. gxccman.$(OBJ): gxccman.c $(GXERR) $(gpcheck_h) \
  392.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzcolor_h) \
  393.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  394.   $(gxcache_h) $(gxxfont_h) $(gzstate_h) $(gzpath_h)
  395.  
  396. gxclist.$(OBJ): gxclist.c $(GXERR) $(gpcheck_h) \
  397.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  398.  
  399. gxclread.$(OBJ): gxclread.c $(GXERR) $(gpcheck_h) \
  400.   $(gsmatrix_h) $(gxbitmap_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  401.  
  402. gxcmap.$(OBJ): gxcmap.c $(GXERR) \
  403.   $(gscspace_h) \
  404.   $(gxcolor_h) $(gxdevice_h) $(gxfrac_h) $(gxlum_h) \
  405.   $(gzcolor_h) $(gzstate_h)
  406.  
  407. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  408.   $(gxdevice_h) $(gxfixed_h) $(gzcolor_h) $(gzpath_h) $(gxcpath_h)
  409.  
  410. gxdither.$(OBJ): gxdither.c $(GX) \
  411.   $(gxfixed_h) $(gxlum_h) $(gxmatrix_h) $(gzstate_h) $(gzdevice_h) $(gzcolor_h) $(gzht_h)
  412.  
  413. gxdraw.$(OBJ): gxdraw.c $(GXERR) $(gpcheck_h) \
  414.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzcolor_h) $(gzdevice_h) $(gzstate_h)
  415.  
  416. gxfill.$(OBJ): gxfill.c $(GXERR) \
  417.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzcolor_h) $(gzpath_h) $(gzstate_h) $(gxcpath_h)
  418.  
  419. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  420.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) \
  421.   $(gzdevice_h) $(gzstate_h)
  422.  
  423. gxhint2.$(OBJ): gxhint2.c $(GXERR) \
  424.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) $(gxop1_h) \
  425.   $(gzdevice_h) $(gzstate_h)
  426.  
  427. gxht.$(OBJ): gxht.c $(GXERR) \
  428.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h)
  429.  
  430. gxpath.$(OBJ): gxpath.c $(GXERR) \
  431.   $(gxfixed_h) $(gzpath_h)
  432.  
  433. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  434.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  435.  
  436. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) \
  437.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  438.  
  439. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(gpcheck_h) \
  440.   $(gscoord_h) $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) \
  441.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzline_h) $(gzpath_h)
  442.  
  443. ###### High-level facilities
  444.  
  445. gschar.$(OBJ): gschar.c $(GXERR) \
  446.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gxcache_h) $(gstype1_h) $(gspath_h) $(gzpath_h) $(gzcolor_h) $(gzstate_h)
  447.  
  448. gscolor.$(OBJ): gscolor.c $(GXERR) \
  449.   $(gscspace_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  450.   $(gzstate_h) $(gzcolor_h)
  451.  
  452. gscoord.$(OBJ): gscoord.c $(GXERR) \
  453.   $(gsccode_h) $(gxarith_h) $(gxfixed_h) $(gxfont_h) $(gxmatrix_h) \
  454.   $(gzdevice_h) $(gzstate_h) $(gscoord_h)
  455.  
  456. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  457.   $(gxarith_h) $(gsprops_h) $(gsutil_h) $(gxbitmap_h) $(gxdevmem_h) \
  458.   $(gzstate_h) $(gzdevice_h)
  459.  
  460. gsfile.$(OBJ): gsfile.c $(GXERR) \
  461.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  462.  
  463. gsfont.$(OBJ): gsfont.c $(GXERR) \
  464.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfdir_h) \
  465.   $(gzstate_h)
  466.  
  467. gsht.$(OBJ): gsht.c $(GXERR) \
  468.   $(gzht_h) $(gzstate_h)
  469.  
  470. gsimage.$(OBJ): gsimage.c $(GXERR) $(gpcheck_h) \
  471.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  472.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  473.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  474.  
  475. gsimage1.$(OBJ): gsimage1.c $(GXERR) $(gpcheck_h) \
  476.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  477.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  478.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  479.  
  480. gsimage2.$(OBJ): gsimage2.c $(GXERR) $(gpcheck_h) \
  481.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gscspace_h) $(gspaint_h) \
  482.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  483.   $(gxcolor_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  484.  
  485. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  486.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  487.  
  488. gsline.$(OBJ): gsline.c $(GXERR) \
  489.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  490.  
  491. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  492.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h)
  493.  
  494. gsmisc.$(OBJ): gsmisc.c $(GX) $(errno__h) $(malloc__h) $(memory__h) $(MAKEFILE)
  495.         $(CCC) -DUSE_ASM=0$(USE_ASM) gsmisc.c
  496.  
  497. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  498.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzpath_h) $(gzstate_h) $(gzdevice_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  499.  
  500. gspath.$(OBJ): gspath.c $(GXERR) \
  501.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  502.  
  503. gspath2.$(OBJ): gspath2.c $(GXERR) \
  504.   $(gspath_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzpath_h) $(gzdevice_h)
  505.  
  506. gsstate.$(OBJ): gsstate.c $(GXERR) \
  507.   $(gscie_h) $(gscolor2_h) $(gscspace_h) $(gxcolor_h) $(gxrefct_h) \
  508.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h) $(gzline_h) $(gzpath_h)
  509.  
  510. gstdev.$(OBJ): gstdev.c $(GXERR) \
  511.   $(gxbitmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  512.  
  513. gstype1.$(OBJ): gstype1.c $(GXERR) \
  514.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) $(gxdevmem_h) $(gxop1_h) $(gxtype1_h) \
  515.   $(gzstate_h) $(gzdevice_h) $(gzpath_h)
  516.  
  517. ###### The internal devices
  518.  
  519. gdevmem_h=gdevmem.h
  520.  
  521. gdevemap.$(OBJ): gdevemap.c $(AK) $(std_h)
  522.  
  523. gdevmem1.$(OBJ): gdevmem1.c $(AK) \
  524.   $(gx_h) $(gserrors_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  525.  
  526. gdevmem2.$(OBJ): gdevmem2.c $(AK) \
  527.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  528.  
  529. gdevmem3.$(OBJ): gdevmem3.c $(AK) \
  530.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  531.  
  532. ###### Files dependent on the installed devices, features, and platform.
  533. # Generating gconfig.h also generates o*.tr and l*.tr.
  534.  
  535. # gconfig.h shouldn't have to depend on ALL_DEVS, but that would
  536. # involve rewriting gsconfig to only save the device name, not the
  537. # contents of the <device>.D_# files.
  538.  
  539. ALL_DEVS=$(FEATURE_DEVS) $(PLATFORM).dev \
  540.   $(DEVICE_DEVS) $(DEVICE_DEVS1) \
  541.   $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5)\
  542.   $(DEVICE_DEVS6) $(DEVICE_DEVS7) $(DEVICE_DEVS8) $(DEVICE_DEVS9)
  543.  
  544. gconfig.h obj.tr objw.tr ld.tr lib.tr: \
  545.   devs.mak $(MAKEFILE) echogs$(XE) genconf$(XE) $(ALL_DEVS)
  546.     $(EXP)echogs -w t.cfg - $(FEATURE_DEVS) $(PLATFORM).dev
  547.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS)
  548.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS1)
  549.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS2)
  550.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS3)
  551.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS4)
  552.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS5)
  553.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS6)
  554.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS7)
  555.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS8)
  556.     $(EXP)echogs -a t.cfg - $(DEVICE_DEVS9)
  557.     $(EXP)genconf @t.cfg -h gconfig.h -l lib.tr -o obj.tr -u ld.tr -w objw.tr
  558.     rm t.cfg
  559.     $(EXP)echogs -a gconfig.h -x 23 define GS_LIB_DEFAULT -x 2022 $(GS_LIB_DEFAULT) -x 22
  560.     $(EXP)echogs -a gconfig.h -x 23 define GS_INIT -x 2022 $(GS_INIT) -x 22
  561.  
  562. gconfig.$(OBJ): gconfig.c $(AK) $(gconfig_h) $(MAKEFILE)
  563.  
  564. ###### On Unix, we pre-link all of the library except the back end.
  565. ###### On MS-DOS, we have to do the whole thing at once.
  566.  
  567. LIBGS=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) \
  568.  gsdevice.$(OBJ) gsfile.$(OBJ) gsfont.$(OBJ) gsht.$(OBJ) \
  569.  gsimage.$(OBJ) gsimage1.$(OBJ) gsimage2.$(OBJ) \
  570.  gsimpath.$(OBJ) gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  571.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) \
  572.  gsstate.$(OBJ) gstdev.$(OBJ) gstype1.$(OBJ) gsutil.$(OBJ) \
  573.  gxccache.$(OBJ) gxccman.$(OBJ) gxclist.$(OBJ) gxclread.$(OBJ) \
  574.  gxcmap.$(OBJ) gxcpath.$(OBJ) \
  575.  gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) \
  576.  gxhint1.$(OBJ) gxhint2.$(OBJ) gxht.$(OBJ) \
  577.  gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxstroke.$(OBJ) \
  578.  gdevmem1.$(OBJ) gdevmem2.$(OBJ) gdevmem3.$(OBJ) gconfig.$(OBJ)
  579.  
  580. # ------------------------------ Interpreter ------------------------------ #
  581.  
  582. ###### Include files
  583.  
  584. alloc_h=alloc.h
  585. astate_h=astate.h
  586. ccfont_h=ccfont.h
  587. dict_h=dict.h
  588. dparam_h=dparam.h
  589. dstack_h=dstack.h
  590. errors_h=errors.h
  591. estack_h=estack.h
  592. filedev_h=filedev.h
  593. files_h=files.h
  594. font_h=font.h
  595. ilevel_h=ilevel.h
  596. iname_h=iname.h
  597. iref_h=iref.h
  598. iscan_h=iscan.h
  599. ivmspace_h=ivmspace.h
  600. iutil_h=iutil.h
  601. main_h=main.h
  602. opdef_h=opdef.h
  603. ostack_h=ostack.h
  604. overlay_h=overlay.h
  605. packed_h=packed.h
  606. save_h=save.h
  607. scanchar_h=scanchar.h
  608. sbits_h=sbits.h
  609. shc_h=shc.h
  610. state_h=state.h
  611. store_h=store.h
  612. stream_h=stream.h
  613. # Nested include files
  614. bfont_h=bfont.h $(font_h)
  615. ghost_h=ghost.h $(gx_h) $(iref_h)
  616. oper_h=oper.h $(gsutil_h) $(iutil_h) $(opdef_h) $(ostack_h)
  617. scf_h=scf.h $(shc_h)
  618. sdct_h=sdct.h $(shc_h)
  619. # Include files for optional features
  620. bnum_h=bnum.h
  621. bseq_h=bseq.h
  622. btoken_h=btoken.h
  623.  
  624. comp1_h=comp1.h $(ghost_h) $(oper_h) $(gserrors_h) $(gxfixed_h) $(gxop1_h)
  625.  
  626. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  627.   $(gserrors_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  628.  
  629. ###### Utilities
  630.  
  631. GH=$(AK) $(ghost_h)
  632.  
  633. ialloc.$(OBJ): ialloc.c $(AK) $(gx_h) $(alloc_h) $(astate_h) $(ivmspace_h)
  634.  
  635. iccfont.$(OBJ): iccfont.c $(GH) gconfigf.h \
  636.   $(ghost_h) $(alloc_h) $(ccfont_h) $(dict_h) $(dstack_h) $(errors_h) \
  637.   $(font_h) $(iutil_h) $(iname_h) $(oper_h) $(save_h) $(store_h)
  638.  
  639. idebug.$(OBJ): idebug.c $(GH) \
  640.   $(iutil_h) $(dict_h) $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h)
  641.  
  642. idict.$(OBJ): idict.c $(GH) \
  643.   $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(packed_h) \
  644.   $(save_h) $(store_h) $(iutil_h) $(dict_h) $(dstack_h)
  645.  
  646. idparam.$(OBJ): idparam.c $(GH) \
  647.   $(gsmatrix_h) $(dict_h) $(dparam_h) $(errors_h) $(iutil_h)
  648.  
  649. iinit.$(OBJ): iinit.c $(GH) $(gconfig_h) \
  650.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(ilevel_h) $(iname_h) $(oper_h) $(store_h)
  651.  
  652. iname.$(OBJ): iname.c $(GH) $(alloc_h) $(errors_h) $(ivmspace_h) $(iname_h) $(store_h)
  653.  
  654. isave.$(OBJ): isave.c $(GH) $(alloc_h) $(astate_h) $(errors_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  655.  
  656. iscan.$(OBJ): iscan.c $(GH) $(ctype__h) \
  657.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) \
  658.   $(ilevel_h) $(iutil_h) $(iscan_h) $(ivmspace_h) \
  659.   $(iname_h) $(ostack_h) $(packed_h) $(store_h) $(stream_h) $(scanchar_h)
  660.  
  661. iutil.$(OBJ): iutil.c $(GH) \
  662.   $(errors_h) $(alloc_h) $(dict_h) $(iutil_h) $(ivmspace_h) \
  663.   $(iname_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h) \
  664.   $(gsmatrix_h) $(gxdevice_h) $(gzcolor_h)
  665.  
  666. sfilter.$(OBJ): sfilter.c $(AK) $(stdio__h) \
  667.   $(scanchar_h) $(stream_h) $(gscrypt1_h)
  668.  
  669. stream.$(OBJ): stream.c $(AK) $(stdio__h) $(memory__h) \
  670.   $(gpcheck_h) $(scanchar_h) $(stream_h)
  671.  
  672. ###### Operators
  673.  
  674. OP=$(GH) $(errors_h) $(oper_h)
  675.  
  676. ### Non-graphics operators
  677.  
  678. zarith.$(OBJ): zarith.c $(OP) $(store_h)
  679.  
  680. zarray.$(OBJ): zarray.c $(OP) $(alloc_h) $(packed_h) $(store_h)
  681.  
  682. zcontrol.$(OBJ): zcontrol.c $(OP) $(estack_h) $(iutil_h) $(store_h)
  683.  
  684. zdict.$(OBJ): zdict.c $(OP) $(dict_h) $(dstack_h) $(iname_h) $(store_h)
  685.  
  686. zfile.$(OBJ): zfile.c $(OP) $(gp_h) \
  687.   $(alloc_h) $(estack_h) $(filedev_h) $(files_h) $(ilevel_h) $(iutil_h) \
  688.   $(save_h) $(stream_h) $(store_h)
  689.  
  690. zfiledev.$(OBJ): zfiledev.c $(OP) $(string__h) $(gp_h) $(gconfig_h) \
  691.   $(filedev_h) $(files_h) $(stream_h)
  692.  
  693. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  694.   $(estack_h) $(files_h) $(iscan_h) $(store_h) $(stream_h) \
  695.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  696.  
  697. zfilter.$(OBJ): zfilter.c $(OP) $(alloc_h) $(stream_h)
  698.  
  699. zgeneric.$(OBJ): zgeneric.c $(OP) \
  700.   $(dict_h) $(estack_h) $(ivmspace_h) $(iname_h) $(packed_h) $(store_h)
  701.  
  702. zmath.$(OBJ): zmath.c $(OP) $(store_h)
  703.  
  704. zmisc.$(OBJ): zmisc.c $(OP) $(gp_h) $(errno__h) $(memory__h) $(string__h) \
  705.   $(alloc_h) $(dict_h) $(dstack_h) $(iname_h) $(ivmspace_h) $(packed_h) $(store_h) \
  706.   $(gscrypt1_h)
  707.  
  708. zpacked.$(OBJ): zpacked.c $(OP) \
  709.   $(alloc_h) $(dict_h) $(ivmspace_h) $(iname_h) $(packed_h) $(save_h) $(store_h)
  710.  
  711. zprops.$(OBJ): zprops.c $(OP) \
  712.   $(alloc_h) $(dict_h) $(iname_h) $(state_h) $(store_h) \
  713.   $(gsprops_h) $(gsmatrix_h) $(gxdevice_h) $(gsstate_h)
  714.  
  715. zrelbit.$(OBJ): zrelbit.c $(OP) $(store_h) $(dict_h)
  716.  
  717. zstack.$(OBJ): zstack.c $(OP) $(store_h)
  718.  
  719. zstring.$(OBJ): zstring.c $(OP) \
  720.   $(alloc_h) $(iscan_h) $(iutil_h) $(iname_h) $(store_h) $(stream_h)
  721.  
  722. ztype.$(OBJ): ztype.c $(OP) \
  723.   $(dict_h) $(iscan_h) $(iutil_h) $(iname_h) $(stream_h) $(store_h)
  724.  
  725. zvmem.$(OBJ): zvmem.c $(OP) $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(save_h) $(state_h) $(store_h) \
  726.   $(gsmatrix_h) $(gsstate_h)
  727.  
  728. ###### Graphics operators
  729.  
  730. zchar.$(OBJ): zchar.c $(OP) $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) \
  731.   $(gschar_h) $(gxtype1_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  732.   $(alloc_h) $(dict_h) $(font_h) $(estack_h) $(ilevel_h) $(iname_h) $(state_h) $(store_h)
  733.  
  734. zcolor.$(OBJ): zcolor.c $(OP) $(alloc_h) $(estack_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gzcolor_h) $(iutil_h) $(state_h) $(store_h)
  735.  
  736. zdevice.$(OBJ): zdevice.c $(OP) $(alloc_h) $(state_h) $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  737.  
  738. zfont.$(OBJ): zfont.c $(OP) \
  739.   $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfdir_h) $(gxcache_h) \
  740.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(packed_h) $(save_h) $(state_h) $(store_h)
  741.  
  742. zfont1.$(OBJ): zfont1.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  743.   $(bfont_h) $(dict_h) $(dparam_h) $(iname_h) $(store_h)
  744.  
  745. zfont2.$(OBJ): zfont2.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  746.   $(alloc_h) $(bfont_h) $(dict_h) $(dparam_h) $(ilevel_h) $(iname_h) \
  747.   $(packed_h) $(save_h) $(store_h)
  748.  
  749. zgstate.$(OBJ): zgstate.c $(OP) $(alloc_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  750.  
  751. zht.$(OBJ): zht.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  752.  
  753. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(state_h) $(gscoord_h) $(store_h)
  754.  
  755. zpaint.$(OBJ): zpaint.c $(OP) \
  756.   $(alloc_h) $(estack_h) $(ilevel_h) $(state_h) $(store_h) $(stream_h) \
  757.   $(gsimage_h) $(gsmatrix_h) $(gspaint_h)
  758.  
  759. zpath.$(OBJ): zpath.c $(OP) $(gsmatrix_h) $(gspath_h) $(state_h) $(store_h)
  760.  
  761. zpath2.$(OBJ): zpath2.c $(OP) $(alloc_h) $(estack_h) $(gspath_h) $(state_h) $(store_h)
  762.  
  763. ###### Linking
  764.  
  765. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) \
  766.  iinit.$(OBJ) iname.$(OBJ) \
  767.  interp.$(OBJ) isave.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) \
  768.  sfilter.$(OBJ) stream.$(OBJ) \
  769.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) \
  770.  zfile.$(OBJ) zfiledev.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zgeneric.$(OBJ) \
  771.  zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zprops.$(OBJ) zrelbit.$(OBJ) \
  772.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  773.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zfont1.$(OBJ) zfont2.$(OBJ) \
  774.  zdevice.$(OBJ) zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) \
  775.  zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  776.  
  777. # -------------------------- Optional features ---------------------------- #
  778.  
  779. ### Additions common to Display PostScript and Level 2
  780.  
  781. # We have to split up the module list because of limitations
  782. # on the number of arguments to a DOS batch file.
  783. dpsand2a_=gsdps1.$(OBJ) ibnum.$(OBJ) iscan2.$(OBJ)
  784. dpsand2b_=zbseq.$(OBJ) zchar2.$(OBJ) zdps1.$(OBJ) zupath.$(OBJ) zvmem2.$(OBJ)
  785. dpsand2_=$(dpsand2a_) $(dpsand2b_)
  786. dpsand2.dev: $(dpsand2_)
  787.     $(SHP)gssetmod dpsand2 $(dpsand2a_)
  788.     $(SHP)gsaddmod dpsand2 -obj $(dpsand2b_)
  789.     $(SHP)gsaddmod dpsand2 -oper2 zbseq zchar2 zdps1 zupath zvmem2
  790.     $(SHP)gsaddmod dpsand2 -ps gs_dps1
  791.  
  792. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(gxfixed_h) $(gxmatrix_h) $(gzpath_h) $(gzstate_h)
  793.  
  794. ibnum.$(OBJ): ibnum.c $(GH) $(errors_h) $(stream_h) $(bnum_h) $(btoken_h)
  795.  
  796. iscan2.$(OBJ): iscan2.c $(GH) $(errors_h) \
  797.   $(alloc_h) $(dict_h) $(dstack_h) $(iscan_h) $(iutil_h) $(ivmspace_h) \
  798.   $(iname_h) $(ostack_h) $(save_h) $(store_h) $(stream_h) \
  799.   $(bseq_h) $(btoken_h) $(bnum_h)
  800.  
  801. zbseq.$(OBJ): zbseq.c $(OP) $(save_h) $(store_h) $(stream_h) $(files_h) $(iname_h) $(bnum_h) $(btoken_h) $(bseq_h)
  802.  
  803. zchar2.$(OBJ): zchar2.c $(OP) $(gschar_h) $(gsmatrix_h) $(gxfixed_h) $(gxfont_h) \
  804.   $(alloc_h) $(estack_h) $(font_h) $(iname_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  805.  
  806. zdps1.$(OBJ): zdps1.c $(OP) $(gsmatrix_h) $(gspath_h) $(gsstate_h) \
  807.   $(alloc_h) $(ivmspace_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  808.  
  809. zupath.$(OBJ): zupath.c $(OP) \
  810.   $(dict_h) $(dstack_h) $(iutil_h) $(state_h) $(store_h) $(stream_h) $(bnum_h) \
  811.   $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  812.   $(gxfixed_h) $(gxdevice_h) $(gxpath_h)
  813.  
  814. zvmem2.$(OBJ): zvmem2.c $(OP) \
  815.   $(ivmspace_h) $(store_h)
  816.  
  817. ### Display PostScript
  818. # We should include zcontext, but it isn't in good enough shape yet:
  819. #       $(SHP)gsaddmod dps -oper2 zcontext
  820.  
  821. dps_=
  822. dps.dev: dpsand2.dev $(dps_)
  823.     $(SHP)gssetmod dps $(dps_)
  824.     $(SHP)gsaddmod dps -include dpsand2
  825.  
  826. zcontext.$(OBJ): zcontext.c $(OP) \
  827.   $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(state_h) $(store_h)
  828.  
  829. ### Composite font support
  830.  
  831. gschar0.$(OBJ): gschar0.c $(GXERR) \
  832.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gzstate_h)
  833.  
  834. zfont0.$(OBJ): zfont0.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) \
  835.   $(alloc_h) $(bfont_h) $(dict_h) $(iname_h) $(state_h) $(store_h)
  836.  
  837. compfont_=zchar2.$(OBJ) zfont0.$(OBJ) gschar0.$(OBJ)
  838. compfont.dev: $(compfont_)
  839.     $(SHP)gssetmod compfont $(compfont_)
  840.     $(SHP)gsaddmod compfont -oper zfont0 zchar2
  841.     $(SHP)gsaddmod compfont -ps gs_type0
  842.  
  843. ### Level 2 additions
  844.  
  845. # We have to split up the module list because of limitations
  846. # on the number of arguments to a DOS batch file.
  847. level2a_=gscie.$(OBJ) gscolor2.$(OBJ) zcie.$(OBJ) zcolor2.$(OBJ)
  848. level2b_=zcspace2.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ) zmisc2.$(OBJ)
  849. level2_=$(level2a_) $(level2b_)
  850. level2.dev: compfont.dev dpsand2.dev filter.dev $(level2_)
  851.     $(SHP)gssetmod level2 $(level2a_)
  852.     $(SHP)gsaddmod level2 -obj $(level2b_)
  853.     $(SHP)gsaddmod level2 -include compfont dpsand2 filter
  854.     $(SHP)gsaddmod level2 -oper zmisc2_level
  855.     $(SHP)gsaddmod level2 -oper2 zcie zcolor2 zcspace2
  856.     $(SHP)gsaddmod level2 -oper2 zht2 zimage2 zmisc2
  857.     $(SHP)gsaddmod level2 -ps gs_lev2
  858.  
  859. gscie.$(OBJ): gscie.c $(GXERR) \
  860.   $(gscspace_h) $(gscie_h) $(gscolor2_h) \
  861.   $(gxarith_h) $(gxcolor_h) $(gxdevice_h) $(gxrefct_h) \
  862.   $(gzcolor_h) $(gzstate_h)
  863.  
  864. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  865.   $(gscie_h) $(gscolor2_h) $(gscspace_h) \
  866.   $(gxcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxrefct_h) \
  867.   $(gzcolor_h) $(gzstate_h)
  868.  
  869. zcie.$(OBJ): zcie.c $(OP) \
  870.   $(gscspace_h) $(gscolor2_h) $(gscie_h) $(gxcolor_h) $(gxrefct_h) \
  871.   $(alloc_h) $(dict_h) $(dparam_h) $(estack_h) $(save_h) $(state_h) $(store_h)
  872.  
  873. zcolor2.$(OBJ): zcolor2.c $(OP) \
  874.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  875.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  876.  
  877. zcspace2.$(OBJ): zcspace2.c $(OP) \
  878.   $(gscolor_h) $(gxcolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  879.   $(dict_h) $(dparam_h) $(estack_h) $(iname_h) $(state_h) $(store_h)
  880.  
  881. zht2.$(OBJ): zht2.c $(OP) \
  882.   $(dict_h) $(dparam_h) $(iname_h) $(state_h) $(store_h)
  883.  
  884. zimage2.$(OBJ): zimage2.c $(OP) \
  885.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) $(gxcolor_h) \
  886.   $(dict_h) $(dparam_h) $(ilevel_h) $(state_h)
  887.  
  888. zmisc2.$(OBJ): zmisc2.c $(OP) \
  889.   $(gsfont_h) \
  890.   $(dict_h) $(dparam_h) $(dstack_h) $(estack_h) $(ilevel_h) $(iname_h) $(store_h)
  891.  
  892. ### Filters other than the ones in sfilter.c
  893.  
  894. sbits.$(OBJ): sbits.c $(AK) $(stdio__h) $(sbits_h) $(stream_h)
  895.  
  896. scftab.$(OBJ): scftab.c $(AK) $(std_h) $(scf_h)
  897.  
  898. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scf_h)
  899.  
  900. scfd.$(OBJ): scfd.c $(AK) $(stdio__h) $(gdebug_h)\
  901.   $(sbits_h) $(scf_h) $(stream_h)
  902.  
  903. scfe.$(OBJ): scfe.c $(AK) $(stdio__h) $(gdebug_h)\
  904.   $(sbits_h) $(scf_h) $(stream_h)
  905.  
  906. sdctd.$(OBJ): sdctd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  907.  
  908. sdcte.$(OBJ): sdcte.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  909.  
  910. sfilter2.$(OBJ): sfilter2.c $(AK) $(stdio__h) $(scanchar_h) $(stream_h)
  911.  
  912. slzwd.$(OBJ): slzwd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  913.  
  914. slzwe.$(OBJ): slzwe.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  915.  
  916. zfilter2.$(OBJ): zfilter2.c $(OP) $(alloc_h) $(dict_h) $(dparam_h) $(sdct_h) $(stream_h)
  917.  
  918. # Because of size limits on the DOS command line,
  919. # we have to break this up into two parts.
  920. filter_1=zfilter2.$(OBJ) sfilter2.$(OBJ) sbits.$(OBJ)
  921. filter_2=scfdtab.$(OBJ) scftab.$(OBJ) scfd.$(OBJ) scfe.$(OBJ) 
  922. filter_3=sdctd.$(OBJ) sdcte.$(OBJ) slzwd.$(OBJ) slzwe.$(OBJ)
  923. filter.dev: $(filter_1) $(filter_2) $(filter_3)
  924.     $(SHP)gssetmod filter $(filter_1)
  925.     $(SHP)gsaddmod filter -obj $(filter_2)
  926.     $(SHP)gsaddmod filter -obj $(filter_3)
  927.     $(SHP)gsaddmod filter -oper zfilter2
  928.  
  929. ### Precompiled fonts.  See fonts.doc for more information.
  930.  
  931. CCFONT=$(OP) $(ccfont_h)
  932.  
  933. # List the fonts we are going to compile.
  934. # Because of intrinsic limitations in `make', we have to list
  935. # the object file names and the font names separately.
  936. ccfonts1_=uglyr.$(OBJ)
  937. ccfonts1=uglyr
  938.  
  939. ccfonts.dev: $(MAKEFILE) gs.mak iccfont.$(OBJ) \
  940.   $(ccfonts1_) $(ccfonts2_) $(ccfonts3_) $(ccfonts4_) $(ccfonts5_)
  941.     $(SHP)gssetmod ccfonts iccfont.$(OBJ)
  942.     $(SHP)gsaddmod ccfonts -obj $(ccfonts1_)
  943.     $(SHP)gsaddmod ccfonts -obj $(ccfonts2_)
  944.     $(SHP)gsaddmod ccfonts -obj $(ccfonts3_)
  945.     $(SHP)gsaddmod ccfonts -obj $(ccfonts4_)
  946.     $(SHP)gsaddmod ccfonts -obj $(ccfonts5_)
  947.     $(SHP)gsaddmod ccfonts -oper ccfonts
  948.  
  949. gconfigf.h: $(MAKEFILE) gs.mak genconf$(XE)
  950.     $(SHP)gssetmod ccfonts_
  951.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts1)
  952.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts2)
  953.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts3)
  954.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts4)
  955.     $(SHP)gsaddmod ccfonts_ -font $(ccfonts5)
  956.     $(EXP)genconf ccfonts_.dev -f gconfigf.h
  957.  
  958. uglyr.$(OBJ): uglyr.c $(CCFONT)
  959.     $(CCCF) uglyr.c
  960.  
  961. ncrr.$(OBJ): ncrr.c $(CCFONT)
  962.     $(CCCF) ncrr.c
  963.  
  964. pagk.$(OBJ): pagk.c $(CCFONT)
  965.     $(CCCF) pagk.c
  966.  
  967. psyr.$(OBJ): psyr.c $(CCFONT)
  968.     $(CCCF) psyr.c
  969.  
  970. ptmr.$(OBJ): ptmr.c $(CCFONT)
  971.     $(CCCF) ptmr.c
  972.  
  973. pzdr.$(OBJ): pzdr.c $(CCFONT)
  974.     $(CCCF) pzdr.c
  975.  
  976. # ----------------------------- Main program ------------------------------ #
  977.  
  978. # Interpreter main program
  979.  
  980. gs.$(OBJ): gs.c $(GH) $(ctype__h) \
  981.   $(gxdevice_h) $(gxdevmem_h) \
  982.   $(alloc_h) $(errors_h) $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  983.  
  984. gsmain.$(OBJ): gsmain.c $(GH) \
  985.   $(gp_h) $(gsmatrix_h) $(gxdevice_h) $(gserrors_h) \
  986.   $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h)
  987.  
  988. interp.$(OBJ): interp.c $(GH) \
  989.   $(errors_h) $(estack_h) $(iname_h) $(dict_h) $(dstack_h) $(iscan_h) $(oper_h) $(ostack_h) $(packed_h) $(save_h) $(store_h) $(stream_h)
  990.     $(CCINT) interp.c
  991. #    Copyright (C) 1989, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  992. #
  993. # This file is part of Ghostscript.
  994. #
  995. # Ghostscript is distributed in the hope that it will be useful, but
  996. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  997. # to anyone for the consequences of using it or for whether it serves any
  998. # particular purpose or works at all, unless he says so in writing.  Refer
  999. # to the Ghostscript General Public License for full details.
  1000. #
  1001. # Everyone is granted permission to copy, modify and redistribute
  1002. # Ghostscript, but only under the conditions described in the Ghostscript
  1003. # General Public License.  A copy of this license is supposed to have been
  1004. # given to you along with Ghostscript so you can know your rights and
  1005. # responsibilities.  It should be in a file named COPYING.  Among other
  1006. # things, the copyright notice and this notice must be preserved on all
  1007. # copies.
  1008.  
  1009. # makefile for Ghostscript device drivers.
  1010.  
  1011. # -------------------------------- Catalog ------------------------------- #
  1012.  
  1013. # It is possible to build Ghostscript with an arbitrary collection of
  1014. # device drivers, although some drivers are supported only on a subset
  1015. # of the target platforms.  The currently available drivers are:
  1016.  
  1017. # Displays:
  1018. #   MS-DOS EGA and VGA:
  1019. #       ega     EGA (640x350, 16-color)
  1020. #       vga     VGA (640x480, 16-color)
  1021. #   MS-DOS SuperVGA:
  1022. # +     atiw    ATI Wonder SuperVGA, 256-color modes
  1023. # +     atiw16  ATI Wonder SuperVGA in 800x600, 16-color mode
  1024. #       s3vga   SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)
  1025. #       tseng   SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  1026. #       tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  1027. # +     tvga    Trident SuperVGA, 256-color modes
  1028. # +     tvga16  Trident SuperVGA in 800x600, 16-color mode (256K memory)
  1029. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  1030. #   ****** compiler or executable.
  1031. #       vesa    SuperVGA with VESA standard API driver
  1032. #   MS-DOS other:
  1033. #       bgi     Borland Graphics Interface (CGA)  [MS-DOS only]
  1034. # *     herc    Hercules Graphics display   [MS-DOS only]
  1035. #       mswin   Microsoft Windows 3.0, 3.1  [MS Windows only]
  1036. #       mswinprn  Microsoft Windows 3.0, 3.1 printer  [MS Windows only]
  1037. # *     pe      Private Eye display
  1038. #   Unix and VMS:
  1039. #   ****** NOTE: For direct frame buffer addressing under SCO Unix or Xenix,
  1040. #   ****** edit the definition of EGAVGA below.
  1041. # *     att3b1  AT&T 3b1/Unixpc monochrome display   [3b1 only]
  1042. # *     sonyfb  Sony Microsystems monochrome display   [Sony only]
  1043. # *     sunview  SunView window system   [SunOS only]
  1044. #       x11     X Windows version 11, release >=3   [Unix and VMS only]
  1045. # Printers:
  1046. # *     appledmp  Apple Dot Matrix Printer (should also work with Imagewriter)
  1047. #       bj10e   Canon BubbleJet BJ10e
  1048. # *     bj200   Canon BubbleJet BJ200
  1049. # *     cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  1050. # *     cdjcolor  H-P DeskJet 500C with 24 bit/pixel color and
  1051. #               high-quality color (Floyd-Steinberg) dithering
  1052. # *     cdjmono  H-P DeskJet 500C printing black only
  1053. # *     cdj500  H-P DeskJet 500C (same as cdjcolor)
  1054. # *     cdj550  H-P DeskJet 550C
  1055. # *     declj250  alternate DEC LJ250 driver
  1056. # +     deskjet  H-P DeskJet and DeskJet Plus
  1057. # *     dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  1058. # *     dfaxlow  DigiFAX low (normal) resolution
  1059. #       djet500  H-P DeskJet 500
  1060. # *     djet500c  H-P DeskJet 500C
  1061. #       epson   Epson-compatible dot matrix printers (9- or 24-pin)
  1062. # +     eps9high  Epson-compatible 9-pin, interleaved lines
  1063. #               (triple resolution)
  1064. # *     epsonc  Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  1065. # *     escp2   Epson ESC/P 2 language printers, including Stylus 800
  1066. # +     ibmpro  IBM 9-pin Proprinter
  1067. # *     jetp3852  IBM Jetprinter ink-jet color printer (Model #3852)
  1068. # +     laserjet  H-P LaserJet
  1069. # *     la50    DEC LA50 printer
  1070. # *     la75    DEC LA75 printer
  1071. # *     lbp8    Canon LBP-8II laser printer
  1072. # *     ln03    DEC LN03 printer
  1073. # *     lj250   DEC LJ250 Companion color printer
  1074. # +     ljet2p  H-P LaserJet IId/IIp/III* with TIFF compression
  1075. # +     ljet3   H-P LaserJet III* with Delta Row compression
  1076. # +     ljetplus  H-P LaserJet Plus
  1077. # *     m8510   C.Itoh M8510 printer
  1078. # *     necp6   NEC P6/P6+/P60 printers at 360 x 360 DPI resolution
  1079. # *     nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  1080. # *     oki182  Okidata MicroLine 182
  1081. #       paintjet  H-P PaintJet color printer
  1082. # *     pj      alternate PaintJet XL driver 
  1083. # *     pjxl    H-P PaintJet XL color printer
  1084. # *     pjxl300  H-P PaintJet XL300 color printer
  1085. # *     r4081   Ricoh 4081 laser printer
  1086. # *     sparc   SPARCprinter
  1087. # *     t4693d2  Tektronix 4693d color printer, 2 bits per R/G/B component
  1088. # *     t4693d4  Tektronix 4693d color printer, 4 bits per R/G/B component
  1089. # *     t4693d8  Tektronix 4693d color printer, 8 bits per R/G/B component
  1090. # *     tek4696  Tektronix 4695/4696 inkjet plotter
  1091. # *     trufax  TruFax facsimile driver  [Unix only]
  1092. # File formats and others:
  1093. #       bit     A plain "bit bucket" device
  1094. #       bmpmono Monochrome MS Windows .BMP file format
  1095. #       bmp16   4-bit (EGA/VGA) .BMP file format
  1096. #       bmp256  8-bit (256-color) .BMP file format
  1097. #       bmp16m  24-bit .BMP file format
  1098. #       gifmono Monochrome GIF file format
  1099. #       gif8    8-bit color GIF file format
  1100. #       pcxmono Monochrome PCX file format
  1101. #       pcx16   Older color PCX file format (EGA/VGA, 16-color)
  1102. #       pcx256  Newer color PCX file format (256-color)
  1103. #       pbm     Portable Bitmap (plain format)
  1104. #       pbmraw  Portable Bitmap (raw format)
  1105. #       pgm     Portable Graymap (plain format)
  1106. #       pgmraw  Portable Graymap (raw format)
  1107. #       ppm     Portable Pixmap (plain format)
  1108. #       ppmraw  Portable Pixmap (raw format)
  1109. # *     tiffg3  TIFF/F (G3 fax)
  1110.  
  1111. # User-contributed drivers marked with * require hardware or software
  1112. # that is not available to Aladdin Enterprises.  Please contact the
  1113. # original contributors, not Aladdin Enterprises, if you have questions.
  1114. # Contact information appears in the driver entry below.
  1115. #
  1116. # Drivers marked with a + are maintained by Aladdin Enterprises with
  1117. # the assistance of users, since Aladdin Enterprises doesn't have access to
  1118. # the hardware for these either.
  1119.  
  1120. # If you add drivers, it would be nice if you kept each list
  1121. # in alphabetical order.
  1122.  
  1123. # Each platform-specific makefile contains a line of the form
  1124. #       DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  1125. # where dev1 ... devn are the devices to be included in the build.
  1126. # You may edit this line to select any desired set of devices.
  1127. # dev1 will be used as the default device (unless overridden from
  1128. # the command line with -sDEVICE=xxx, of course.)  If you can't fit all the
  1129. # devices on a single line, you may add lines defining
  1130. #       DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
  1131. #       DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
  1132. # etc. up to DEVICE_DEVS9.
  1133. # Don't use continuation lines, since this may break the MS-DOS command
  1134. # processor.
  1135.  
  1136. # ---------------------------- End of catalog ---------------------------- #
  1137.  
  1138. # If you want to add a new device driver, the examples below should be
  1139. # enough of a guide to the correct form for the makefile rules.
  1140.  
  1141. # All device drivers depend on the following:
  1142. GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  1143.  
  1144. # Define the header files for device drivers.  Every header file used by
  1145. # more than one device driver must be listed here.
  1146. gdevpccm_h=gdevpccm.h
  1147. gdevpcfb_h=gdevpcfb.h $(dos__h)
  1148. gdevpcl_h=gdevpcl.h
  1149. gdevsvga_h=gdevsvga.h
  1150. gdevx_h=gdevx.h
  1151.  
  1152. ### ----------------------- The OS/2 PM driver ------------------------- ###
  1153.  
  1154. os2pm_=gdevpm.$(OBJ)
  1155. os2pm.dev:  $(os2pm_)
  1156.     $(SHP)gssetdev os2pm $(os2pm_)
  1157.  
  1158. gdevpm.$(OBJ):  gdevpm.c $(GDEV) gsos2.h
  1159.     $(CC) $(CFLAGS) -H -c gdevpm.c
  1160.  
  1161. ###### ------------------- MS-DOS display devices ------------------- ######
  1162.  
  1163. # There are really only three drivers: an EGA/VGA driver (4 bit-planes,
  1164. # plane-addressed), a SuperVGA driver (8 bit-planes, byte addressed),
  1165. # and a special driver for the S3 chip.
  1166. # To make A4 paper the default, change the compilation line from
  1167. #       $(CCD) ...
  1168. # to
  1169. #       $(CCD) -DA4
  1170.  
  1171. ### ----------------------- EGA and VGA displays ----------------------- ###
  1172.  
  1173. gdevegaa.$(OBJ): gdevegaa.asm
  1174.  
  1175. ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  1176. ega.exe: $(ETEST) libc$(MM).tr
  1177.     $(COMPDIR)\tlink $(LCT) $(LO) $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  1178.  
  1179. ega.$(OBJ): ega.c $(GDEV)
  1180.     $(CCC) -v ega.c
  1181.  
  1182. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  1183. # or an empty string.
  1184.  
  1185. # NOTE: for direct frame buffer addressing under SCO Unix or Xenix,
  1186. # change gdevevga to gdevsco in the following line.
  1187. EGAVGA=gdevevga.$(OBJ) gdevpcfb.$(OBJ) $(PCFBASM)
  1188.  
  1189. gdevevga.$(OBJ): gdevevga.c $(GDEV) $(gdevpcfb_h)
  1190.     $(CCD) gdevevga.c
  1191.  
  1192. gdevsco.$(OBJ): gdevsco.c $(GDEV) $(gdevpcfb_h)
  1193.     $(CCD) gdevsco.c
  1194.  
  1195. # Common code for MS-DOS and SCO.
  1196. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h)
  1197.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  1198.  
  1199. # The EGA/VGA family includes: EGA, VGA, and
  1200. # the ATI Wonder, Tseng ET3000/4000, and Trident SuperVGA in 16-color mode.
  1201.  
  1202. ega.dev: $(EGAVGA)
  1203.     $(SHP)gssetdev ega $(EGAVGA)
  1204.  
  1205. vga.dev: $(EGAVGA)
  1206.     $(SHP)gssetdev vga $(EGAVGA)
  1207.  
  1208. atiw16.dev: $(EGAVGA)
  1209.     $(SHP)gssetdev atiw16 $(EGAVGA)
  1210.  
  1211. tseng16.dev: $(EGAVGA)
  1212.     $(SHP)gssetdev tseng16 $(EGAVGA)
  1213.  
  1214. tvga16.dev: $(EGAVGA)
  1215.     $(SHP)gssetdev tvga16 $(EGAVGA)
  1216.  
  1217. ### ------------------------- SuperVGA displays ------------------------ ###
  1218.  
  1219. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  1220.  
  1221. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) \
  1222.   $(gdevpcfb_h) $(gdevsvga_h)
  1223.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  1224.  
  1225. # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,
  1226. # and VESA.
  1227.  
  1228. atiw.dev: $(SVGA)
  1229.     $(SHP)gssetdev atiw $(SVGA)
  1230.  
  1231. tseng.dev: $(SVGA)
  1232.     $(SHP)gssetdev tseng $(SVGA)
  1233.  
  1234. tvga.dev: $(SVGA)
  1235.     $(SHP)gssetdev tvga $(SVGA)
  1236.  
  1237. vesa.dev: $(SVGA)
  1238.     $(SHP)gssetdev vesa $(SVGA)
  1239.  
  1240. # The S3 driver doesn't share much code with the others.
  1241.  
  1242. s3vga_=$(SVGA) gdevs3ga.$(OBJ)
  1243. s3vga.dev: $(s3vga_)
  1244.     $(SHP)gssetdev s3vga $(s3vga_)
  1245.  
  1246. gdevs3ga.$(OBJ): gdevs3ga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)
  1247.     $(CCD) gdevs3ga.c
  1248.  
  1249. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  1250.  
  1251. cgaf.$(OBJ): $(BGIDIR)\cga.bgi
  1252.     $(BGIDIR)\bgiobj /F $(BGIDIR)\cga
  1253.  
  1254. egavgaf.$(OBJ): $(BGIDIR)\egavga.bgi
  1255.     $(BGIDIR)\bgiobj /F $(BGIDIR)\egavga
  1256.  
  1257. # Include egavgaf.$(OBJ) for debugging only.
  1258. bgi_=gdevbgi.$(OBJ) cgaf.$(OBJ)
  1259. bgi.dev: $(bgi_)
  1260.     $(SHP)gssetdev bgi $(bgi_)
  1261.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  1262.  
  1263. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE) $(gxxfont_h)
  1264.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIRSTR)$(QQ) gdevbgi.c
  1265.  
  1266. ### ------------------- The Hercules Graphics display ------------------- ###
  1267.  
  1268. herc_=gdevherc.$(OBJ)
  1269. herc.dev: $(herc_)
  1270.     $(SHP)gssetdev herc $(herc_)
  1271.  
  1272. gdevherc.$(OBJ): gdevherc.c $(GDEV)
  1273.     $(CCC) gdevherc.c
  1274.  
  1275. ###### ------------------- The Private Eye display ------------------- ######
  1276. ### Note: this driver was contributed by a user:                          ###
  1277. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  1278.  
  1279. pe_=gdevpe.$(OBJ)
  1280. pe.dev: $(pe_)
  1281.     $(SHP)gssetdev pe $(pe_)
  1282.  
  1283. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  1284.  
  1285. ###### ----------------- The MS-Windows 3.n display ------------------ ######
  1286.  
  1287. gdevmswn_h=gdevmswn.h $(GDEV) gp_mswin.h
  1288.  
  1289. # Choose one of gdevwddb or gdevwdib here.
  1290. mswin_=gdevmswn.$(OBJ) gdevmsxf.$(OBJ) gdevwdib.$(OBJ) \
  1291.   gdevemap.$(OBJ) gdevpccm.$(OBJ)
  1292. mswin.dev: $(mswin_)
  1293.     $(SHP)gssetdev mswin $(mswin_)
  1294.  
  1295. gdevmswn.$(OBJ): gdevmswn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1296.   $(gsprops_h) $(gdevpccm_h)
  1297.  
  1298. gdevmsxf.$(OBJ): gdevmsxf.c $(ctype__h) $(math__h) $(memory__h) \
  1299.   $(gdevmswn_h) $(gsutil_h) $(gxxfont_h)
  1300.  
  1301. # An implementation using a device-dependent bitmap.
  1302. gdevwddb.$(OBJ): gdevwddb.c $(gdevmswn_h)
  1303.  
  1304. # An implementation using a DIB filled by an image device.
  1305. gdevwdib.$(OBJ): gdevwdib.c $(dos__h) $(gdevmswn_h)
  1306.  
  1307. ###### ----------------- The MS-Windows 3.n printer ------------------ ######
  1308.  
  1309. mswinprn_=gdevwprn.$(OBJ) gdevmsxf.$(OBJ)
  1310. mswinprn.dev: $(mswinprn_)
  1311.     $(SHP)gssetdev mswinprn $(mswinprn_)
  1312.  
  1313. gdevwprn.$(OBJ): gdevwprn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  1314.   $(gsprops_h) $(gdevpccm_h)
  1315.  
  1316. ###### ----------- The AT&T 3b1 Unixpc monochrome display ------------ ######
  1317. ### Note: this driver was contributed by a user: please contact           ###
  1318. ###       Andy Fyfe (andy@cs.caltech.edu) if you have questions.          ###
  1319.  
  1320. att3b1_=gdev3b1.$(OBJ)
  1321. att3b1.dev: $(att3b1_)
  1322.     $(SHP)gssetdev att3b1 $(att3b1_)
  1323.  
  1324. gdev3b1.$(OBJ): gdev3b1.c
  1325.  
  1326. ###### --------------- Memory-buffered printer devices --------------- ######
  1327.  
  1328. # The dependency list for printers includes devs.mak because
  1329. # you can specify -DA4 to make A4 paper the default.
  1330. # See below under, e.g., gdevdjet.c.
  1331. PDEVH=$(GDEV) $(gdevprn_h) devs.mak
  1332.  
  1333. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  1334.  
  1335. ### ------------------- The Apple DMP printer device ------------------- ###
  1336.  
  1337. appledmp_=gdevadmp.$(OBJ) gdevprn.$(OBJ)
  1338.  
  1339. appledmp.dev: $(appledmp_)
  1340.     $(SHP)gssetdev appledmp $(appledmp_)
  1341.  
  1342. ### ------------ The Canon BubbleJet BJ10e and BJ200 devices ------------ ###
  1343.  
  1344. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  1345.  
  1346. bj10e.dev: $(bj10e_)
  1347.     $(SHP)gssetdev bj10e $(bj10e_)
  1348.  
  1349. bj200.dev: $(bj10e_)
  1350.     $(SHP)gssetdev bj200 $(bj10e_)
  1351.  
  1352. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  1353.  
  1354. ### -------------------------- The DigiFAX device ----------------------- ###
  1355. ###    This driver outputs images in a format suitable for use with       ###
  1356. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  1357. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  1358. ### Note: this driver was contributed by a user: please contact           ###
  1359. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  1360.  
  1361. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  1362. dfaxhigh.dev: $(digifax_)
  1363.     $(SHP)gssetdev dfaxhigh $(digifax_)
  1364.  
  1365. dfaxlow.dev: $(digifax_)
  1366.     $(SHP)gssetdev dfaxlow $(digifax_)
  1367.  
  1368. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  1369.  
  1370. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  1371.  
  1372. ### These are essentially the same device.
  1373. ### You can make A4 paper the default: see below.
  1374. ### NOTE: printing at full resolution (300 DPI) requires a printer
  1375. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  1376.  
  1377. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  1378. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  1379.  
  1380. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  1381.  
  1382. # To make A4 paper the default, change the second line below this to
  1383. #       $(CCC) -DA4 gdevdjet.c
  1384. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  1385.     $(CCC) gdevdjet.c
  1386.  
  1387. deskjet.dev: $(HPMONO)
  1388.     $(SHP)gssetdev deskjet $(HPMONO)
  1389.  
  1390. djet500.dev: $(HPMONO)
  1391.     $(SHP)gssetdev djet500 $(HPMONO)
  1392.  
  1393. laserjet.dev: $(HPMONO)
  1394.     $(SHP)gssetdev laserjet $(HPMONO)
  1395.  
  1396. ljetplus.dev: $(HPMONO)
  1397.     $(SHP)gssetdev ljetplus $(HPMONO)
  1398.  
  1399. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  1400. ### IIIp, IIId, IIIsi, IId, and IIp. 
  1401.  
  1402. ljet2p.dev: $(HPMONO)
  1403.     $(SHP)gssetdev ljet2p $(HPMONO)
  1404.  
  1405. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  1406. ### IIIp, IIId, IIIsi.
  1407.  
  1408. ljet3.dev: $(HPMONO)
  1409.     $(SHP)gssetdev ljet3 $(HPMONO)
  1410.  
  1411. ###- The H-P DeskJet 500C/550C and PaintJet family color printer devices -###
  1412. ### Note: there are two different 500C drivers, both contributed by users.###
  1413. ###   If you have questions about the djet500c driver,                    ###
  1414. ###       please contact AKayser@et.tudelft.nl.                           ###
  1415. ###   If you have questions about the cdj* drivers,                       ###
  1416. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  1417.  
  1418. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  1419.  
  1420. cdeskjet.dev: $(cdeskjet_)
  1421.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  1422.  
  1423. cdjcolor.dev: $(cdeskjet_)
  1424.     $(SHP)gssetdev cdjcolor $(cdeskjet_)
  1425.  
  1426. cdjmono.dev: $(cdeskjet_)
  1427.     $(SHP)gssetdev cdjmono $(cdeskjet_)
  1428.  
  1429. cdj500.dev: $(cdeskjet_)
  1430.     $(SHP)gssetdev cdj500 $(cdeskjet_)
  1431.  
  1432. cdj550.dev: $(cdeskjet_)
  1433.     $(SHP)gssetdev cdj550 $(cdeskjet_)
  1434.  
  1435. declj250.dev: $(cdeskjet_)
  1436.     $(SHP)gssetdev declj250 $(cdeskjet_)
  1437.  
  1438. pj.dev: $(cdeskjet_)
  1439.     $(SHP)gssetdev pj $(cdeskjet_)
  1440.  
  1441. pjxl.dev: $(cdeskjet_)
  1442.     $(SHP)gssetdev pjxl $(cdeskjet_)
  1443.  
  1444. pjxl300.dev: $(cdeskjet_)
  1445.     $(SHP)gssetdev pjxl300 $(cdeskjet_)
  1446.  
  1447. # NB: you can also customise the build if required, using -DA4 (for A4 paper)
  1448. # and -DBitsPerPixel=<number> if you wish the default to be other than 24
  1449. # for the generic drivers (cdj500, cdj550, pjxl300, pjtest, pjxltest).
  1450. # E.g,. to make A4 paper the default, change the second line below this to
  1451. #       $(CCC) -DA4 gdevdjet.c
  1452. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  1453.     $(CCC) gdevcdj.c
  1454.  
  1455. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  1456. djet500c.dev: $(djet500c_)
  1457.     $(SHP)gssetdev djet500c $(djet500c_)
  1458.  
  1459. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  1460.  
  1461. ### ----------------- The generic Epson printer device ----------------- ###
  1462.  
  1463. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  1464.  
  1465. epson.dev: $(epson_)
  1466.     $(SHP)gssetdev epson $(epson_)
  1467.  
  1468. eps9high.dev: $(epson_)
  1469.     $(SHP)gssetdev eps9high $(epson_)
  1470.  
  1471. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  1472.  
  1473. ### ----------------- The IBM Proprinter printer device ---------------- ###
  1474.  
  1475. ibmpro.dev: $(epson_)
  1476.     $(SHP)gssetdev ibmpro $(epson_)
  1477.  
  1478. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  1479. ### Note: this driver was contributed by users: please contact           ###
  1480. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  1481.  
  1482. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  1483. epsonc.dev: $(epsonc_)
  1484.     $(SHP)gssetdev epsonc $(epsonc_)
  1485.  
  1486. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH)
  1487.  
  1488. ### -------------- The Epson ESC/P 2 language printer device ----------- ###
  1489. ### Note: this driver was contributed by a user: if you have questions,  ###
  1490. ###       please contact Richard Brown (rab@tauon.ph.unimelb.edu.au).    ###
  1491.  
  1492. escp2_=gdevescp2.$(OBJ) gdevprn.$(OBJ)
  1493. escp2.dev: $(escp2_)
  1494.     $(SHP)gssetdev escp2 $(escp2_)
  1495.  
  1496. gdevescp2.$(OBJ): gdevescp2.c $(PDEVH)
  1497.  
  1498. ### ------------ The H-P PaintJet color printer device ----------------- ###
  1499. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  1500. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  1501. ### If you have questions about the XL, please contact Rob Reiss         ###
  1502. ###       (rob@moray.berkeley.edu).                                      ###
  1503.  
  1504. PJET=gdevpjet.$(OBJ) $(HPPCL)
  1505.  
  1506. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  1507.  
  1508. lj250.dev: $(PJET)
  1509.     $(SHP)gssetdev lj250 $(PJET)
  1510.  
  1511. paintjet.dev: $(PJET)
  1512.     $(SHP)gssetdev paintjet $(PJET)
  1513.  
  1514. pjetxl.dev: $(PJET)
  1515.     $(SHP)gssetdev pjetxl $(PJET)
  1516.  
  1517. ### ------- The IBM 3852 JetPrinter color inkjet printer device -------- ###
  1518. ### Note: this driver was contributed by users: please contact           ###
  1519. ###       Kevin Gift (kgift@draper.com) if you have questions.           ###
  1520. ### Note that the paper size that can be addressed by the graphics mode  ###
  1521. ###   used in this driver is fixed at 7-1/2 inches wide (the printable   ###
  1522. ###   width of the jetprinter itself.)                                   ###
  1523.  
  1524. jetp3852_=gdev3852.$(OBJ) gdevprn.$(OBJ)
  1525. jetp3852.dev: $(jetp3852_)
  1526.     $(SHP)gssetdev jetp3852 $(jetp3852_)
  1527.  
  1528. gdevjetp.$(OBJ): gdevjetp.c $(PDEVH) $(gdevpcl_h)
  1529.  
  1530. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  1531. ### Note: this driver was contributed by users: please contact           ###
  1532. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  1533. ### Note that the standard paper size for this driver is the European    ###
  1534. ###   A4 size, not the American 8.5" x 11" size.                         ###
  1535.  
  1536. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  1537. lbp8.dev: $(lbp8_)
  1538.     $(SHP)gssetdev lbp8 $(lbp8_)
  1539.  
  1540. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  1541.  
  1542. ### -------------- The DEC LN03/LA50/LA75 printer devices -------------- ###
  1543. ### Note: this driver was contributed by users: please contact           ###
  1544. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  1545. ### For questions about LA50 and LA75: please contact                    ###
  1546. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                     ###
  1547. ### For the LN03, you can make A4 paper the default: see below.          ###
  1548.  
  1549. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  1550. ln03.dev: $(ln03_)
  1551.     $(SHP)gssetdev ln03 $(ln03_)
  1552.  
  1553. la50.dev: $(ln03_)
  1554.     $(SHP)gssetdev la50 $(ln03_)
  1555.  
  1556. la75.dev: $(ln03_)
  1557.     $(SHP)gssetdev la75 $(ln03_)
  1558.  
  1559. # To make A4 paper the default, change the second line below this to
  1560. #       $(CCC) -DA4 gdevln03.c
  1561. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  1562.     $(CCC) gdevln03.c
  1563.  
  1564. ### -------------- The C.Itoh M8510 printer device --------------------- ###
  1565. ### Note: this driver was contributed by a user: please contact Bob      ###
  1566. ###       Smith <bob@snuffy.penfield.ny.us> if you have questions.       ###
  1567.  
  1568. m8510_=gdev8510.$(OBJ) gdevprn.$(OBJ)
  1569. m8510.dev: $(m8510_)
  1570.     $(SHP)gssetdev m8510 $(m8510_)
  1571.  
  1572. gdev8510.$(OBJ): gdev8510.c $(PDEVH)
  1573.  
  1574. ### --------------------- The NEC P6 family devices -------------------- ###
  1575.  
  1576. necp6_=gdevnp6.$(OBJ) gdevprn.$(OBJ)
  1577. necp6.dev: $(necp6_)
  1578.     $(SHP)gssetdev necp6 $(necp6_)
  1579.  
  1580. gdevnp6.$(OBJ): gdevnp6.c $(PDEVH)
  1581.  
  1582. ### ----------------- The Okidata MicroLine 182 device ----------------- ###
  1583. ### Note: this driver was contributed by a user: please contact          ###
  1584. ###       Maarten Koning (smeg@bnr.ca) if you have questions.            ###
  1585.  
  1586. oki182_=gdevo182.$(OBJ) gdevprn.$(OBJ)
  1587. oki182.dev: $(oki182_)
  1588.     $(SHP)gssetdev oki182 $(oki182_)
  1589.  
  1590. gdevo182.$(OBJ): gdevo182.c $(PDEVH)
  1591.  
  1592. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  1593. ### Note: this driver was contributed by users:                          ###
  1594. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  1595.  
  1596. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  1597. r4081.dev: $(r4081_)
  1598.     $(SHP)gssetdev r4081 $(r4081_)
  1599.  
  1600. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  1601.  
  1602. ###### ------------------------ Sony devices ------------------------ ######
  1603. ### Note: these drivers were contributed by users: please contact        ###
  1604. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  1605.  
  1606. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  1607.  
  1608. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  1609. sonyfb.dev: $(sonyfb_)
  1610.     $(SHP)gssetdev sonyfb $(sonyfb_)
  1611.  
  1612. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  1613.  
  1614. ### -------------------- Sony NWP533 printer device -------------------- ###
  1615. ### Note: this driver was contributed by a user: please contact Tero     ###
  1616. ###       Kivinen (kivinen@joker.cs.hut.fi) if you have questions.       ###
  1617.  
  1618. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  1619. nwp533.dev: $(nwp533_)
  1620.     $(SHP)gssetdev nwp533 $(nwp533_)
  1621.  
  1622. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  1623.  
  1624. ### ------------------------- The SPARCprinter ------------------------- ###
  1625. ### Note: this driver was contributed by users: please contact Martin    ###
  1626. ###       Schulte (schulte@thp.uni-koeln.de) if you have questions.      ###
  1627. ###       He would also like to hear from anyone using the driver.       ###
  1628. ### Please consult the source code for additional documentation.         ###
  1629.  
  1630. sparc_=gdevsppr.$(OBJ) gdevprn.$(OBJ)
  1631. sparc.dev: $(sparc_)
  1632.     $(SHP)gssetdev sparc $(sparc_)
  1633.  
  1634. gdevsppr.$(OBJ): gdevsppr.c $(PDEVH)
  1635.  
  1636. ###### --------------------- The SunView device --------------------- ######
  1637. ### Note: this driver is maintained by a user: if you have questions,    ###
  1638. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  1639.  
  1640. sunview_=gdevsun.$(OBJ)
  1641. sunview.dev: $(sunview_)
  1642.     $(SHP)gssetdev sunview $(sunview_)
  1643.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  1644.  
  1645. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  1646.  
  1647. ### ----------------- Tektronix 4396d color printer -------------------- ###
  1648. ### Note: this driver was contributed by a user: please contact          ###
  1649. ###       Karl Hakimian (hakimian@haney.eecs.wsu.edu)                    ###
  1650. ###       if you have questions.                                         ###
  1651.  
  1652. t4693d_=gdev4693.$(OBJ) gdevprn.$(OBJ)
  1653. t4693d2.dev: $(t4693d_)
  1654.     $(SHP)gssetdev t4693d2 $(t4693d_)
  1655.  
  1656. t4693d4.dev: $(t4693d_)
  1657.     $(SHP)gssetdev t4693d4 $(t4693d_)
  1658.  
  1659. t4693d8.dev: $(t4693d_)
  1660.     $(SHP)gssetdev t4693d8 $(t4693d_)
  1661.  
  1662. gdev4693.$(OBJ): gdev4693.c $(GDEV)
  1663.  
  1664. ### -------------------- Tektronix ink-jet printers -------------------- ###
  1665. ### Note: this driver was contributed by a user: please contact          ###
  1666. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  1667.  
  1668. tek4696_=gdevtknk.$(OBJ) gdevprn.$(OBJ)
  1669. tek4696.dev: $(tek4696_)
  1670.     $(SHP)gssetdev tek4696 $(tek4696_)
  1671.  
  1672. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH)
  1673.  
  1674. ### ----------------- The TruFax facsimile device ---------------------- ###
  1675. ### Note: this driver was contributed by users: please contact           ###
  1676. ###       Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
  1677. ### Note that the driver requires a file encode_l.o supplied by the      ###
  1678. ###   makers of the TruFax product.                                      ###
  1679.  
  1680. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  1681. trufax.dev: $(trufax_)
  1682.     $(SHP)gssetdev trufax $(trufax_)
  1683.  
  1684. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  1685.  
  1686. ###### ----------------------- The X11 device ----------------------- ######
  1687.  
  1688. # Aladdin Enterprises does not support Ghostview.  For more information
  1689. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  1690.  
  1691. # NOTE: Xmu and Xext are here to keep Sun's dynamic linker happy.  No
  1692. #       routines are used from either of these two libraries.  If you
  1693. #       do not have libXmu.a or libXext.a, simply remove these two lines
  1694. #       from the Makefile.
  1695. x11_=gdevx.$(OBJ) gdevxini.$(OBJ) gdevxxf.$(OBJ) gdevemap.$(OBJ)
  1696. x11.dev: $(x11_)
  1697.     $(SHP)gssetdev x11 $(x11_)
  1698.     $(SHP)gsaddmod x11 -lib Xt Xmu X11 Xext
  1699.  
  1700. # See the main makefile for the definition of XINCLUDE.
  1701. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  1702. gdevx.$(OBJ): gdevx.c $(GDEVX) $(gsprops_h) $(gsutil_h)
  1703.     $(CCC) $(XINCLUDE) gdevx.c
  1704.  
  1705. gdevxini.$(OBJ): gdevxini.c $(GDEVX) $(ctype__h)
  1706.     $(CCC) $(XINCLUDE) gdevxini.c
  1707.  
  1708. gdevxxf.$(OBJ): gdevxxf.c $(GDEVX) $(gsutil_h) $(gxxfont_h)
  1709.     $(CCC) $(XINCLUDE) gdevxxf.c
  1710.  
  1711. ### ---------------------- The bit bucket device ----------------------- ###
  1712.  
  1713. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  1714. bit.dev: $(bit_)
  1715.     $(SHP)gssetdev bit $(bit_)
  1716.  
  1717. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  1718.  
  1719. ###### ----------------------- PC file formats ---------------------- ######
  1720.  
  1721. gdevpccm.$(OBJ): gdevpccm.c $(AK) \
  1722.   $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  1723.  
  1724. ### ------------------------- .BMP file formats ------------------------- ###
  1725.  
  1726. bmp_=gdevbmp.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1727.  
  1728. gdevbmp.$(OBJ): gdevbmp.c $(PDEVH) $(gdevpccm_h)
  1729.  
  1730. bmpmono.dev: $(bmp_)
  1731.     $(SHP)gssetdev bmpmono $(bmp_)
  1732.  
  1733. bmp16.dev: $(bmp_)
  1734.     $(SHP)gssetdev bmp16 $(bmp_)
  1735.  
  1736. bmp256.dev: $(bmp_)
  1737.     $(SHP)gssetdev bmp256 $(bmp_)
  1738.  
  1739. bmp16m.dev: $(bmp_)
  1740.     $(SHP)gssetdev bmp16m $(bmp_)
  1741.  
  1742. ### ------------------------- GIF file formats ------------------------- ###
  1743.  
  1744. GIF=gdevgif.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1745.  
  1746. gdevgif.$(OBJ): gdevgif.c $(PDEVH) $(gdevpccm_h)
  1747.  
  1748. gifmono.dev: $(GIF)
  1749.     $(SHP)gssetdev gifmono $(GIF)
  1750.  
  1751. gif8.dev: $(GIF)
  1752.     $(SHP)gssetdev gif8 $(GIF)
  1753.  
  1754. ### ------------------------- PCX file formats ------------------------- ###
  1755.  
  1756. pcx_=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1757.  
  1758. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h)
  1759.  
  1760. pcxmono.dev: $(pcx_)
  1761.     $(SHP)gssetdev pcxmono $(pcx_)
  1762.  
  1763. pcx16.dev: $(pcx_)
  1764.     $(SHP)gssetdev pcx16 $(pcx_)
  1765.  
  1766. pcx256.dev: $(pcx_)
  1767.     $(SHP)gssetdev pcx256 $(pcx_)
  1768.  
  1769. ###### ------------------- Portable Bitmap devices ------------------ ######
  1770. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  1771.  
  1772. pxm_=gdevpbm.$(OBJ) gdevprn.$(OBJ)
  1773.  
  1774. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
  1775.  
  1776. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  1777.  
  1778. pbm.dev: $(pxm_)
  1779.     $(SHP)gssetdev pbm $(pxm_)
  1780.  
  1781. pbmraw.dev: $(pxm_)
  1782.     $(SHP)gssetdev pbmraw $(pxm_)
  1783.  
  1784. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  1785.  
  1786. pgm.dev: $(pxm_)
  1787.     $(SHP)gssetdev pgm $(pxm_)
  1788.  
  1789. pgmraw.dev: $(pxm_)
  1790.     $(SHP)gssetdev pgmraw $(pxm_)
  1791.  
  1792. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  1793.  
  1794. ppm.dev: $(pxm_)
  1795.     $(SHP)gssetdev ppm $(pxm_)
  1796.  
  1797. ppmraw.dev: $(pxm_)
  1798.     $(SHP)gssetdev ppmraw $(pxm_)
  1799.  
  1800. ### -------------------------- TIFF/F device ---------------------------- ###
  1801. ###    This driver outputs images in a TIFF format                        ###
  1802. ###    Use -sDEVICE=tiffg3 and                                            ###
  1803. ###       -r204x98 for low resolution output, or                          ###
  1804. ###       -r204x196 for high resolution output                            ###
  1805. ###    Note also that 3 page sizes are understood: letter, A4, and B4     ###
  1806. ### Note: this driver was contributed by a user: please contact           ###
  1807. ###       Sam Leffler (sam@sgi.com) if you have questions.                ###
  1808.  
  1809. tiffg3_=gdevtiff.$(OBJ) gdevprn.$(OBJ)
  1810. tiffg3.dev: $(tiffg3_)
  1811.     $(SHP)gssetdev tiffg3 $(tiffg3_)
  1812. gdevtiff.$(OBJ): gdevtiff.c $(GDEV) $(gdevprn_h) gdevdfg3.h gdevtiff.h
  1813. #    Copyright (C) 1990, 1992, 1993 Aladdin Enterprises.  All rights reserved.
  1814. #
  1815. # This file is part of Ghostscript.
  1816. #
  1817. # Ghostscript is distributed in the hope that it will be useful, but
  1818. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1819. # to anyone for the consequences of using it or for whether it serves any
  1820. # particular purpose or works at all, unless he says so in writing.  Refer
  1821. # to the Ghostscript General Public License for full details.
  1822. #
  1823. # Everyone is granted permission to copy, modify and redistribute
  1824. # Ghostscript, but only under the conditions described in the Ghostscript
  1825. # General Public License.  A copy of this license is supposed to have been
  1826. # given to you along with Ghostscript so you can know your rights and
  1827. # responsibilities.  It should be in a file named COPYING.  Among other
  1828. # things, the copyright notice and this notice must be preserved on all
  1829. # copies.
  1830.  
  1831. # Partial makefile for Ghostscript, common to all Unix configurations.
  1832.  
  1833. # This is the last part of the makefile for Unix configurations.
  1834. # Since Unix make doesn't have an 'include' facility, we concatenate
  1835. # the various parts of the makefile together by brute force (in tar_cat).
  1836.  
  1837. # The following prevents GNU make from constructing argument lists that
  1838. # include all environment variables, which can easily be longer than
  1839. # brain-damaged system V allows.
  1840.  
  1841. # .NOEXPORT:
  1842.  
  1843. # -------------------------------- Library -------------------------------- #
  1844.  
  1845. ## The OS/2 platforms
  1846.  
  1847. os2__=gp_os2.$(OBJ)
  1848. os2_.dev:  $(os2__)
  1849.     $(SHP)gssetmod os2_ $(os2__)
  1850.  
  1851. gp_os2.$(OBJ):  gp_os2.c $(memory_h) $(string_h) $(gx_h) $(gp_h) \
  1852.     $(stat_h) $(time_h)
  1853.     $(CC) $(CFLAGS) -DNOSYSTIME -DSVR4 -c gp_os2.c
  1854.  
  1855. # -------------------------- Auxiliary programs --------------------------- #
  1856.  
  1857. ansi2knr$(XE): ansi2knr.c $(stdio__h) $(string__h) $(malloc__h)
  1858.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  1859.  
  1860. echogs$(XE): echogs.c
  1861.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  1862.  
  1863. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  1864. # produces a buggy executable.
  1865. genarch$(XE): genarch.c
  1866.     $(CC) $(CFLAGS) -o genarch$(XE) genarch.c
  1867.  
  1868. genconf$(XE): genconf.c
  1869.     $(CC) $(CFLAGS) -o genconf$(XE) genconf.c
  1870.  
  1871. # ----------------------------- Main program ------------------------------ #
  1872.  
  1873. BEGINFILES=
  1874. CCBEGIN=$(CCC) *.c
  1875.  
  1876. # Interpreter main program
  1877.  
  1878. GSUNIX=gs.$(OBJ) gsmain.$(OBJ) $(INT) $(LIBGS)
  1879.  
  1880. gspm.$(LIB): ld.tr $(ALL_DEVS)
  1881.     - del $@
  1882.     $(AR) cr $@ @ld.tr
  1883.     $(AR) s $@
  1884.  
  1885. gspm$(XE):  gsos2.$(OBJ) gsos2.def
  1886.     $(CC) gsos2.$(OBJ) -o $@ gsos2.def
  1887.  
  1888. gsos2.$(OBJ):  gsos2.c gsos2.h
  1889.     $(CC) $(CFLAGS) -c gsos2.c
  1890.  
  1891. gsos2pm$(XE): gsos2pm.$(OBJ) gsos2pm.def gsos2pm.res gspm.$(LIB) $(GSUNIX)
  1892.     $(CC) gsos2pm.$(OBJ) -o $@ $(GSUNIX) gspm.$(LIB) gsos2pm.def gsos2pm.res
  1893.  
  1894. gsos2pm.$(OBJ):  gsos2pm.c gsos2.h
  1895.     $(CC) $(CFLAGS) -c gsos2pm.c
  1896.  
  1897. gsos2pm.res:  gsos2pm.rc gsos2pm.ico
  1898.     rc -r gsos2pm.rc
  1899.  
  1900. gs$(XE): gs2.$(OBJ) gspm.$(LIB) $(GSUNIX)
  1901.     $(CC) gs2.$(OBJ) -o $@ $(GSUNIX) gspm.$(LIB)
  1902.  
  1903. gs2.$(OBJ): gs.c $(GH) $(ctype__h) \
  1904.   $(gxdevice_h) $(gxdevmem_h) \
  1905.   $(alloc_h) $(errors_h) $(estack_h) $(files_h) $(iscan_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  1906.     $(CCC) -DSTANDALONE -o gs2.$(OBJ) gs.c
  1907.