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