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