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