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