home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / zip / gnu / gs252b.lzh / GS252B / MAKEFILE < prev    next >
Text File  |  1993-07-30  |  60KB  |  1,698 lines

  1. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # Makefile for Ghostscript, Atari ST TOS/gcc configuration.
  21. # Hacked from the Unix/gcc/X11 makefile.
  22. # Note: this makefile assumes you are using gcc in ANSI mode.
  23.  
  24. # ------------------------------- Options ------------------------------- #
  25.  
  26. ####### The following are the only parts of the file you should need to edit.
  27.  
  28. # ------ Generic options ------ #
  29.  
  30. # Define the installation commands and target directories for
  31. # executables and files.  Only relevant to `make install'.
  32.  
  33. INSTALL = install -c
  34. INSTALL_PROGRAM = $(INSTALL) -m 775
  35. INSTALL_DATA = $(INSTALL) -m 664
  36.  
  37. prefix = f:\\\gs
  38. exec_prefix = $(prefix)
  39. bindir = $(exec_prefix)
  40. datadir = $(prefix)
  41. gsdatadir = $(datadir)
  42.  
  43. # Define the default directory/ies for the runtime
  44. # initialization and font files.  Separate multiple directories with a ','.
  45.  
  46. GS_LIB_DEFAULT=.,$(gsdatadir),$(gsdatadir)\\\ps,$(gsdatadir)\\\fonts
  47.  
  48. # Define the name of the Ghostscript initialization file.
  49. # (There is no reason to change this.)
  50.  
  51. GS_INIT=gs_init.ps
  52.  
  53. # Choose generic configuration options.
  54.  
  55. # -DDEBUG
  56. #    includes debugging features (-Z switch) in the code.
  57. #      Code runs substantially slower even if no debugging switches
  58. #      are set.
  59. # -DNOPRIVATE
  60. #    makes private (static) procedures and variables public,
  61. #      so they are visible to the debugger and profiler.
  62. #      No execution time or space penalty.
  63.  
  64. GENOPT=
  65.  
  66. # ------ Platform-specific options ------ #
  67.  
  68. # Define the name of the C compiler.
  69.  
  70. CC=gcc
  71.  
  72. # Define the other compilation flags.
  73. # Add -DBSD4_2 for 4.2bsd systems.
  74. # Add -DUSG (GNU convention) or -DSYSV for System V or DG/UX.
  75. # Add -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  76. #   or any System III Unix, or System V release 3-or-older Unix.
  77. # Add -DSVR4 (not -DSYSV) for System V release 4.
  78. # XCFLAGS can be set from the command line.
  79. # We don't include -ansi, because this gets in the way of the platform-
  80. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  81. #   gcc to accept ANSI-style function prototypes and function definitions.
  82.  
  83. #CFLAGS=-g -O $(XCFLAGS)
  84. CFLAGS=-O $(XCFLAGS)
  85.  
  86. # Define platform flags for ld.
  87. # SunOS and some others want -X; Ultrix wants -x.
  88. # SunOS 4.n may need -Bstatic.
  89. # XLDFLAGS can be set from the command line.
  90.  
  91. LDFLAGS=$(XLDFLAGS)
  92.  
  93. # Define any extra libraries to link into the executable.
  94. # SCO ODT apparently needs -lsocket.
  95. # (Libraries required by individual drivers are handled automatically.)
  96.  
  97. EXTRALIBS=-lgem
  98.  
  99. # Define the include switch(es) for the X11 header files.
  100. # This can be null if handled in some other way (e.g., the files are
  101. # in /usr/include, or the directory is supplied by an environment variable).
  102. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  103. # not in $(XINCLUDE).
  104.  
  105. #XINCLUDE=-I/usr/local/X/include
  106.  
  107. # Define the directory/ies for the X11 library files.
  108. # This can be null if these files are in the default linker search path.
  109.  
  110. #XLIBDIRS=-L/usr/local/X/lib
  111.  
  112. # ------ Devices and features ------ #
  113.  
  114. # Choose the language feature(s) to include.  See gs.mak for details.
  115.  
  116. FEATURE_DEVS=filter.dev dps.dev level2.dev
  117.  
  118. # Choose the device(s) to include.  See devs.mak for details.
  119.  
  120. DEVICE_DEVS=stvdi.dev slm.dev gemimg.dev djet500.dev djet500c.dev \
  121.     laserjet.dev bj10e.dev epson.dev eps9high.dev epsonc.dev \
  122.     necp6.dev gifmono.dev gif8.dev pbmraw.dev ppmraw.dev \
  123.     dfaxhigh.dev dfaxlow.dev
  124.  
  125. # ---------------------------- End of options --------------------------- #
  126.  
  127. # Define the name of the makefile -- used in dependencies.
  128.  
  129. MAKEFILE=tos-gcc.mak
  130.  
  131. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  132.  
  133. AK=
  134.  
  135. # Define the compilation rules and flags.
  136.  
  137. CCC=$(CC) $(CCFLAGS) -c
  138.  
  139. # Compilation for printer devices on the Atari platform
  140.  
  141. CCP=$(CC) -DCSPRINT $(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 Aladdin Enterprises.  All rights reserved.
  148. #    Distributed by Free Software Foundation, Inc.
  149. #
  150. # This file is part of Ghostscript.
  151. #
  152. # Ghostscript is distributed in the hope that it will be useful, but
  153. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  154. # to anyone for the consequences of using it or for whether it serves any
  155. # particular purpose or works at all, unless he says so in writing.  Refer
  156. # to the Ghostscript General Public License for full details.
  157. #
  158. # Everyone is granted permission to copy, modify and redistribute
  159. # Ghostscript, but only under the conditions described in the Ghostscript
  160. # General Public License.  A copy of this license is supposed to have been
  161. # given to you along with Ghostscript so you can know your rights and
  162. # responsibilities.  It should be in a file named COPYING.  Among other
  163. # things, the copyright notice and this notice must be preserved on all
  164. # copies.
  165.  
  166. # Partial makefile for Ghostscript, common to all Unix configurations.
  167.  
  168. # This part of the makefile gets inserted after the compiler-specific part
  169. # (xxx-head.mak) and before gs.mak and devs.mak.
  170.  
  171. # ----------------------------- Generic stuff ----------------------------- #
  172.  
  173. # Define the platform name.  For a "stock" System V platform,
  174. # use sysv_ instead of unix_.
  175.  
  176. PLATFORM=atari_
  177.  
  178. # Define the extensions for the object and executable files.
  179.  
  180. OBJ=o
  181. XE=.ttp
  182.  
  183. # Define the need for uniq.
  184.  
  185. UNIQ=uniq$(XE)
  186.  
  187. # Define the current directory prefix, shell quote string, and shell names.
  188.  
  189. EXP=.\\
  190. QQ=\"
  191. SHELL=c:\\bin\\sh
  192. SH=$(SHELL)
  193. SHP=$(SH) $(EXP)
  194.  
  195. # Define the compilation rules and flags.
  196.  
  197. CCFLAGS=$(GENOPT) $(CFLAGS)
  198.  
  199. .c.o: $(AK)
  200.     $(CCC) $*.c
  201.  
  202. CC0=$(CCC)
  203. CCCF=$(CCC)
  204. CCD=$(CCC)
  205. CCINT=$(CCC)
  206. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  207. #    Distributed by Free Software Foundation, Inc.
  208. #
  209. # This file is part of Ghostscript.
  210. #
  211. # Ghostscript is distributed in the hope that it will be useful, but
  212. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  213. # to anyone for the consequences of using it or for whether it serves any
  214. # particular purpose or works at all, unless he says so in writing.  Refer
  215. # to the Ghostscript General Public License for full details.
  216. #
  217. # Everyone is granted permission to copy, modify and redistribute
  218. # Ghostscript, but only under the conditions described in the Ghostscript
  219. # General Public License.  A copy of this license is supposed to have been
  220. # given to you along with Ghostscript so you can know your rights and
  221. # responsibilities.  It should be in a file named COPYING.  Among other
  222. # things, the copyright notice and this notice must be preserved on all
  223. # copies.
  224.  
  225. # Generic makefile for Ghostscript.
  226. # The platform-specific makefiles `include' this file.
  227. # They define the following symbols:
  228. #    GS_INIT - the name of the initialization file for Ghostscript,
  229. #        normally gs_init.ps.
  230. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  231. #        initialization and font files at run time.
  232. #    DEVICE_DEVS - the devices to include in the executable.
  233. #        See devs.mak for details.
  234. #    DEVICE_DEVS2...DEVICE_DEVS5 - additional devices, if the definition of
  235. #        DEVICE_DEVS doesn't fit on one line.
  236. #        See devs.mak for details.
  237. #    FEATURE_DEVS - the optional features to include in the
  238. #        executable.  Current features are:
  239. #            dps - (partial) support for Display PostScript extensions:
  240. #            see language.doc for details.
  241. #            level2 - (partial) support for PostScript Level 2
  242. #            extensions: see language.doc for details.
  243. #            compfont - support for composite (type 0) fonts.
  244. #            *** NOT IMPLEMENTED YET. ***
  245. #            filter - support for Level 2 filters (other than eexec,
  246. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  247. #            and SubFileDecode, which are always included).
  248. #            ccfonts - precompile fonts into C, and link them
  249. #            with the executable.  In the standard makefiles,
  250. #            this is only implemented for a very few fonts:
  251. #            see fonts.doc for details.
  252. # It is very unlikely that anyone would want to edit the remaining
  253. #   symbols, but we describe them here for completeness:
  254. #    PLATFORM - a "device" name for the platform, so that platforms can
  255. #        add various kinds of resources like devices and features.
  256. #    QQ - a " preceded by whatever escape characters are needed to
  257. #        persuade the shell to pass a " to a program (" on MS-DOS,
  258. #        \" on Unix).
  259. #    XE - the extension for executable files (e.g., null or .exe).
  260. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  261. #    BEGINFILES - the list of files that `make begin' should delete.
  262. #    CCBEGIN - the compilation command for `make begin', normally
  263. #        $(CCC) *.c.
  264. #    CCC - the C invocation for normal compilation.
  265. #    CCD - the C invocation for files that store into frame buffers or
  266. #        device registers.  Needed because some optimizing compilers
  267. #        will eliminate necessary stores.
  268. #    CC0 - a C invocation with the fewest possible flags.  Needed because
  269. #        MS-DOS limits the length of command lines to 128 characters.
  270. #    CCCF - the C invocation for compiled fonts.  Needed because MS-DOS
  271. #        requires using the 'huge' memory model for these.
  272. #    CCINT - the C invocation for compiling the main interpreter module,
  273. #        normally the same as CCC: this is needed because the
  274. #        Borland compiler generates *worse* code for this module
  275. #        (but only this module) when optimization (-O) is turned on.
  276. #    AK - if source files must be converted from ANSI to K&R syntax,
  277. #        this is ansi2knr$(XE); if not, it is null.
  278. #        If a particular platform requires other utility programs
  279. #        to be built, AK must include them too.
  280. #    UNIQ - null on systems that provide the uniq utility,
  281. #        uniq$(XE) on systems where we have to provide our own.
  282. #    SHP - the prefix for invoking a shell script in the current directory
  283. #        (null for MS-DOS, $(SH) ./ for Unix).
  284. #    EXPP, EXP - the prefix for invoking an executable program in the
  285. #        current directory (null for MS-DOS, ./ for Unix).
  286. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  287. # The platform-specific makefiles must also include rules for creating
  288. #   ansi2knr$(XE) and genarch$(XE) from the corresponding .c files,
  289. #   and for making arch.h by executing genarch$(XE).  (This
  290. #   shouldn't really be necessary, but Turbo C and Unix C treat the -o
  291. #   switch slightly differently (Turbo C requires no following space,
  292. #   Unix C requires a following space), and I haven't found a way to capture
  293. #   the difference in a macro; also, Unix requires ./ because . may not be
  294. #   in the search path, whereas MS-DOS always looks in the current
  295. #   directory first.)
  296.  
  297. all default: gs$(XE)
  298.  
  299. mostlyclean realclean distclean clean:
  300.     rm -f *.$(OBJ) *.a core gmon.out
  301.     rm -f *.dev *.d_* arch.h gconfig*.h obj*.tr lib*.tr
  302.     rm -f t _temp_* _temp_*.* *.map *.sym
  303.     rm -f ansi2knr$(XE) echogs$(XE) genarch$(XE) uniq$(XE)
  304.     rm -f gs$(XE) $(BEGINFILES)
  305.  
  306. # A rule to do a quick and dirty compilation attempt when first installing
  307. # Ghostscript.  Many of the compilations will fail: follow this with 'make'.
  308.  
  309. begin:
  310.     rm -f arch.h genarch$(XE) $(BEGINFILES)
  311.     make arch.h
  312.     - $(CCBEGIN)
  313.     rm -f gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gsmisc.$(OBJ)
  314.     rm -f iccfont.$(OBJ) iinit.$(OBJ) interp.$(OBJ)
  315.  
  316. # Auxiliary programs
  317.  
  318. arch.h: genarch$(XE)
  319.     $(EXPP) $(EXP)genarch arch.h
  320.  
  321. # -------------------------------- Library -------------------------------- #
  322.  
  323. # Define the inter-dependencies of the .h files.
  324. # Since not all versions of `make' defer expansion of macros,
  325. # we must list these in bottom-to-top order.
  326.  
  327. # Generic files
  328.  
  329. arch_h=arch.h
  330. std_h=std.h $(arch_h)
  331.  
  332. # Platform interfaces
  333.  
  334. gp_h=gp.h
  335. gpcheck_h=gpcheck.h
  336.  
  337. # C library interfaces
  338.  
  339. # Because of variations in the "standard" header files between systems,
  340. # we define local include files named *_.h to substitute for <*.h>.
  341.  
  342. vmsmath_h=vmsmath.h
  343.  
  344. dos__h=dos_.h
  345. malloc__h=malloc_.h $(std_h)
  346. math__h=math_.h $(std_h) $(vmsmath_h)
  347. memory__h=memory_.h $(std_h)
  348. stat__h=stat_.h $(std_h)
  349. stdio__h=stdio_.h $(std_h)
  350. string__h=string_.h $(std_h)
  351. time__h=time_.h $(std_h)
  352.  
  353. # Miscellaneous
  354.  
  355. gdebug_h=gdebug.h
  356. gs_h=gs.h $(stdio__h)
  357. gx_h=gx.h $(gs_h) $(gdebug_h)
  358. gserrors_h=gserrors.h
  359.  
  360. GX=$(AK) $(gx_h)
  361. GXERR=$(GX) $(gserrors_h)
  362.  
  363. ###### Low-level facilities and utilities
  364.  
  365. ### Include files
  366.  
  367. gschar_h=gschar.h
  368. gscie_h=gscie.h
  369. gscolor_h=gscolor.h
  370. gscolor2_h=gscolor2.h
  371. gscoord_h=gscoord.h
  372. gscrypt1_h=gscrypt1.h
  373. gscspace_h=gscspace.h
  374. gsfont_h=gsfont.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.  
  384. gxarith_h=gxarith.h
  385. gxbitmap_h=gxbitmap.h
  386. gxcache_h=gxcache.h
  387. gxchar_h=gxchar.h $(gschar_h)
  388. gxclist_h=gxclist.h
  389. gxcpath_h=gxcpath.h
  390. gxdevice_h=gxdevice.h $(gsmatrix_h) $(gxbitmap_h)
  391. gxdevmem_h=gxdevmem.h
  392. gxfdir_h=gxfdir.h
  393. gxfixed_h=gxfixed.h
  394. gxfont_h=gxfont.h $(gsfont_h)
  395. gximage_h=gximage.h
  396. gxlum_h=gxlum.h
  397. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  398. gxop1_h=gxop1.h
  399. gxpath_h=gxpath.h
  400. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h)
  401.  
  402. gzcolor_h=gzcolor.h $(gscolor_h)
  403. gzdevice_h=gzdevice.h $(gxdevice_h)
  404. gzht_h=gzht.h
  405. gzline_h=gzline.h
  406. gzpath_h=gzpath.h $(gxpath_h)
  407. gzstate_h=gzstate.h $(gsstate_h)
  408.  
  409. ### Executable code
  410.  
  411. gsutil.$(OBJ): gsutil.c $(AK) \
  412.   $(std_h) $(gsprops_h) $(gsutil_h)
  413.  
  414. gxcache.$(OBJ): gxcache.c $(GXERR) $(gpcheck_h) \
  415.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzdevice_h) $(gzcolor_h) \
  416.   $(gxcpath_h) $(gxdevmem_h) $(gxfont_h) $(gxfdir_h) $(gxchar_h) \
  417.   $(gxcache_h) $(gzstate_h) $(gzpath_h)
  418.  
  419. gxclist.$(OBJ): gxclist.c $(GXERR) \
  420.   $(gsmatrix_h) $(gxbitmap_h) $(gxclist_h) $(gxdevice_h) $(gxdevmem_h)
  421.  
  422. gxcolor.$(OBJ): gxcolor.c $(GXERR) \
  423.   $(gscspace_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gxlum_h) \
  424.   $(gzcolor_h) $(gzht_h) $(gzstate_h)
  425.  
  426. gxcpath.$(OBJ): gxcpath.c $(GXERR) \
  427.   $(gxdevice_h) $(gxfixed_h) $(gzcolor_h) $(gzpath_h) $(gxcpath_h)
  428.  
  429. gxdither.$(OBJ): gxdither.c $(GX) \
  430.   $(gxfixed_h) $(gxlum_h) $(gxmatrix_h) $(gzstate_h) $(gzdevice_h) $(gzcolor_h) $(gzht_h)
  431.  
  432. gxdraw.$(OBJ): gxdraw.c $(GX) $(gpcheck_h) \
  433.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzcolor_h) $(gzdevice_h) $(gzstate_h)
  434.  
  435. gxfill.$(OBJ): gxfill.c $(GXERR) \
  436.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzcolor_h) $(gzpath_h) $(gzstate_h) $(gxcpath_h)
  437.  
  438. gxhint1.$(OBJ): gxhint1.c $(GXERR) \
  439.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxdevmem_h) $(gxchar_h) $(gxfont_h) $(gxtype1_h) $(gxop1_h) \
  440.   $(gzdevice_h) $(gzstate_h)
  441.  
  442. gxht.$(OBJ): gxht.c $(GXERR) \
  443.   $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h)
  444.  
  445. gxpath.$(OBJ): gxpath.c $(GXERR) \
  446.   $(gxfixed_h) $(gzpath_h)
  447.  
  448. gxpath2.$(OBJ): gxpath2.c $(GXERR) \
  449.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  450.  
  451. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) \
  452.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  453.  
  454. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(gpcheck_h) \
  455.   $(gscoord_h) $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) \
  456.   $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzline_h) $(gzpath_h)
  457.  
  458. ###### High-level facilities
  459.  
  460. gschar.$(OBJ): gschar.c $(GXERR) \
  461.   $(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)
  462.  
  463. gscolor.$(OBJ): gscolor.c $(GXERR) \
  464.   $(gscspace_h) \
  465.   $(gxfixed_h) $(gxmatrix_h) $(gxdevice_h) $(gzstate_h) $(gzcolor_h) $(gzht_h)
  466.  
  467. gscoord.$(OBJ): gscoord.c $(GXERR) \
  468.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gzstate_h) $(gscoord_h)
  469.  
  470. gsdevice.$(OBJ): gsdevice.c $(GXERR) \
  471.   $(gxarith_h) $(gsprops_h) $(gsutil_h) $(gxfixed_h) $(gxmatrix_h) $(gxbitmap_h) $(gxdevmem_h) $(gzstate_h) $(gzdevice_h)
  472.  
  473. gsfile.$(OBJ): gsfile.c $(GXERR) \
  474.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  475.  
  476. gsfont.$(OBJ): gsfont.c $(GXERR) \
  477.   $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfdir_h) \
  478.   $(gzstate_h)
  479.  
  480. gsimage.$(OBJ): gsimage.c $(GXERR) $(gpcheck_h) \
  481.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  482.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  483.   $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  484.  
  485. gsimage2.$(OBJ): gsimage2.c $(GXERR) $(gpcheck_h) \
  486.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gspaint_h) \
  487.   $(gzcolor_h) $(gzdevice_h) $(gzpath_h) $(gzstate_h) \
  488.   $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  489.  
  490. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  491.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  492.  
  493. gsline.$(OBJ): gsline.c $(GXERR) \
  494.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  495.  
  496. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) \
  497.   $(gxfixed_h) $(gxarith_h) $(gxmatrix_h)
  498.  
  499. gsmisc.$(OBJ): gsmisc.c $(GX) $(MAKEFILE)
  500.     $(CCC) -DUSE_ASM=0$(USE_ASM) gsmisc.c
  501.  
  502. gspaint.$(OBJ): gspaint.c $(GXERR) $(gpcheck_h) \
  503.   $(gxfixed_h) $(gxmatrix_h) $(gspaint_h) $(gzpath_h) $(gzstate_h) $(gzdevice_h) $(gxcpath_h) $(gxdevmem_h) $(gximage_h)
  504.  
  505. gspath.$(OBJ): gspath.c $(GXERR) \
  506.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  507.  
  508. gspath2.$(OBJ): gspath2.c $(GXERR) \
  509.   $(gspath_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzpath_h) $(gzdevice_h)
  510.  
  511. gsstate.$(OBJ): gsstate.c $(GXERR) \
  512.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzcolor_h) $(gzdevice_h) $(gzht_h) $(gzline_h) $(gzpath_h)
  513.  
  514. gstdev.$(OBJ): gstdev.c $(GXERR) \
  515.   $(gxbitmap_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  516.  
  517. gstype1.$(OBJ): gstype1.c $(GXERR) \
  518.   $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h) $(gxdevmem_h) $(gxop1_h) $(gxtype1_h) \
  519.   $(gzstate_h) $(gzdevice_h) $(gzpath_h)
  520.  
  521. ###### The internal devices
  522.  
  523. gdevmem_h=gdevmem.h
  524.  
  525. gdevmem1.$(OBJ): gdevmem1.c $(AK) \
  526.   $(gx_h) $(gserrors_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  527.  
  528. gdevmem2.$(OBJ): gdevmem2.c $(AK) \
  529.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  530.  
  531. gdevmem3.$(OBJ): gdevmem3.c $(AK) \
  532.   $(gx_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  533.  
  534. ###### Files dependent on the installed devices, features, and platform.
  535. # Generating gconfig.h also generates obj*.tr and lib.tr.
  536.  
  537. gconfig.h obj.tr objw.tr lib.tr: \
  538.   devs.mak $(MAKEFILE) echogs$(XE) $(UNIQ) gsconfig$(XE) \
  539.   $(DEVICE_DEVS) $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) \
  540.   $(DEVICE_DEVS5) $(FEATURE_DEVS) $(PLATFORM).dev
  541.     $(SHP)gsconfig $(DEVICE_DEVS) +
  542. #    $(SHP)gsconfig + $(DEVICE_DEVS2) +
  543. #    $(SHP)gsconfig + $(DEVICE_DEVS3) +
  544. #    $(SHP)gsconfig + $(DEVICE_DEVS4) +
  545. #    $(SHP)gsconfig + $(DEVICE_DEVS5) +
  546.     $(SHP)gsconfig + $(FEATURE_DEVS) $(PLATFORM).dev
  547.  
  548. #    $(EXP)gsconfig$(XE) $(DEVICE_DEVS) $(DEVICE_DEVS2) $(DEVICE_DEVS3) \
  549. #      $(DEVICE_DEVS4) $(DEVICE_DEVS5) $(FEATURE_DEVS) $(PLATFORM).dev
  550.  
  551. #gsconfig$(XE): gsconfig.c
  552. #    $(CC) -o gsconfig$(XE) gsconfig.c
  553.  
  554. uniq$(XE): uniq.c
  555.     $(CC) -o uniq$(XE) uniq.c
  556.  
  557. gconfig.$(OBJ): gconfig.c $(AK) gconfig.h $(MAKEFILE)
  558.     $(CC0) -DGS_LIB_DEFAULT=$(QQ)$(GS_LIB_DEFAULT)$(QQ) -DGS_INIT=$(QQ)$(GS_INIT)$(QQ) gconfig.c
  559.  
  560. ###### On Unix, we pre-link all of the library except the back end.
  561. ###### On MS-DOS, we have to do the whole thing at once.
  562.  
  563. LIB=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) \
  564.  gsdevice.$(OBJ) gsfile.$(OBJ) gsfont.$(OBJ) gsimage.$(OBJ) gsimage2.$(OBJ) \
  565.  gsimpath.$(OBJ) gsline.$(OBJ) gsmatrix.$(OBJ) gsmisc.$(OBJ) \
  566.  gspaint.$(OBJ) gspath.$(OBJ) gspath2.$(OBJ) \
  567.  gsstate.$(OBJ) gstdev.$(OBJ) gstype1.$(OBJ) gsutil.$(OBJ) \
  568.  gxcache.$(OBJ) gxclist.$(OBJ) gxcolor.$(OBJ) gxcpath.$(OBJ) \
  569.  gxdither.$(OBJ) gxdraw.$(OBJ) gxfill.$(OBJ) gxhint1.$(OBJ) gxht.$(OBJ) \
  570.  gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ) gxstroke.$(OBJ) \
  571.  gdevmem1.$(OBJ) gdevmem2.$(OBJ) gdevmem3.$(OBJ) gconfig.$(OBJ)
  572.  
  573. # ------------------------------ Interpreter ------------------------------ #
  574.  
  575. ###### Include files
  576.  
  577. alloc_h=alloc.h
  578. astate_h=astate.h
  579. ccfont_h=ccfont.h
  580. dict_h=dict.h
  581. dparam_h=dparam.h
  582. dstack_h=dstack.h
  583. errors_h=errors.h
  584. estack_h=estack.h
  585. files_h=files.h
  586. font_h=font.h
  587. ghost_h=ghost.h $(gx_h) $(iref_h)
  588. iref_h=iref.h
  589. iutil_h=iutil.h
  590. main_h=main.h
  591. name_h=name.h
  592. opdef_h=opdef.h
  593. ostack_h=ostack.h
  594. overlay_h=overlay.h
  595. packed_h=packed.h
  596. save_h=save.h
  597. scanchar_h=scanchar.h
  598. scf_h=scf.h
  599. state_h=state.h
  600. store_h=store.h
  601. stream_h=stream.h
  602. # Nested include files
  603. bfont_h=bfont.h $(font_h)
  604. oper_h=oper.h $(gsutil_h) $(iutil_h) $(opdef_h) $(ostack_h)
  605. # Include files for optional features
  606. bnum_h=bnum.h
  607. bseq_h=bseq.h
  608. btoken_h=btoken.h
  609.  
  610. comp1_h=comp1.h $(ghost_h) $(oper_h) $(gserrors_h) $(gxfixed_h) $(gxop1_h)
  611.  
  612. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  613.   $(gserrors_h) $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  614.  
  615. ###### Utilities
  616.  
  617. GH=$(AK) $(ghost_h)
  618.  
  619. ialloc.$(OBJ): ialloc.c $(AK) $(gs_h) $(gdebug_h) $(alloc_h) $(astate_h)
  620.  
  621. iccfont.$(OBJ): iccfont.c $(GH) gconfigf.h \
  622.  $(ghost_h) $(alloc_h) $(ccfont_h) $(dict_h) $(dstack_h) $(errors_h) $(iutil_h) $(name_h) $(oper_h) $(save_h) $(store_h)
  623.  
  624. idebug.$(OBJ): idebug.c $(GH) \
  625.  $(iutil_h) $(dict_h) $(name_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h)
  626.  
  627. idict.$(OBJ): idict.c $(GH) \
  628.   $(alloc_h) $(errors_h) $(name_h) $(packed_h) $(save_h) $(store_h) $(iutil_h) $(dict_h) $(dstack_h)
  629.  
  630. idparam.$(OBJ): idparam.c $(GH) \
  631.   $(gsmatrix_h) $(dict_h) $(dparam_h) $(errors_h) $(iutil_h)
  632.  
  633. iinit.$(OBJ): iinit.c $(GH) gconfig.h \
  634.   $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(name_h) $(oper_h) $(store_h)
  635.  
  636. iname.$(OBJ): iname.c $(GH) $(alloc_h) $(errors_h) $(name_h) $(store_h)
  637.  
  638. isave.$(OBJ): isave.c $(GH) $(alloc_h) $(astate_h) $(name_h) $(packed_h) $(save_h) $(store_h)
  639.  
  640. iscan.$(OBJ): iscan.c $(GH) $(alloc_h) $(dict_h) $(dstack_h) $(errors_h) $(iutil_h) \
  641.  $(name_h) $(ostack_h) $(packed_h) $(store_h) $(stream_h) $(scanchar_h)
  642.  
  643. iutil.$(OBJ): iutil.c $(GH) \
  644.  $(errors_h) $(alloc_h) $(dict_h) $(iutil_h) $(name_h) $(ostack_h) $(opdef_h) $(packed_h) $(store_h) \
  645.  $(gsmatrix_h) $(gxdevice_h) $(gzcolor_h)
  646.  
  647. sfilter.$(OBJ): sfilter.c $(AK) $(stdio__h) $(scanchar_h) $(stream_h) \
  648.  $(gscrypt1_h)
  649.  
  650. stream.$(OBJ): stream.c $(AK) $(stdio__h) $(stream_h) $(scanchar_h)
  651.  
  652. ###### Operators
  653.  
  654. OP=$(GH) $(errors_h) $(oper_h)
  655.  
  656. ### Non-graphics operators
  657.  
  658. zarith.$(OBJ): zarith.c $(OP) $(store_h)
  659.  
  660. zarray.$(OBJ): zarray.c $(OP) $(alloc_h) $(packed_h) $(store_h)
  661.  
  662. zcontrol.$(OBJ): zcontrol.c $(OP) $(estack_h) $(iutil_h) $(store_h)
  663.  
  664. zdict.$(OBJ): zdict.c $(OP) $(dict_h) $(dstack_h) $(name_h) $(store_h)
  665.  
  666. zfile.$(OBJ): zfile.c $(OP) $(gp_h) \
  667.   $(alloc_h) $(estack_h) $(files_h) $(iutil_h) $(save_h) $(stream_h) $(store_h)
  668.  
  669. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  670.   $(estack_h) $(files_h) $(store_h) $(stream_h) \
  671.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  672.  
  673. zfilter.$(OBJ): zfilter.c $(OP) $(alloc_h) $(stream_h)
  674.  
  675. zgeneric.$(OBJ): zgeneric.c $(OP) $(dict_h) $(estack_h) $(name_h) $(packed_h) $(store_h)
  676.  
  677. zmath.$(OBJ): zmath.c $(OP) $(store_h)
  678.  
  679. zmisc.$(OBJ): zmisc.c $(OP) $(gp_h) \
  680.   $(alloc_h) $(dict_h) $(dstack_h) $(name_h) $(packed_h) $(store_h) \
  681.   $(gscrypt1_h)
  682.  
  683. zpacked.$(OBJ): zpacked.c $(OP) \
  684.   $(alloc_h) $(dict_h) $(name_h) $(packed_h) $(save_h) $(store_h)
  685.  
  686. zprops.$(OBJ): zprops.c $(OP) \
  687.   $(alloc_h) $(dict_h) $(name_h) $(state_h) $(store_h) \
  688.   $(gsprops_h) $(gsmatrix_h) $(gxdevice_h) $(gsstate_h)
  689.  
  690. zrelbit.$(OBJ): zrelbit.c $(OP) $(store_h) $(dict_h)
  691.  
  692. zstack.$(OBJ): zstack.c $(OP) $(store_h)
  693.  
  694. zstring.$(OBJ): zstring.c $(OP) $(alloc_h) $(iutil_h) $(name_h) $(store_h) $(stream_h)
  695.  
  696. ztype.$(OBJ): ztype.c $(OP) $(dict_h) $(iutil_h) $(name_h) $(stream_h) $(store_h)
  697.  
  698. zvmem.$(OBJ): zvmem.c $(OP) $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(save_h) $(state_h) $(store_h) \
  699.   $(gsmatrix_h) $(gsstate_h)
  700.  
  701. ###### Graphics operators
  702.  
  703. zchar.$(OBJ): zchar.c $(OP) $(gxfixed_h) $(gxmatrix_h) \
  704.  $(gschar_h) $(gxtype1_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h) \
  705.  $(alloc_h) $(dict_h) $(dstack_h) $(font_h) $(estack_h) $(state_h) $(store_h)
  706.  
  707. 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)
  708.  
  709. zdevice.$(OBJ): zdevice.c $(OP) $(alloc_h) $(state_h) $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  710.  
  711. zfont.$(OBJ): zfont.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) $(gxfdir_h) \
  712.  $(alloc_h) $(bfont_h) $(dict_h) $(name_h) $(packed_h) $(save_h) $(state_h) $(store_h)
  713.  
  714. zfont1.$(OBJ): zfont1.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  715.  $(bfont_h) $(dict_h) $(dparam_h) $(name_h) $(store_h)
  716.  
  717. zfont2.$(OBJ): zfont2.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h) \
  718.  $(alloc_h) $(bfont_h) $(dict_h) $(dparam_h) $(name_h) $(packed_h) $(store_h)
  719.  
  720. zgstate.$(OBJ): zgstate.c $(OP) $(alloc_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  721.  
  722. zht.$(OBJ): zht.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gsstate_h) $(state_h) $(store_h)
  723.  
  724. zmatrix.$(OBJ): zmatrix.c $(OP) $(gsmatrix_h) $(state_h) $(gscoord_h) $(store_h)
  725.  
  726. zpaint.$(OBJ): zpaint.c $(OP) $(alloc_h) $(estack_h) $(gsmatrix_h) $(gspaint_h) $(state_h) $(store_h) $(stream_h)
  727.  
  728. zpath.$(OBJ): zpath.c $(OP) $(gsmatrix_h) $(gspath_h) $(state_h) $(store_h)
  729.  
  730. zpath2.$(OBJ): zpath2.c $(OP) $(alloc_h) $(estack_h) $(gspath_h) $(state_h) $(store_h)
  731.  
  732. ###### Linking
  733.  
  734. INT=ialloc.$(OBJ) idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ) \
  735.  iinit.$(OBJ) iname.$(OBJ) \
  736.  interp.$(OBJ) isave.$(OBJ) iscan.$(OBJ) iutil.$(OBJ) \
  737.  sfilter.$(OBJ) stream.$(OBJ) \
  738.  zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ) \
  739.  zfile.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zgeneric.$(OBJ) \
  740.  zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ) zprops.$(OBJ) zrelbit.$(OBJ) \
  741.  zstack.$(OBJ) zstring.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ) \
  742.  zchar.$(OBJ) zcolor.$(OBJ) zfont.$(OBJ) zfont1.$(OBJ) zfont2.$(OBJ) \
  743.  zdevice.$(OBJ) zgstate.$(OBJ) zht.$(OBJ) zmatrix.$(OBJ) \
  744.  zpaint.$(OBJ) zpath.$(OBJ) zpath2.$(OBJ)
  745.  
  746. # -------------------------- Optional features ---------------------------- #
  747.  
  748. ### Additions common to Display PostScript and Level 2
  749.  
  750. dpsand2_=gsdps1.$(OBJ) ibnum.$(OBJ) ibscan.$(OBJ) \
  751.  zbseq.$(OBJ) zdps1.$(OBJ) zupath.$(OBJ)
  752. dpsand2.dev: $(dpsand2_)
  753.     $(SHP)gssetmod dpsand2 $(dpsand2_)
  754.     $(SHP)gsaddmod dpsand2 -oper zbseq zdps1 zupath
  755.     $(SHP)gsaddmod dpsand2 -ps gs_dps1
  756.  
  757. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(gsmatrix_h) $(gspath_h)
  758.  
  759. ibnum.$(OBJ): ibnum.c $(GH) $(errors_h) $(stream_h) $(bnum_h) $(btoken_h)
  760.  
  761. ibscan.$(OBJ): ibscan.c $(GH) $(errors_h) \
  762.  $(alloc_h) $(dict_h) $(dstack_h) $(iutil_h) $(name_h) $(ostack_h) $(save_h) $(store_h) $(stream_h) $(bseq_h) $(btoken_h) $(bnum_h)
  763.  
  764. zbseq.$(OBJ): zbseq.c $(OP) $(save_h) $(store_h) $(stream_h) $(files_h) $(name_h) $(bnum_h) $(btoken_h) $(bseq_h)
  765.  
  766. zdps1.$(OBJ): zdps1.c $(OP) $(gsmatrix_h) $(gspath_h) $(gsstate_h) \
  767.  $(alloc_h) $(state_h) $(store_h) $(stream_h) $(bnum_h)
  768.  
  769. zupath.$(OBJ): zupath.c $(OP) \
  770.  $(dict_h) $(dstack_h) $(iutil_h) $(state_h) $(store_h) $(stream_h) $(bnum_h) \
  771.  $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  772.  $(gxfixed_h) $(gxdevice_h) $(gxpath_h)
  773.  
  774. ### Display PostScript
  775. # We should include zcontext, but it isn't in good enough shape yet:
  776. #    $(SHP)gsaddmod dps -oper zcontext
  777.  
  778. dps_=
  779. dps.dev: dpsand2.dev $(dps_)
  780.     $(SHP)gssetmod dps $(dps_)
  781.     $(SHP)gsaddmod dps -include dpsand2
  782.  
  783. zcontext.$(OBJ): zcontext.c $(OP) \
  784.  $(alloc_h) $(dict_h) $(dstack_h) $(estack_h) $(state_h) $(store_h)
  785.  
  786. ### Level 2 additions
  787. # We should include gscie and zcie, but they aren't anywhere near ready.
  788.  
  789. level2_=gscolor2.$(OBJ) zcolor2.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ)
  790. level2.dev: dpsand2.dev $(level2_)
  791.     $(SHP)gssetmod level2 $(level2_)
  792.     $(SHP)gsaddmod level2 -include dpsand2
  793.     $(SHP)gsaddmod level2 -oper zcolor2 zimage2
  794.     $(SHP)gsaddmod level2 -ps gs_lev2
  795.  
  796. gscie.$(OBJ): gscie.c $(std_h) \
  797.   $(gscspace_h) $(gscie_h)
  798.  
  799. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  800.   $(gscolor2_h) $(gscspace_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  801.   $(gzcolor_h) $(gzstate_h)
  802.  
  803. zcie.$(OBJ): zcie.c $(OP) $(gscspace_h) $(gscie_h) \
  804.   $(dict_h) $(dparam_h) $(state_h)
  805.  
  806. zcolor2.$(OBJ): zcolor2.c $(OP) \
  807.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  808.   $(dict_h) $(dparam_h) $(name_h) $(state_h) $(store_h)
  809.  
  810. zht2.$(OBJ): zht2.c $(OP) \
  811.   $(dict_h) $(dparam_h) $(name_h) $(state_h) $(store_h)
  812.  
  813. zimage2.$(OBJ): zimage2.c $(OP) \
  814.   $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsmatrix_h) \
  815.   $(dict_h) $(dparam_h) $(state_h)
  816.  
  817. ### Composite font support
  818.  
  819. gschar0.$(OBJ): gschar0.c $(GXERR) \
  820.   $(gxfixed_h) $(gxmatrix_h) $(gzdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxchar_h) $(gzstate_h)
  821.  
  822. zfont0.$(OBJ): zfont0.c $(OP) $(gsmatrix_h) $(gxdevice_h) $(gxfont_h) \
  823.  $(alloc_h) $(bfont_h) $(dict_h) $(name_h) $(state_h) $(store_h)
  824.  
  825. compfont_=zfont0.$(OBJ) gschar0.$(OBJ)
  826. compfont.dev: $(compfont_)
  827.     $(SHP)gssetmod compfont $(compfont_)
  828.     $(SHP)gsaddmod compfont -oper zfont0
  829.  
  830. ### Filters other than the ones in sfilter.c
  831.  
  832. scftab.$(OBJ): scftab.c $(AK) $(std_h) $(scf_h)
  833.  
  834. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scf_h)
  835.  
  836. scfd.$(OBJ): scfd.c $(AK) $(stdio__h) $(gdebug_h) $(scf_h) $(stream_h)
  837.  
  838. scfe.$(OBJ): scfe.c $(AK) $(stdio__h) $(gdebug_h) $(scf_h) $(stream_h)
  839.  
  840. sfilter2.$(OBJ): sfilter2.c $(AK) $(stdio__h) $(scanchar_h) $(stream_h)
  841.  
  842. slzwd.$(OBJ): slzwd.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  843.  
  844. slzwe.$(OBJ): slzwe.c $(AK) $(stdio__h) $(gdebug_h) $(stream_h)
  845.  
  846. zfilter2.$(OBJ): zfilter2.c $(OP) $(alloc_h) $(dict_h) $(dparam_h) $(stream_h)
  847.  
  848. # Because of size limits on the DOS command line,
  849. # we have to break this up into two parts.
  850. filter_1=zfilter2.$(OBJ) sfilter2.$(OBJ)
  851. filter_2=scfd.$(OBJ) scfe.$(OBJ) scfdtab.$(OBJ) scftab.$(OBJ) slzwd.$(OBJ) slzwe.$(OBJ)
  852. filter.dev: $(filter_1) $(filter_2)
  853.     $(SHP)gssetmod filter $(filter_1)
  854.     $(SHP)gsaddmod filter -obj $(filter_2)
  855.     $(SHP)gsaddmod filter -oper zfilter2
  856.  
  857. ### Precompiled fonts.  See fonts.doc for more information.
  858.  
  859. CCFONT=$(OP) $(ccfont_h)
  860.  
  861. ccfonts_=ugly.$(OBJ)
  862. ccfonts.dev: $(ccfonts_) iccfont.$(OBJ)
  863.     $(SHP)gssetmod ccfonts $(ccfonts_) iccfont.$(OBJ)
  864.     $(SHP)gsaddmod ccfonts -oper ccfonts
  865.  
  866. gconfigf.h: $(MAKEFILE)
  867.     $(SHP)gssetmod ccfonts_
  868.     $(SHP)gsaddmod ccfonts_ -font Ugly
  869.     rm -f gconfigf.h
  870.     mv ccfonts_.d_f gconfigf.h
  871.  
  872. ugly.$(OBJ): ugly.c $(CCFONT)
  873.     $(CCCF) ugly.c
  874.  
  875. ncrr.$(OBJ): ncrr.c $(CCFONT)
  876.     $(CCCF) ncrr.c
  877.  
  878. psyr.$(OBJ): psyr.c $(CCFONT)
  879.     $(CCCF) psyr.c
  880.  
  881. ptmr.$(OBJ): ptmr.c $(CCFONT)
  882.     $(CCCF) ptmr.c
  883.  
  884. pzdr.$(OBJ): pzdr.c $(CCFONT)
  885.     $(CCCF) pzdr.c
  886.  
  887. # ----------------------------- Main program ------------------------------ #
  888.  
  889. # Interpreter main program
  890.  
  891. gs.$(OBJ): gs.c $(GH) $(gxdevice_h) $(gxdevmem_h) \
  892.   $(alloc_h) $(errors_h) $(estack_h) $(main_h) $(ostack_h) $(store_h) $(stream_h)
  893.  
  894. gsmain.$(OBJ): gsmain.c $(GH) \
  895.   $(gp_h) $(gsmatrix_h) $(gxdevice_h) $(gserrors_h) \
  896.   $(estack_h) $(main_h) $(ostack_h) $(store_h)
  897.  
  898. interp.$(OBJ): interp.c $(GH) \
  899.   $(errors_h) $(estack_h) $(name_h) $(dict_h) $(dstack_h) $(oper_h) $(ostack_h) $(packed_h) $(save_h) $(store_h) $(stream_h)
  900.     $(CCINT) interp.c
  901. #    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  902. #    Distributed by Free Software Foundation, Inc.
  903. #
  904. # This file is part of Ghostscript.
  905. #
  906. # Ghostscript is distributed in the hope that it will be useful, but
  907. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  908. # to anyone for the consequences of using it or for whether it serves any
  909. # particular purpose or works at all, unless he says so in writing.  Refer
  910. # to the Ghostscript General Public License for full details.
  911. #
  912. # Everyone is granted permission to copy, modify and redistribute
  913. # Ghostscript, but only under the conditions described in the Ghostscript
  914. # General Public License.  A copy of this license is supposed to have been
  915. # given to you along with Ghostscript so you can know your rights and
  916. # responsibilities.  It should be in a file named COPYING.  Among other
  917. # things, the copyright notice and this notice must be preserved on all
  918. # copies.
  919.  
  920. # makefile for Ghostscript device drivers.
  921.  
  922. # -------------------------------- Catalog ------------------------------- #
  923.  
  924. # It is possible to build Ghostscript with an arbitrary collection of
  925. # device drivers, although some drivers are supported only on a subset
  926. # of the target platforms.  The currently available drivers are:
  927.  
  928. # Displays:
  929. #   MS-DOS EGA and VGA:
  930. #    ega    EGA (640x350, 16-color)
  931. #    vga    VGA (640x480, 16-color)
  932. #   MS-DOS SuperVGA:
  933. # +    atiw    ATI Wonder SuperVGA, 256-color modes
  934. # *    mdb10    EIZO MDB-10 (1024 x 768)
  935. #    s3vga    SuperVGA with S3 86C911 chip (e.g., Diamond Stealth board)
  936. #    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  937. #    tseng16  Tseng Labs SuperVGA in 800x600, 16-color mode (256K memory)
  938. # +    tvga    Trident SuperVGA, 256-color modes
  939. # +    tvga16    Trident SuperVGA in 800x600, 16-color mode (256K memory)
  940. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  941. #   ****** compiler or executable.
  942. #    vesa    SuperVGA with VESA standard API driver
  943. #   MS-DOS other:
  944. #    bgi    Borland Graphics Interface (CGA and Hercules)
  945. #    mswin    Microsoft Windows 3.0, 3.1
  946. # *    pe    Private Eye
  947. #   Unix and VMS:
  948. # *    att3b1    AT&T 3b1/Unixpc monochrome display   [3b1 only]
  949. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  950. # *    sunview  SunView window system   [SunOS only]
  951. #    x11    X Windows version 11, release >=3   [Unix and VMS only]
  952. # Printers:
  953. #    bj10e    Canon BubbleJet BJ10e
  954. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  955. # *    cdjcolor  H-P DeskJet 500C with 24 bit/pixel color and
  956. #        high-quality color (Floyd-Steinberg) dithering
  957. # *    cdjmono  H-P DeskJet 500C printing black only
  958. # +    deskjet  H-P DeskJet and DeskJet Plus
  959. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  960. # *    dfaxlow  DigiFAX low (normal) resolution
  961. #    djet500  H-P DeskJet 500
  962. # *    djet500c  H-P DeskJet 500C
  963. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  964. # +    eps9high  Epson-compatible 9-pin, interleaved lines
  965. #        (triple resolution)
  966. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  967. # +    laserjet  H-P LaserJet
  968. # *    la50    DEC LA50 printer
  969. # *    la75    DEC LA75 printer
  970. # *    lbp8    Canon LBP-8II laser printer
  971. # *    ln03    DEC LN03 printer
  972. # *    lj250    DEC LJ250 Companion color printer
  973. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  974. # +    ljet3    H-P LaserJet III* with Delta Row compression
  975. # +    ljetplus  H-P LaserJet Plus
  976. # *    necp6    NEC P6/P6+/P60 printers at 360 x 360 DPI resolution
  977. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  978. #    paintjet  H-P PaintJet color printer
  979. # *    pjetxl    H-P PaintJet XL color printer
  980. # *    r4081    Ricoh 4081 laser printer
  981. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  982. # *    trufax    TruFax facsimile driver  [Unix only]
  983. # File formats and others:
  984. #    bit    A plain "bit bucket" device
  985. #    gifmono    Monochrome GIF file format
  986. #    gif8    8-bit color GIF file format
  987. #    pcxmono    Monochrome PCX file format
  988. #    pcx16    Older color PCX file format (EGA/VGA, 16-color)
  989. #    pcx256    Newer color PCX file format (256-color)
  990. #    pbm    Portable Bitmap (plain format)
  991. #    pbmraw    Portable Bitmap (raw format)
  992. #    pgm    Portable Graymap (plain format)
  993. #    pgmraw    Portable Graymap (raw format)
  994. #    ppm    Portable Pixmap (plain format)
  995. #    ppmraw    Portable Pixmap (raw format)
  996.  
  997. # User-contributed drivers marked with * require hardware or software
  998. # that is not available to Aladdin Enterprises.  Please contact the
  999. # original contributors, not Aladdin Enterprises, if you have questions.
  1000. # Contact information appears in the driver entry below.
  1001. #
  1002. # Drivers marked with a + are maintained by Aladdin Enterprises with
  1003. # the assistance of users, since Aladdin Enterprises doesn't have access to
  1004. # the hardware for these either.
  1005.  
  1006. # If you add drivers, it would be nice if you kept each list
  1007. # in alphabetical order.
  1008.  
  1009. # Each platform-specific makefile contains a line of the form
  1010. #    DEVICE_DEVS=<dev1>.dev ... <devn>.dev
  1011. # where dev1 ... devn are the devices to be included in the build.
  1012. # You may edit this line to select any desired set of devices.
  1013. # dev1 will be used as the default device (unless overridden from
  1014. # the command line with -sDEVICE=xxx, of course.)  If you can't fit all the
  1015. # devices on a single line, you may add lines defining
  1016. #    DEVICE_DEVS2=<dev21>.dev ... <dev2n>.dev
  1017. #    DEVICE_DEVS3=<dev31>.dev ... <dev3n>.dev
  1018. # etc. up to DEVICE_DEVS5.
  1019. # Don't use continuation lines, since this may break the MS-DOS command
  1020. # processor.
  1021.  
  1022. # ---------------------------- End of catalog ---------------------------- #
  1023.  
  1024. # If you want to add a new device driver, the examples below should be
  1025. # enough of a guide to the correct form for the makefile rules.
  1026.  
  1027. # All device drivers depend on the following:
  1028. GDEV=$(AK) echogs$(XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  1029.  
  1030. # Define the header files for device drivers.  Every header file used by
  1031. # more than one device driver must be listed here.
  1032. gdevpccm_h=gdevpccm.h
  1033. gdevpcfb_h=gdevpcfb.h
  1034. gdevpcl_h=gdevpcl.h
  1035. gdevsvga_h=gdevsvga.h
  1036. gdevx_h=gdevx.h
  1037.  
  1038. ###### ------------------- MS-DOS display devices ------------------- ######
  1039.  
  1040. # There are really only two drivers: an EGA/VGA driver (4 bit-planes,
  1041. # plane-addressed) and a SuperVGA driver (8 bit-planes, byte addressed).
  1042.  
  1043. ### ----------------------- EGA and VGA displays ----------------------- ###
  1044.  
  1045. gdevegaa.$(OBJ): gdevegaa.asm
  1046.  
  1047. ETEST=ega.$(OBJ) $(ega_) gdevpcfb.$(OBJ) gdevegaa.$(OBJ)
  1048. ega.exe: $(ETEST) libc$(MM).tr
  1049.     $(COMPDIR)\tlink /v $(LIBDIR)\c0$(MM) @ega.tr @libc$(MM).tr
  1050.  
  1051. ega.$(OBJ): ega.c $(GDEV)
  1052.     $(CCC) -v ega.c
  1053.  
  1054. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  1055. # or an empty string.
  1056.  
  1057. EGAVGA=gdevpcfb.$(OBJ) $(PCFBASM)
  1058.  
  1059. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(MAKEFILE) $(dos__h) $(gdevpcfb_h)
  1060.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevpcfb.c
  1061.  
  1062. # The EGA/VGA family includes: EGA, VGA, and MDB-10, and the
  1063. # Tseng ET3000/4000 and Trident SuperVGA in 16-color mode.
  1064.  
  1065. ega.dev: $(EGAVGA)
  1066.     $(SHP)gssetdev ega $(EGAVGA)
  1067.  
  1068. vga.dev: $(EGAVGA)
  1069.     $(SHP)gssetdev vga $(EGAVGA)
  1070.  
  1071. mdb10.dev: $(EGAVGA)
  1072.     $(SHP)gssetdev mdb10 $(EGAVGA)
  1073.  
  1074. tseng16.dev: $(EGAVGA)
  1075.     $(SHP)gssetdev tseng16 $(EGAVGA)
  1076.  
  1077. tvga16.dev: $(EGAVGA)
  1078.     $(SHP)gssetdev tvga16 $(EGAVGA)
  1079.  
  1080. ### ------------------------- SuperVGA displays ------------------------ ###
  1081.  
  1082. SVGA=gdevsvga.$(OBJ) $(PCFBASM)
  1083.  
  1084. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(dos__h) $(gdevpcfb_h) $(gdevsvga_h)
  1085.     $(CCD) -DUSE_ASM=0$(USE_ASM) gdevsvga.c
  1086.  
  1087. # The SuperVGA family includes: ATI Wonder, S3, Trident, Tseng ET3000/4000,
  1088. # and VESA.
  1089.  
  1090. atiw.dev: $(SVGA)
  1091.     $(SHP)gssetdev atiw $(SVGA)
  1092.  
  1093. tseng.dev: $(SVGA)
  1094.     $(SHP)gssetdev tseng $(SVGA)
  1095.  
  1096. tvga.dev: $(SVGA)
  1097.     $(SHP)gssetdev tvga $(SVGA)
  1098.  
  1099. vesa.dev: $(SVGA)
  1100.     $(SHP)gssetdev vesa $(SVGA)
  1101.  
  1102. # The S3 driver doesn't share much code with the others.
  1103.  
  1104. s3vga_=$(SVGA) gdevs3ga.$(OBJ)
  1105. s3vga.dev: $(s3vga_)
  1106.     $(SHP)gssetdev s3vga $(s3vga_)
  1107.  
  1108. gdevs3ga.$(OBJ): gdevsvga.c $(GDEV) $(MAKEFILE) $(gdevpcfb_h) $(gdevsvga_h)
  1109.     $(CCD) gdevs3ga.c
  1110.  
  1111. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  1112.  
  1113. # We should use an implicit rule for running bgiobj,
  1114. # but a bug in Borland's `make' utility makes this not work.
  1115.  
  1116. cga.$(OBJ): $(BGIDIR)\cga.bgi
  1117.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1118.  
  1119. egavga.$(OBJ): $(BGIDIR)\egavga.bgi
  1120.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1121.  
  1122. herc.$(OBJ): $(BGIDIR)\herc.bgi
  1123.     $(BGIDIR)\bgiobj $(BGIDIR)\$&
  1124.  
  1125. # Include egavga.$(OBJ) for debugging only.
  1126. bgi_=gdevbgi.$(OBJ) cga.$(OBJ) herc.$(OBJ)
  1127. bgi.dev: $(bgi_)
  1128.     $(SHP)gssetdev bgi $(bgi_)
  1129.     $(SHP)gsaddmod bgi -lib $(LIBDIR)\graphics
  1130.  
  1131. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE)
  1132.     $(CCC) -DBGI_LIB=$(QQ)$(BGIDIR)$(QQ) gdevbgi.c
  1133.  
  1134. ###### ------------------- The Private Eye display ------------------- ######
  1135. ### Note: this driver was contributed by a user:                          ###
  1136. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  1137.  
  1138. pe_=gdevpe.$(OBJ)
  1139. pe.dev: $(pe_)
  1140.     $(SHP)gssetdev pe $(pe_)
  1141.  
  1142. gdevpe.$(OBJ): gdevpe.c $(GDEV)
  1143.  
  1144. ###### ----------------- The MS-Windows 3.n display ------------------ ######
  1145.  
  1146. mswin_=gdevmswn.$(OBJ)
  1147. mswin.dev: $(mswin_)
  1148.     $(SHP)gssetdev mswin $(mswin_)
  1149.  
  1150. gdevmswn.$(OBJ): gdevmswn.c $(GDEV) $(gp_h) $(gpcheck_h)
  1151.  
  1152. ###### ----------- The AT&T 3b1 Unixpc monochrome display ------------ ######
  1153.  
  1154. att3b1_=gdev3b1.$(OBJ)
  1155. att3b1.dev: $(att3b1_)
  1156.     $(SHP)gssetdev att3b1 $(att3b1_)
  1157.  
  1158. gdev3b1.$(OBJ): gdev3b1.c
  1159.  
  1160. ###### --------------- Memory-buffered printer devices --------------- ######
  1161.  
  1162. PDEVH=$(GDEV) $(gdevprn_h)
  1163.  
  1164. gdevprn.$(OBJ): gdevprn.c $(PDEVH) $(gp_h) $(gsprops_h)
  1165.     $(CCP) gdevprn.c
  1166.  
  1167. ### --------------- The Atari ST mono vdi screen device ---------------- ###
  1168. ### Note that you can set the default density in the command line below. ###
  1169.  
  1170. stvdi_=gdevvdi.$(OBJ) gdevprn.$(OBJ)
  1171. stvdi.dev: $(stvdi_)
  1172.     $(SHP)gssetdev stvdi $(stvdi_)
  1173.  
  1174. gdevvdi.$(OBJ): gdevvdi.c $(PDEVH) devs.mak
  1175. #    $(CCC) -DX_DPI=100 -DY_DPI=100 gdevvdi.c
  1176.  
  1177. ### -------------- The Atari SLM 804 laser printer device -------------- ###
  1178. ###              Note: this driver was contributed by users:             ###
  1179. ###       please contact stabl@fmi.uni-passau.de if you have questions.  ###
  1180.  
  1181. slm_=gdevslm.$(OBJ) gdevprn.$(OBJ)
  1182. slm.dev: $(slm_)
  1183.     $(SHP)gssetdev slm $(slm_)
  1184.  
  1185. gdevslm.$(OBJ): gdevslm.c $(PDEVH) devs.mak
  1186. #    $(CCC) -DX_DPI=100 -DY_DPI=100 gdevslm.c
  1187.  
  1188. ### ----------------- The Canon BubbleJet BJ10e device ----------------- ###
  1189.  
  1190. bj10e_=gdevbj10.$(OBJ) gdevprn.$(OBJ)
  1191. bj10e.dev: $(bj10e_)
  1192.     $(SHP)gssetdev bj10e $(bj10e_)
  1193.  
  1194. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  1195.     $(CCP) gdevbj10.c
  1196.  
  1197. ### -------------------------- The DigiFAX device ----------------------- ###
  1198. ###    This driver outputs images in a format suitable for use with       ###
  1199. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  1200. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  1201. ### Note: this driver was contributed by a user: please contact           ###
  1202. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  1203.  
  1204. digifax_=gdevdfax.$(OBJ) gdevprn.$(OBJ)
  1205. dfaxhigh.dev: $(digifax_)
  1206.     $(SHP)gssetdev dfaxhigh $(digifax_)
  1207.  
  1208. dfaxlow.dev: $(digifax_)
  1209.     $(SHP)gssetdev dfaxlow $(digifax_)
  1210.  
  1211. gdevdfax.$(OBJ): gdevdfax.c $(GDEV) $(gdevprn_h) gdevdfg3.h
  1212.  
  1213. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  1214.  
  1215. ### These are essentially the same device.
  1216. ### You can make A4 paper the default: see below.
  1217. ### NOTE: printing at full resolution (300 DPI) requires a printer
  1218. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  1219.  
  1220. HPPCL=gdevprn.$(OBJ) gdevpcl.$(OBJ)
  1221. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  1222.  
  1223. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  1224.  
  1225. # To make A4 paper the default, change the second line below this to
  1226. #    $(CCC) -DA4 gdevdjet.c
  1227. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  1228.     $(CCP) gdevdjet.c
  1229.  
  1230. deskjet.dev: $(HPMONO)
  1231.     $(SHP)gssetdev deskjet $(HPMONO)
  1232.  
  1233. djet500.dev: $(HPMONO)
  1234.     $(SHP)gssetdev djet500 $(HPMONO)
  1235.  
  1236. laserjet.dev: $(HPMONO)
  1237.     $(SHP)gssetdev laserjet $(HPMONO)
  1238.  
  1239. ljetplus.dev: $(HPMONO)
  1240.     $(SHP)gssetdev ljetplus $(HPMONO)
  1241.  
  1242. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  1243. ### IIIp, IIId, IIIsi, IId, and IIp. 
  1244.  
  1245. ljet2p.dev: $(HPMONO)
  1246.     $(SHP)gssetdev ljet2p $(HPMONO)
  1247.  
  1248. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  1249. ### IIIp, IIId, IIIsi.
  1250.  
  1251. ljet3.dev: $(HPMONO)
  1252.     $(SHP)gssetdev ljet3 $(HPMONO)
  1253.  
  1254. ### ------------ The H-P DeskJet 500C color printer device -------------- ###
  1255. ### Note: there are two different 500C drivers, both contributed by users.###
  1256. ###   If you have questions about the djet500c driver,                    ###
  1257. ###       please contact AKayser@et.tudelft.nl.                           ###
  1258. ###   If you have questions about the cdeskjet/cdjcolor/cdjmono drivers,  ###
  1259. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  1260.  
  1261. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  1262.  
  1263. cdeskjet.dev: $(cdeskjet_)
  1264.     $(SHP)gssetdev cdeskjet $(cdeskjet_)
  1265.  
  1266. cdjcolor.dev: $(cdeskjet_)
  1267.     $(SHP)gssetdev cdjcolor $(cdeskjet_)
  1268.  
  1269. cdjmono.dev: $(cdeskjet_)
  1270.     $(SHP)gssetdev cdjmono $(cdeskjet_)
  1271.  
  1272. # To make A4 paper the default, change the second line below this to
  1273. #    $(CCC) -DA4 gdevdjet.c
  1274. gdevcdj.$(OBJ): gdevcdj.c $(PDEVH) $(gdevpcl_h)
  1275.     $(CCP) gdevcdj.c
  1276.  
  1277. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  1278. djet500c.dev: $(djet500c_)
  1279.     $(SHP)gssetdev djet500c $(djet500c_)
  1280.  
  1281. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(gdevpcl_h)
  1282.     $(CCP) gdevdjtc.c
  1283.  
  1284. ### ----------------- The generic Epson printer device ----------------- ###
  1285.  
  1286. epson_=gdevepsn.$(OBJ) gdevprn.$(OBJ)
  1287.  
  1288. epson.dev: $(epson_)
  1289.     $(SHP)gssetdev epson $(epson_)
  1290.  
  1291. eps9high.dev: $(epson_)
  1292.     $(SHP)gssetdev eps9high $(epson_)
  1293.  
  1294. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH) devs.mak
  1295.     $(CCP) gdevepsn.c
  1296.  
  1297. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  1298. ### Note: this driver was contributed by users: please contact           ###
  1299. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  1300.  
  1301. epsonc_=gdevepsc.$(OBJ) gdevprn.$(OBJ)
  1302. epsonc.dev: $(epsonc_)
  1303.     $(SHP)gssetdev epsonc $(epsonc_)
  1304.  
  1305. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH) devs.mak
  1306.     $(CCP) gdevepsc.c
  1307.  
  1308. ### ------------ The H-P PaintJet color printer device ----------------- ###
  1309. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  1310. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  1311. ### If you have questions about the XL, please contact Rob Reiss         ###
  1312. ###       (rob@moray.berkeley.edu).                                      ###
  1313.  
  1314. PJET=gdevpjet.$(OBJ) $(HPPCL)
  1315.  
  1316. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  1317.     $(CCP) gdevpjet.c
  1318.  
  1319. lj250.dev: $(PJET)
  1320.     $(SHP)gssetdev lj250 $(PJET)
  1321.  
  1322. paintjet.dev: $(PJET)
  1323.     $(SHP)gssetdev paintjet $(PJET)
  1324.  
  1325. pjetxl.dev: $(PJET)
  1326.     $(SHP)gssetdev pjetxl $(PJET)
  1327.  
  1328. ### ----------------- The Canon LBP-8II printer device ----------------- ###
  1329. ### Note: this driver was contributed by users: please contact           ###
  1330. ###       Tom Quinn (trq@prg.oxford.ac.uk) if you have questions.        ###
  1331. ### Note that the standard paper size for this driver is the European    ###
  1332. ###   A4 size, not the American 8.5" x 11" size.                         ###
  1333.  
  1334. lbp8_=gdevlbp8.$(OBJ) gdevprn.$(OBJ)
  1335. lbp8.dev: $(lbp8_)
  1336.     $(SHP)gssetdev lbp8 $(lbp8_)
  1337.  
  1338. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  1339.  
  1340. ### -------------- The DEC LN03/LA50/LA75 printer devices -------------- ###
  1341. ### Note: this driver was contributed by users: please contact           ###
  1342. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  1343. ### A more general sixel driver is available from                        ###
  1344. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                      ###
  1345.  
  1346. ln03_=gdevln03.$(OBJ) gdevprn.$(OBJ)
  1347. ln03.dev: $(ln03_)
  1348.     $(SHP)gssetdev ln03 $(ln03_)
  1349.  
  1350. la50.dev: $(ln03_)
  1351.     $(SHP)gssetdev la50 $(ln03_)
  1352.  
  1353. la75.dev: $(ln03_)
  1354.     $(SHP)gssetdev la75 $(ln03_)
  1355.  
  1356. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  1357.  
  1358. ### --------------------- The NEC P6 family devices -------------------- ###
  1359. ### Note: this driver was contributed by users:                  ###
  1360. ###      it is for 360x360 dpi printing only,
  1361. ###      please contact haebler@uni-muenster.de if you have questions.  ###
  1362.  
  1363. necp6_=gdevnp6.$(OBJ) gdevprn.$(OBJ)
  1364. necp6.dev: $(necp6_)
  1365.     $(SHP)gssetdev necp6 $(necp6_)
  1366.  
  1367. gdevnp6.$(OBJ): gdevnp6.c $(PDEVH)
  1368.     $(CCP) gdevnp6.c
  1369.  
  1370. ### -------------------- The Atari GEM image device -------------------- ###
  1371. ### Note: this driver was contributed by users:                  ###
  1372. ### please contact haebler@dmswwu1a.uni-muenster.de if you have questions###
  1373.  
  1374. gemimg_=gdevgimg.$(OBJ) gdevprn.$(OBJ)
  1375. gemimg.dev: $(gemimg_)
  1376.     $(SHP)gssetdev gemimg $(gemimg_)
  1377.  
  1378. gdevgimg.$(OBJ): gdevgimg.c $(PDEVH) devs.mak
  1379.     $(CCP) gdevgimg.c
  1380.  
  1381. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  1382. ### Note: this driver was contributed by users:                          ###
  1383. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  1384.  
  1385. r4081_=gdev4081.$(OBJ) gdevprn.$(OBJ)
  1386. r4081.dev: $(r4081_)
  1387.     $(SHP)gssetdev r4081 $(r4081_)
  1388.  
  1389. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  1390.  
  1391. ###### ------------------------ Sony devices ------------------------ ######
  1392. ### Note: these drivers were contributed by users: please contact        ###
  1393. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  1394.  
  1395. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  1396.  
  1397. sonyfb_=gdevsnfb.$(OBJ) gdevprn.$(OBJ)
  1398. sonyfb.dev: $(sonyfb_)
  1399.     $(SHP)gssetdev sonyfb $(sonyfb_)
  1400.  
  1401. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  1402.  
  1403. ### -------------------- Sony NWP533 printer device -------------------- ###
  1404.  
  1405. nwp533_=gdevn533.$(OBJ) gdevprn.$(OBJ)
  1406. nwp533.dev: $(nwp533_)
  1407.     $(SHP)gssetdev nwp533 $(nwp533_)
  1408.  
  1409. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  1410.  
  1411. ###### --------------------- The SunView device --------------------- ######
  1412. ### Note: this driver is maintained by a user: if you have questions,    ###
  1413. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  1414.  
  1415. sunview_=gdevsun.$(OBJ)
  1416. sunview.dev: $(sunview_)
  1417.     $(SHP)gssetdev sunview $(sunview_)
  1418.     $(SHP)gsaddmod sunview -lib suntool sunwindow pixrect
  1419.  
  1420. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(arch_h)
  1421.  
  1422. ### -------------------- Tektronix ink-jet printers -------------------- ###
  1423. ### Note: this driver was contributed by a user: please contact          ###
  1424. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  1425.  
  1426. tek4696_=gdevtknk.$(OBJ) gdevprn.$(OBJ)
  1427. tek4696.dev: $(tek4696_)
  1428.     $(SHP)gssetdev tek4696 $(tek4696_)
  1429.  
  1430. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH)
  1431.  
  1432. ### ----------------- The TruFax facsimile device ---------------------- ###
  1433. ### Note: this driver was contributed by users: please contact           ###
  1434. ###       Neil Ostroff (nao@maestro.bellcore.com) if you have questions. ###
  1435. ### Note that the driver requires a file encode_l.o supplied by the      ###
  1436. ###   makers of the TruFax product.                                      ###
  1437.  
  1438. trufax_=gdevtrfx.$(OBJ) gdevprn.$(OBJ) encode_l.$(OBJ)
  1439. trufax.dev: $(trufax_)
  1440.     $(SHP)gssetdev trufax $(trufax_)
  1441.  
  1442. gdevtrfx.$(OBJ): gdevtrfx.c $(GDEV)
  1443.  
  1444. ###### ----------------------- The X11 device ----------------------- ######
  1445.  
  1446. # Aladdin Enterprises does not support Ghostview.  For more information
  1447. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  1448.  
  1449. x11_=gdevx.$(OBJ) gdevxini.$(OBJ)
  1450. x11.dev: $(x11_)
  1451.     $(SHP)gssetdev x11 $(x11_)
  1452.     $(SHP)gsaddmod x11 -lib X11
  1453.  
  1454. # See the main makefile for the definition of XINCLUDE.
  1455. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  1456. gdevx.$(OBJ): gdevx.c $(GDEVX) $(gserrors_h) $(gsprops_h) $(gsutil_h)
  1457.     $(CCC) $(XINCLUDE) gdevx.c
  1458.  
  1459. gdevxini.$(OBJ): gdevxini.c $(GDEVX)
  1460.     $(CCC) $(XINCLUDE) gdevxini.c
  1461.  
  1462. ### ---------------------- The bit bucket device ----------------------- ###
  1463.  
  1464. bit_=gdevbit.$(OBJ) gdevprn.$(OBJ)
  1465. bit.dev: $(bit_)
  1466.     $(SHP)gssetdev bit $(bit_)
  1467.  
  1468. gdevbit.$(OBJ): gdevbit.c $(PDEVH)
  1469.  
  1470. ###### ----------------------- PC file formats ---------------------- ######
  1471.  
  1472. gdevpccm.$(OBJ): gdevpccm.c $(AK) \
  1473.   $(gs_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  1474.  
  1475. ### ------------------------- GIF file formats ------------------------- ###
  1476.  
  1477. GIF=gdevgif.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1478.  
  1479. gdevgif.$(OBJ): gdevgif.c $(PDEVH) $(gdevpccm_h)
  1480.  
  1481. gifmono.dev: $(GIF)
  1482.     $(SHP)gssetdev gifmono $(GIF)
  1483.  
  1484. gif8.dev: $(GIF)
  1485.     $(SHP)gssetdev gif8 $(GIF)
  1486.  
  1487. ### ------------------------- PCX file formats ------------------------- ###
  1488.  
  1489. PCX=gdevpcx.$(OBJ) gdevpccm.$(OBJ) gdevprn.$(OBJ)
  1490.  
  1491. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h)
  1492.  
  1493. pcxmono.dev: $(PCX)
  1494.     $(SHP)gssetdev pcxmono $(PCX)
  1495.  
  1496. pcx16.dev: $(PCX)
  1497.     $(SHP)gssetdev pcx16 $(PCX)
  1498.  
  1499. pcx256.dev: $(PCX)
  1500.     $(SHP)gssetdev pcx256 $(PCX)
  1501.  
  1502. ###### ------------------- Portable Bitmap devices ------------------ ######
  1503. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  1504.  
  1505. PXM=gdevpbm.$(OBJ) gdevprn.$(OBJ)
  1506.  
  1507. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gxlum_h)
  1508.  
  1509. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  1510.  
  1511. pbm.dev: $(PXM)
  1512.     $(SHP)gssetdev pbm $(PXM)
  1513.  
  1514. pbmraw.dev: $(PXM)
  1515.     $(SHP)gssetdev pbmraw $(PXM)
  1516.  
  1517. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  1518.  
  1519. pgm.dev: $(PXM)
  1520.     $(SHP)gssetdev pgm $(PXM)
  1521.  
  1522. pgmraw.dev: $(PXM)
  1523.     $(SHP)gssetdev pgmraw $(PXM)
  1524.  
  1525. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  1526.  
  1527. ppm.dev: $(PXM)
  1528.     $(SHP)gssetdev ppm $(PXM)
  1529.  
  1530. ppmraw.dev: $(PXM)
  1531.     $(SHP)gssetdev ppmraw $(PXM)
  1532. #    Copyright (C) 1990, 1992 Aladdin Enterprises.  All rights reserved.
  1533. #    Distributed by Free Software Foundation, Inc.
  1534. #
  1535. # This file is part of Ghostscript.
  1536. #
  1537. # Ghostscript is distributed in the hope that it will be useful, but
  1538. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  1539. # to anyone for the consequences of using it or for whether it serves any
  1540. # particular purpose or works at all, unless he says so in writing.  Refer
  1541. # to the Ghostscript General Public License for full details.
  1542. #
  1543. # Everyone is granted permission to copy, modify and redistribute
  1544. # Ghostscript, but only under the conditions described in the Ghostscript
  1545. # General Public License.  A copy of this license is supposed to have been
  1546. # given to you along with Ghostscript so you can know your rights and
  1547. # responsibilities.  It should be in a file named COPYING.  Among other
  1548. # things, the copyright notice and this notice must be preserved on all
  1549. # copies.
  1550.  
  1551. # Partial makefile for Ghostscript, common to all Unix configurations.
  1552.  
  1553. # This is the last part of the makefile for Unix configurations.
  1554. # Since Unix make doesn't have an 'include' facility, we concatenate
  1555. # the various parts of the makefile together by brute force (in tar_cat).
  1556.  
  1557. # The following prevents GNU make from constructing argument lists that
  1558. # include all environment variables, which can easily be longer than
  1559. # brain-damaged system V allows.
  1560.  
  1561. .NOEXPORT:
  1562.  
  1563. # -------------------------------- Library -------------------------------- #
  1564.  
  1565. ## The Atari platform
  1566.  
  1567. atari__=gp_atari.$(OBJ)
  1568. atari_.dev: $(atari__)
  1569.     $(SHP)gssetmod atari_ $(atari__)
  1570.  
  1571. gp_atari.$(OBJ): gp_atari.c $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  1572.  $(stat__h) $(time__h)
  1573.  
  1574. # -------------------------- Auxiliary programs --------------------------- #
  1575.  
  1576. ansi2knr$(XE): ansi2knr.c $(stdio__h) $(string__h) $(malloc__h)
  1577.     $(CC) -o ansi2knr$(XE) $(CFLAGS) ansi2knr.c
  1578.  
  1579. echogs$(XE): echogs.c
  1580.     $(CC) -o echogs$(XE) $(CFLAGS) echogs.c
  1581.  
  1582. genarch$(XE): genarch.c
  1583.     $(CC) -o genarch$(XE) genarch.c
  1584.  
  1585. # ----------------------------- Main program ------------------------------ #
  1586.  
  1587. BEGINFILES=
  1588. CCBEGIN=$(CCC) *.c
  1589.  
  1590. # Main program
  1591.  
  1592. ALLATARI=gsmain.$(OBJ) $(LIB)
  1593.  
  1594. # Interpreter main program
  1595.  
  1596. GSATARI=gs.$(OBJ) $(INT) $(ALLATARI)
  1597.  
  1598. # The second call on echogs writes a \.  This is the only
  1599. # way to do it that works with all flavors of shell!
  1600.  
  1601. gs$(XE): $(GSATARI) obj.tr lib.tr echogs$(XE)
  1602.     $(EXP)echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs$(XE) $(GSATARI) >_temp_
  1603.     $(EXP)echogs -ab _temp_ " \\"
  1604.     cat obj.tr >> _temp_
  1605.     cat lib.tr >> _temp_
  1606.     echo $(EXTRALIBS) -lpml >> _temp_
  1607.     $(SH) < _temp_
  1608.  
  1609. symbol: $(GSATARI) obj.tr lib.tr
  1610.     $(EXP)echogs -n - sym-ld -r -o gs.sym g:\\\\gcc\\\\lib\\\\crt0.o $(GSATARI) >_stemp_
  1611.     $(EXP)echogs -ab _temp_ " \\"
  1612.     cat obj.tr >> _stemp_
  1613.     cat lib.tr >> _stemp_
  1614.     echo $(EXTRALIBS) -lpml >> _stemp_
  1615.     $(SH) < _stemp_
  1616.  
  1617. #---------------------------------------------------------------------
  1618. #ALLUNIX=gsmain.$(OBJ) $(LIB)
  1619. #
  1620. # Interpreter main program
  1621. #
  1622. #GSUNIX=gs.$(OBJ) $(INT) $(ALLUNIX)
  1623. #
  1624. # The second call on echogs writes a \.  This is the only
  1625. # way to do it that works with all flavors of shell!
  1626. #gs: $(GSUNIX) obj.tr lib.tr echogs
  1627. #    ./echogs -n - $(CC) $(LDFLAGS) $(XLIBDIRS) -o gs $(GSUNIX) >_temp_
  1628. #    ./echogs -x 205c >>_temp_
  1629. #    cat obj.tr >>_temp_
  1630. #    cat lib.tr >>_temp_
  1631. #    echo $(EXTRALIBS) -lm >>_temp_
  1632. #    $(SH) <_temp_
  1633. #
  1634. #---------------------------------------------------------------------
  1635.  
  1636. # Installation
  1637.  
  1638. TAGS:
  1639.     etags -t *.c *.h
  1640.  
  1641. docdir=$(gsdatadir)/doc
  1642. exdir=$(gsdatadir)/examples
  1643. sysdir=$(gsdatadir)/system
  1644.  
  1645. install: gs
  1646.     -mkdir $(bindir)
  1647.     $(INSTALL_PROGRAM) gs $(bindir)
  1648.     $(INSTALL_PROGRAM) gsbj $(bindir)
  1649.     $(INSTALL_PROGRAM) gsdj $(bindir)
  1650.     $(INSTALL_PROGRAM) gslj $(bindir)
  1651.     $(INSTALL_PROGRAM) gslp $(bindir)
  1652.     $(INSTALL_PROGRAM) gsnd $(bindir)
  1653.     $(INSTALL_PROGRAM) bdftops $(bindir)
  1654.     $(INSTALL_PROGRAM) font2c $(bindir)
  1655.     -mkdir $(gsdatadir)
  1656.     $(INSTALL_DATA) README $(gsdatadir)
  1657.     $(INSTALL_DATA) gslp.ps $(gsdatadir)
  1658.     $(INSTALL_DATA) gs_init.ps $(gsdatadir)
  1659.     $(INSTALL_DATA) gs_2asc.ps $(gsdatadir)
  1660.     $(INSTALL_DATA) gs_dps1.ps $(gsdatadir)
  1661.     $(INSTALL_DATA) gs_fonts.ps $(gsdatadir)
  1662.     $(INSTALL_DATA) gs_lev2.ps $(gsdatadir)
  1663.     $(INSTALL_DATA) gs_statd.ps $(gsdatadir)
  1664.     $(INSTALL_DATA) sym__enc.ps $(gsdatadir)
  1665.     $(INSTALL_DATA) quit.ps $(gsdatadir)
  1666.     $(INSTALL_DATA) Fontmap $(gsdatadir)
  1667.     $(INSTALL_DATA) uglyr.gsf $(gsdatadir)
  1668.     $(INSTALL_DATA) bdftops.ps $(gsdatadir)
  1669.     $(INSTALL_DATA) decrypt.ps $(gsdatadir)
  1670.     $(INSTALL_DATA) font2c.ps $(gsdatadir)
  1671.     $(INSTALL_DATA) impath.ps $(gsdatadir)
  1672.     $(INSTALL_DATA) landscap.ps $(gsdatadir)
  1673.     $(INSTALL_DATA) prfont.ps $(gsdatadir)
  1674.     $(INSTALL_DATA) pstoppm.ps $(gsdatadir)
  1675.     $(INSTALL_DATA) type1ops.ps $(gsdatadir)
  1676.     $(INSTALL_DATA) wrfont.ps $(gsdatadir)
  1677.     -mkdir $(docdir)
  1678.     $(INSTALL_DATA) NEWS $(docdir)
  1679.     $(INSTALL_DATA) history.doc $(docdir)
  1680.     $(INSTALL_DATA) drivers.doc $(docdir)
  1681.     $(INSTALL_DATA) fonts.doc $(docdir)
  1682.     $(INSTALL_DATA) hershey.doc $(docdir)
  1683.     $(INSTALL_DATA) humor.doc $(docdir)
  1684.     $(INSTALL_DATA) language.doc $(docdir)
  1685.     $(INSTALL_DATA) lib.doc $(docdir)
  1686.     $(INSTALL_DATA) make.doc $(docdir)
  1687.     $(INSTALL_DATA) psfiles.doc $(docdir)
  1688.     $(INSTALL_DATA) readme.doc $(docdir)
  1689.     $(INSTALL_DATA) use.doc $(docdir)
  1690.     -mkdir $(exdir)
  1691.     $(INSTALL_DATA) chess.ps $(exdir)
  1692.     $(INSTALL_DATA) cheq.ps $(exdir)
  1693.     $(INSTALL_DATA) colorcir.ps $(exdir)
  1694.     $(INSTALL_DATA) golfer.ps $(exdir)
  1695.     $(INSTALL_DATA) escher.ps $(exdir)
  1696.     $(INSTALL_DATA) snowflak.ps $(exdir)
  1697.     $(INSTALL_DATA) tiger.ps $(exdir)
  1698.