home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / UsingPDF / GhostScript / source / gs5.10 / unix-gcc.mak < prev    next >
Encoding:
Text File  |  1997-11-25  |  196.7 KB  |  5,734 lines

  1. #    Copyright (C) 1997 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # Makefile fragment containing the current revision identification.
  16.  
  17. # Define the name of this makefile.
  18. VERSION_MAK=version.mak
  19.  
  20. # Major and minor version numbers.
  21. # MINOR0 is different from MINOR only if MINOR is a single digit.
  22. GS_VERSION_MAJOR=5
  23. GS_VERSION_MINOR=10
  24. GS_VERSION_MINOR0=10
  25. # Revision date: year x 10000 + month x 100 + day.
  26. GS_REVISIONDATE=19971123
  27.  
  28. # Derived values
  29. GS_VERSION=$(GS_VERSION_MAJOR)$(GS_VERSION_MINOR0)
  30. GS_DOT_VERSION=$(GS_VERSION_MAJOR).$(GS_VERSION_MINOR)
  31. GS_REVISION=$(GS_VERSION)
  32. #    Copyright (C) 1989, 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  33. # This file is part of Aladdin Ghostscript.
  34. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  35. # or distributor accepts any responsibility for the consequences of using it,
  36. # or for whether it serves any particular purpose or works at all, unless he
  37. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  38. # License (the "License") for full details.
  39. # Every copy of Aladdin Ghostscript must include a copy of the License,
  40. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  41. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  42. # under certain conditions described in the License.  Among other things, the
  43. # License requires that the copyright notice and this notice be preserved on
  44. # all copies.
  45.  
  46. # makefile for Unix/gcc/X11 configuration.
  47. # Note: this makefile assumes you are using gcc in ANSI mode.
  48.  
  49. #****************************************************************#
  50. #   If you want to change options, DO NOT edit unix-gcc.mak      #
  51. #   or makefile.  Edit gcc-head.mak and run the tar_cat script.  #
  52. #****************************************************************#
  53.  
  54. # ------------------------------- Options ------------------------------- #
  55.  
  56. ####### The following are the only parts of the file you should need to edit.
  57.  
  58. # ------ Generic options ------ #
  59.  
  60. # Define the installation commands and target directories for
  61. # executables and files.  The commands are only relevant to `make install';
  62. # the directories also define the default search path for the
  63. # initialization files (gs_*.ps) and the fonts.
  64.  
  65. # If your system has installbsd, change install to installbsd in the next line.
  66. INSTALL = install -c
  67. INSTALL_PROGRAM = $(INSTALL) -m 755
  68. INSTALL_DATA = $(INSTALL) -m 644
  69.  
  70. prefix = /usr/local
  71. exec_prefix = $(prefix)
  72. bindir = $(exec_prefix)/bin
  73. scriptdir = $(bindir)
  74. mandir = $(prefix)/man
  75. man1ext = 1
  76. man1dir = $(mandir)/man$(man1ext)
  77. datadir = $(prefix)/share
  78. gsdir = $(datadir)/ghostscript
  79. gsdatadir = $(gsdir)/$(GS_DOT_VERSION)
  80.  
  81. docdir=$(gsdatadir)/doc
  82. exdir=$(gsdatadir)/examples
  83. GS_DOCDIR=$(docdir)
  84.  
  85. # Define the default directory/ies for the runtime
  86. # initialization and font files.  Separate multiple directories with a :.
  87.  
  88. GS_LIB_DEFAULT=$(gsdatadir):$(gsdir)/fonts
  89.  
  90. # Define whether or not searching for initialization files should always
  91. # look in the current directory first.  This leads to well-known security
  92. # and confusion problems, but users insist on it.
  93. # NOTE: this also affects searching for files named on the command line:
  94. # see the "File searching" section of use.txt for full details.
  95. # Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
  96.  
  97. SEARCH_HERE_FIRST=1
  98.  
  99. # Define the name of the interpreter initialization file.
  100. # (There is no reason to change this.)
  101.  
  102. GS_INIT=gs_init.ps
  103.  
  104. # Choose generic configuration options.
  105.  
  106. # -DDEBUG
  107. #    includes debugging features (-Z switch) in the code.
  108. #      Code runs substantially slower even if no debugging switches
  109. #      are set.
  110. # -DNOPRIVATE
  111. #    makes private (static) procedures and variables public,
  112. #      so they are visible to the debugger and profiler.
  113. #      No execution time or space penalty.
  114.  
  115. #GENOPT=-DDEBUG
  116. GENOPT=
  117.  
  118. # Define the name of the executable file.
  119.  
  120. GS=gs
  121.  
  122. # Define the directory where the IJG JPEG library sources are stored,
  123. # and the major version of the library that is stored there.
  124. # You may need to change this if the IJG library version changes.
  125. # See jpeg.mak for more information.
  126.  
  127. JSRCDIR=jpeg-6a
  128. JVERSION=6
  129.  
  130. # Define the directory where the PNG library sources are stored,
  131. # and the version of the library that is stored there.
  132. # You may need to change this if the libpng version changes.
  133. # See libpng.mak for more information.
  134.  
  135. PSRCDIR=libpng
  136. PVERSION=96
  137.  
  138. # Choose whether to use a shared version of the PNG library, and if so,
  139. # what its name is.
  140. # See gs.mak and make.txt for more information.
  141.  
  142. SHARE_LIBPNG=0
  143. LIBPNG_NAME=png
  144.  
  145. # Define the directory where the zlib sources are stored.
  146. # See zlib.mak for more information.
  147.  
  148. ZSRCDIR=zlib
  149.  
  150. # Choose whether to use a shared version of the zlib library, and if so,
  151. # what its name is (usually libz, but sometimes libgz).
  152. # See gs.mak and make.txt for more information.
  153.  
  154. SHARE_ZLIB=0
  155. #ZLIB_NAME=gz
  156. ZLIB_NAME=z
  157.  
  158. # Define how to build the library archives.  (These are not used in any
  159. # standard configuration.)
  160.  
  161. AR=ar
  162. ARFLAGS=qc
  163. RANLIB=ranlib
  164.  
  165. # Define the configuration ID.  Read gs.mak carefully before changing this.
  166.  
  167. CONFIG=
  168.  
  169. # ------ Platform-specific options ------ #
  170.  
  171. # Define the name of the C compiler.
  172.  
  173. CC=gcc
  174.  
  175. # Define the name of the linker for the final link step.
  176. # Normally this is the same as the C compiler.
  177.  
  178. CCLD=$(CC)
  179.  
  180. # Define the default gcc flags.
  181. # To work around the gcc 2.7.x optimizer bug,
  182. # add -Dconst= and remove -Wcast-qual and -Wwrite-strings.
  183.  
  184. #GCFLAGS=-Wall -Wcast-qual -Wpointer-arith -Wstrict-prototypes -Wwrite-strings
  185. GCFLAGS=-Dconst= -Wall -Wpointer-arith -Wstrict-prototypes
  186.  
  187. # Define the other compilation flags.  Add at most one of the following:
  188. #    -DBSD4_2 for 4.2bsd systems.
  189. #    -DSYSV for System V or DG/UX.
  190. #     -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
  191. #       or any System III Unix, or System V release 3-or-older Unix.
  192. #    -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
  193. #    -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
  194. # XCFLAGS can be set from the command line.
  195. # We don't include -ansi, because this gets in the way of the platform-
  196. #   specific stuff that <math.h> typically needs; nevertheless, we expect
  197. #   gcc to accept ANSI-style function prototypes and function definitions.
  198. XCFLAGS=
  199.  
  200. CFLAGS=-O $(GCFLAGS) $(XCFLAGS)
  201.  
  202. # Define platform flags for ld.
  203. # SunOS 4.n may need -Bstatic.
  204. # XLDFLAGS can be set from the command line.
  205. XLDFLAGS=
  206.  
  207. LDFLAGS=$(XLDFLAGS)
  208.  
  209. # Define any extra libraries to link into the executable.
  210. # ISC Unix 2.2 wants -linet.
  211. # SCO Unix needs -lsocket if you aren't including the X11 driver.
  212. # SVR4 may need -lnsl.
  213. # (Libraries required by individual drivers are handled automatically.)
  214.  
  215. EXTRALIBS=
  216.  
  217. # Define the include switch(es) for the X11 header files.
  218. # This can be null if handled in some other way (e.g., the files are
  219. # in /usr/include, or the directory is supplied by an environment variable);
  220. # in particular, SCO Xenix, Unix, and ODT just want
  221. #XINCLUDE=
  222. # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  223. # not in $(XINCLUDE).
  224.  
  225. XINCLUDE=-I/usr/local/X/include
  226.  
  227. # Define the directory/ies and library names for the X11 library files.
  228. # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
  229. # (dynamic libraries on SVR4) and should not include -L.
  230. # Both can be null if these files are in the default linker search path;
  231. # in particular, SCO Xenix, Unix, and ODT just want
  232. #XLIBDIRS=
  233. # Solaris and other SVR4 systems with dynamic linking probably want
  234. #XLIBDIRS=-L/usr/openwin/lib
  235. #XLIBDIR=/usr/openwin/lib
  236. # X11R6 (on any platform) may need
  237. #XLIBS=Xt SM ICE Xext X11
  238.  
  239. #XLIBDIRS=-L/usr/local/X/lib
  240. XLIBDIRS=-L/usr/X11/lib
  241. XLIBDIR=
  242. XLIBS=Xt Xext X11
  243.  
  244. # Define whether this platform has floating point hardware:
  245. #    FPU_TYPE=2 means floating point is faster than fixed point.
  246. # (This is the case on some RISCs with multiple instruction dispatch.)
  247. #    FPU_TYPE=1 means floating point is at worst only slightly slower
  248. # than fixed point.
  249. #    FPU_TYPE=0 means that floating point may be considerably slower.
  250. #    FPU_TYPE=-1 means that floating point is always much slower than
  251. # fixed point.
  252.  
  253. FPU_TYPE=1
  254.  
  255. # ------ Devices and features ------ #
  256.  
  257. # Choose the language feature(s) to include.  See gs.mak for details.
  258.  
  259. FEATURE_DEVS=level2.dev pdf.dev pipe.dev
  260.  
  261. # Choose whether to compile the .ps initialization files into the executable.
  262. # See gs.mak for details.
  263.  
  264. COMPILE_INITS=0
  265.  
  266. # Choose whether to store band lists on files or in memory.
  267. # The choices are 'file' or 'memory'.
  268.  
  269. BAND_LIST_STORAGE=file
  270.  
  271. # Choose which compression method to use when storing band lists in memory.
  272. # The choices are 'lzw' or 'zlib'.  lzw is not recommended, because the
  273. # LZW-compatible code in Ghostscript doesn't actually compress its input.
  274.  
  275. BAND_LIST_COMPRESSOR=zlib
  276.  
  277. # Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
  278. # See gs.mak and sfxfd.c for more details.
  279.  
  280. FILE_IMPLEMENTATION=stdio
  281.  
  282. # Choose the device(s) to include.  See devs.mak for details.
  283.  
  284. DEVICE_DEVS=x11.dev x11alpha.dev x11cmyk.dev x11gray2.dev x11mono.dev
  285. DEVICE_DEVS1=
  286. DEVICE_DEVS2=
  287. DEVICE_DEVS3=deskjet.dev djet500.dev laserjet.dev ljetplus.dev ljet2p.dev ljet3.dev ljet4.dev
  288. DEVICE_DEVS4=cdeskjet.dev cdjcolor.dev cdjmono.dev cdj550.dev pj.dev pjxl.dev pjxl300.dev
  289. DEVICE_DEVS5=uniprint.dev
  290. DEVICE_DEVS6=bj10e.dev bj200.dev bjc600.dev bjc800.dev
  291. DEVICE_DEVS7=faxg3.dev faxg32d.dev faxg4.dev
  292. DEVICE_DEVS8=pcxmono.dev pcxgray.dev pcx16.dev pcx256.dev pcx24b.dev pcxcmyk.dev
  293. DEVICE_DEVS9=pbm.dev pbmraw.dev pgm.dev pgmraw.dev pgnm.dev pgnmraw.dev pnm.dev pnmraw.dev ppm.dev ppmraw.dev
  294. DEVICE_DEVS10=tiffcrle.dev tiffg3.dev tiffg32d.dev tiffg4.dev tifflzw.dev tiffpack.dev
  295. DEVICE_DEVS11=tiff12nc.dev tiff24nc.dev
  296. DEVICE_DEVS12=psmono.dev psgray.dev bit.dev bitrgb.dev bitcmyk.dev
  297. DEVICE_DEVS13=pngmono.dev pnggray.dev png16.dev png256.dev png16m.dev
  298. DEVICE_DEVS14=jpeg.dev jpeggray.dev
  299. DEVICE_DEVS15=pdfwrite.dev pswrite.dev epswrite.dev pxlmono.dev pxlcolor.dev
  300.  
  301. # ---------------------------- End of options --------------------------- #
  302.  
  303. # Define the name of the partial makefile that specifies options --
  304. # used in dependencies.
  305.  
  306. MAKEFILE=gcc-head.mak
  307.  
  308. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  309.  
  310. AK=
  311.  
  312. # Define the compilation rules and flags.
  313.  
  314. CCC=$(CC) $(CCFLAGS) -c
  315. CCAUX=$(CC)
  316. #We can't use -fomit-frame-pointer with -pg....
  317. #CCLEAF=$(CCC)
  318. CCLEAF=$(CCC) -fomit-frame-pointer
  319.  
  320. # --------------------------- Generic makefile ---------------------------- #
  321.  
  322. # The remainder of the makefile (unixhead.mak, gs.mak, devs.mak, unixtail.mak)
  323. # is generic.  tar_cat concatenates all these together.
  324. #    Copyright (C) 1990, 1993, 1996 Aladdin Enterprises.  All rights reserved.
  325. # This file is part of Aladdin Ghostscript.
  326. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  327. # or distributor accepts any responsibility for the consequences of using it,
  328. # or for whether it serves any particular purpose or works at all, unless he
  329. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  330. # License (the "License") for full details.
  331. # Every copy of Aladdin Ghostscript must include a copy of the License,
  332. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  333. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  334. # under certain conditions described in the License.  Among other things, the
  335. # License requires that the copyright notice and this notice be preserved on
  336. # all copies.
  337.  
  338. # Partial makefile common to all Unix configurations.
  339.  
  340. # This part of the makefile gets inserted after the compiler-specific part
  341. # (xxx-head.mak) and before gs.mak and devs.mak.
  342.  
  343. # ----------------------------- Generic stuff ----------------------------- #
  344.  
  345. # Define the platform name.  For a "stock" System V platform,
  346. # use sysv_ instead of unix_.
  347.  
  348. PLATFORM=unix_
  349.  
  350. # Define the syntax for command, object, and executable files.
  351.  
  352. CMD=
  353. O=-o ./
  354. OBJ=o
  355. XE=
  356. XEAUX=
  357.  
  358. # Define the current directory prefix and command invocations.
  359.  
  360. CAT=cat
  361. D=/
  362. EXPP=
  363. EXP=./
  364. SHELL=/bin/sh
  365. SH=$(SHELL)
  366. SHP=$(SH) $(EXP)
  367.  
  368. # Define generic commands.
  369.  
  370. CP_=cp
  371. RM_=rm -f
  372. RMN_=rm -f
  373.  
  374. # Define the arguments for genconf.
  375.  
  376. CONFILES=-p "%s&s&&" -pl "&-l%s&s&&" -pL "&-L%s&s&&" -ol $(ld_tr)
  377.  
  378. # Define the compilation rules and flags.
  379.  
  380. CCFLAGS=$(GENOPT) $(CFLAGS)
  381.  
  382. .c.o: $(AK)
  383.     $(CCC) $*.c
  384.  
  385. CCCF=$(CCC)
  386. CCD=$(CCC)
  387. CCINT=$(CCC)
  388.  
  389. BEGINFILES=
  390. CCBEGIN=$(CCC) *.c
  391.  
  392. # Patch a couple of PC-specific things that aren't relevant to Unix builds,
  393. # but that cause `make' to produce warnings.
  394.  
  395. BGIDIR=***UNUSED***
  396. PCFBASM=
  397. #    Copyright (C) 1989, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  398. # This file is part of Aladdin Ghostscript.
  399. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  400. # or distributor accepts any responsibility for the consequences of using it,
  401. # or for whether it serves any particular purpose or works at all, unless he
  402. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  403. # License (the "License") for full details.
  404. # Every copy of Aladdin Ghostscript must include a copy of the License,
  405. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  406. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  407. # under certain conditions described in the License.  Among other things, the
  408. # License requires that the copyright notice and this notice be preserved on
  409. # all copies.
  410.  
  411. # Generic makefile, common to all platforms.
  412. # The platform-specific makefiles `include' this file.
  413. # They define the following symbols:
  414. #    GS - the name of the executable (without the extension, if any).
  415. #    GS_LIB_DEFAULT - the default directory/ies for searching for the
  416. #        initialization and font files at run time.
  417. #    SEARCH_HERE_FIRST - the default setting of -P (whether or not to
  418. #        look for files in the current directory first).
  419. #    GS_DOCDIR - the directory where documentation will be available
  420. #        at run time.
  421. #    JSRCDIR - the directory where the IJG JPEG library source code
  422. #        is stored (at compilation time).
  423. #    JVERSION - the major version number of the IJG JPEG library.
  424. #    PSRCDIR, PVERSION - the same for libpng.
  425. #    ZSRCDIR - the same for zlib.
  426. #    SHARE_LIBPNG - normally 0; if set to 1, asks the linker to use
  427. #        an existing compiled libpng (-lpng) instead of compiling and
  428. #        linking libpng explicitly.
  429. #    LIBPNG_NAME, the name of the shared libpng, currently always
  430. #        png (libpng, -lpng).
  431. #    SHARE_ZLIB - normally 0; if set to 1, asks the linker to use
  432. #        an existing compiled zlib (-lgz or -lz) instead of compiling
  433. #        and linking libgz/libz explicitly.
  434. #    ZLIB_NAME - the name of the shared zlib, either gz (for libgz, -lgz)
  435. #        or z (for libz, -lz).
  436. #    CONFIG - a configuration ID, added at the request of a customer,
  437. #        that is supposed to help in maintaining multiple variants in
  438. #        a single directory.  Normally this is an empty string;
  439. #        it may be any string that is legal as part of a file name.
  440. #    DEVICE_DEVS - the devices to include in the executable.
  441. #        See devs.mak for details.
  442. #    DEVICE_DEVS1...DEVICE_DEVS15 - additional devices, if the definition
  443. #        of DEVICE_DEVS doesn't fit on one line.  See devs.mak for details.
  444. #    FEATURE_DEVS - what features to include in the executable.
  445. #        Normally this is one of:
  446. #            level1 - a standard PostScript Level 1 language
  447. #            interpreter.
  448. #            level2 - a standard PostScript Level 2 language
  449. #            interpreter.
  450. #            pdf - a PDF-capable interpreter.
  451. #        You may include both level1 and pdf, or both level2 and pdf.
  452. #        The following feature may be added to either of the standard
  453. #        configurations:
  454. #            ccfonts - precompile fonts into C, and link them
  455. #            with the executable.  See fonts.txt for details.
  456. #        The remaining features are of interest primarily to developers
  457. #        who want to "mix and match" features to create custom
  458. #        configurations:
  459. #            dps - (partial) support for Display PostScript extensions:
  460. #            see language.txt for details.
  461. #            btoken - support for binary token encodings.
  462. #            Included automatically in the dps and level2 features.
  463. #            cidfont - (currently partial) support for CID-keyed fonts.
  464. #            color - support for the Level 1 CMYK color extensions.
  465. #            Included automatically in the dps and level2 features.
  466. #            compfont - support for composite (type 0) fonts.
  467. #            Included automatically in the level2 feature.
  468. #            dct - support for DCTEncode/Decode filters.
  469. #            Included automatically in the level2 feature.
  470. #            epsf - support for recognizing and skipping the binary
  471. #            header of MS-DOS EPSF files.
  472. #            filter - support for Level 2 filters (other than eexec,
  473. #            ASCIIHexEncode/Decode, NullEncode, PFBDecode,
  474. #            RunLengthEncode/Decode, and SubFileDecode, which are
  475. #            always included, and DCTEncode/Decode,
  476. #            which are separate).
  477. #            Included automatically in the level2 feature.
  478. #            fzlib - support for zlibEncode/Decode filters.
  479. #            ttfont - support for TrueType fonts.
  480. #            type1 - support for Type 1 fonts and eexec;
  481. #            normally included automatically in all configurations.
  482. #            type42 - support for Type 42 (embedded TrueType) fonts.
  483. #            Included automatically in the level2 feature.
  484. #        There are quite a number of other sub-features that can be
  485. #        selectively included in or excluded from a configuration,
  486. #        but the above are the ones that are most likely to be of
  487. #        interest.
  488. #    COMPILE_INITS - normally 0; if set to 1, compiles the PostScript
  489. #        language initialization files (gs_init.ps et al) into the
  490. #        executable, eliminating the need for these files to be present
  491. #        at run time.
  492. #    BAND_LIST_STORAGE - normally file; if set to memory, stores band
  493. #        lists in memory (with compression if needed).
  494. #    BAND_LIST_COMPRESSOR - normally zlib: selects the compression method
  495. #        to use for band lists in memory.
  496. #    FILE_IMPLEMENTATION - normally stdio; if set to fd, uses file
  497. #        descriptors instead of buffered stdio for file I/O; if set to
  498. #        both, provides both implementations with different procedure
  499. #        names for the fd-based implementation (see sfxfd.c for
  500. #        more information).
  501. #    EXTEND_NAMES - a value N between 0 and 6, indicating that the name
  502. #        table should have a capacity of 2^(16+N) names.  This normally
  503. #        should be set to 0 (or left undefined), since non-zero values
  504. #        result in a larger fixed space overhead and slightly slower code.
  505. #        EXTEND_NAMES is ignored in 16-bit environments.
  506. #
  507. # It is very unlikely that anyone would want to edit the remaining
  508. #   symbols, but we describe them here for completeness:
  509. #    GS_INIT - the name of the initialization file for the interpreter,
  510. #        normally gs_init.ps.
  511. #    PLATFORM - a "device" name for the platform, so that platforms can
  512. #        add various kinds of resources like devices and features.
  513. #    CMD - the suffix for shell command files (e.g., null or .bat).
  514. #        (This is only needed in a few places.)
  515. #    D - the directory separator character (\ for MS-DOS, / for Unix).
  516. #    O - the string for specifying the output file from the C compiler
  517. #        (-o for MS-DOS, -o ./ for Unix).
  518. #    OBJ - the extension for relocatable object files (e.g., o or obj).
  519. #    XE - the extension for executable files (e.g., null or .exe).
  520. #    XEAUX - the extension for the executable files (e.g., null or .exe)
  521. #        for the utility programs (ansi2knr and those compiled with
  522. #        CCAUX).
  523. #    BEGINFILES - the list of files that `make begin' and `make clean'
  524. #        should delete.
  525. #    CCA2K - the C invocation for the ansi2knr program, which is the only
  526. #        one that doesn't use ANSI C syntax.  (It is only needed if
  527. #        the main C compiler also isn't an ANSI compiler.)
  528. #    CCAUX - the C invocation for auxiliary programs (echogs, genarch,
  529. #        genconf, geninit).
  530. #    CCBEGIN - the compilation command for `make begin', normally
  531. #        $(CCC) *.c.
  532. #    CCC - the C invocation for normal compilation.
  533. #    CCD - the C invocation for files that store into frame buffers or
  534. #        device registers.  Needed because some optimizing compilers
  535. #        will eliminate necessary stores.
  536. #    CCCF - the C invocation for compiled fonts and other large,
  537. #        self-contained data modules.  Needed because MS-DOS
  538. #        requires using the 'huge' memory model for these.
  539. #    CCINT - the C invocation for compiling the main interpreter module,
  540. #        normally the same as CCC: this is needed because the
  541. #        Borland compiler generates *worse* code for this module
  542. #        (but only this module) when optimization (-O) is turned on.
  543. #    CCLEAF - the C invocation for compiling modules that contain only
  544. #        leaf procedures, which don't need to build stack frames.
  545. #        This is needed only because many compilers aren't able to
  546. #        recognize leaf procedures on their own.
  547. #    AK - if source files must be converted from ANSI to K&R syntax,
  548. #        this is $(ANSI2KNR_XE); if not, it is null.
  549. #        If a particular platform requires other utility programs
  550. #        to be built, AK must include them too.
  551. #    SHP - the prefix for invoking a shell script in the current directory
  552. #        (null for MS-DOS, $(SH) ./ for Unix).
  553. #    EXPP, EXP - the prefix for invoking an executable program in the
  554. #        current directory (null for MS-DOS, ./ for Unix).
  555. #    SH - the shell for scripts (null on MS-DOS, sh on Unix).
  556. #    CONFILES - the arguments for genconf to generate the appropriate
  557. #        linker control files (various).
  558. #    CP_ - the command for copying one file to another.  Because of
  559. #        limitations in the MS-DOS/MS Windows environment, the
  560. #        second argument must either be '.' (in which case the
  561. #        write date may be either preserved or set to the current
  562. #        date) or a file name (in which case the write date is
  563. #        always updated).
  564. #    RM_ - the command for deleting (a) file(s) (including wild cards,
  565. #        but limited to a single file or pattern).
  566. #    RMN_ = the command for deleting multiple files / patterns.
  567. #
  568. # The platform-specific makefiles must also include rules for creating
  569. # certain dynamically generated files:
  570. #    gconfig_.h - this indicates the presence or absence of
  571. #        certain system header files that are located in different
  572. #        places on different systems.  (It could be generated by
  573. #        the GNU `configure' program.)
  574. #    gconfigv.h - this indicates the status of certain machine-
  575. #        and configuration-specific features derived from definitions
  576. #        in the platform-specific makefile.
  577.  
  578. # Define the name of this makefile.
  579. GS_MAK=gs.mak
  580.  
  581. # Define the names of the executables.
  582. GS_XE=$(GS)$(XE)
  583. ANSI2KNR_XE=ansi2knr$(XEAUX)
  584. ECHOGS_XE=echogs$(XEAUX)
  585. GENARCH_XE=genarch$(XEAUX)
  586. GENCONF_XE=genconf$(XEAUX)
  587. GENINIT_XE=geninit$(XEAUX)
  588.  
  589. # Define the names of the CONFIG-dependent header files.
  590. # gconfig*.h and gconfx*.h are generated dynamically.
  591. gconfig_h=gconfxx$(CONFIG).h
  592. gconfigf_h=gconfxc$(CONFIG).h
  593.  
  594. # Watcom make insists that rules have a non-empty body!
  595. all default: $(GS_XE)
  596.     $(RM_) _temp_*
  597.  
  598. distclean maintainer-clean realclean: clean
  599.     $(RM_) makefile
  600.  
  601. clean: mostlyclean
  602.     $(RM_) arch.h
  603.     $(RM_) $(GS_XE)
  604.  
  605. mostlyclean:
  606.     $(RMN_) *.$(OBJ) *.a core gmon.out
  607.     $(RMN_) *.dev *.d_* devs*.tr gconfig*.h gconfx*.h j*.h o*.tr l*.tr
  608.     $(RMN_) deflate.h zutil.h
  609.     $(RMN_) gconfig*.c gscdefs*.c iconfig*.c
  610.     $(RMN_) _temp_* _temp_*.* *.map *.sym
  611.     $(RMN_) $(ANSI2KNR_XE) $(ECHOGS_XE) $(GENARCH_XE) $(GENCONF_XE) $(GENINIT_XE)
  612.     $(RMN_) gs_init.c $(BEGINFILES)
  613.  
  614. # Remove only configuration-dependent information.
  615. config-clean:
  616.     $(RMN_) *.dev devs*.tr gconfig*.h gconfx*.h o*.tr l*.tr
  617.  
  618. # A rule to do a quick and dirty compilation attempt when first installing
  619. # the interpreter.  Many of the compilations will fail:
  620. # follow this with 'make'.
  621.  
  622. begin:
  623.     $(RMN_) arch.h gconfig*.h gconfx*.h $(GENARCH_XE) $(GS_XE)
  624.     $(RMN_) gconfig*.c gscdefs*.c iconfig*.c
  625.     $(RMN_) gs_init.c $(BEGINFILES)
  626.     make arch.h gconfigv.h
  627.     - $(CCBEGIN)
  628.     $(RMN_) gconfig.$(OBJ) gdev*.$(OBJ) gp_*.$(OBJ) gscdefs.$(OBJ) gsmisc.$(OBJ)
  629.     $(RMN_) icfontab.$(OBJ) iconfig.$(OBJ) iinit.$(OBJ) interp.$(OBJ)
  630.  
  631. # Auxiliary programs
  632.  
  633. arch.h: $(GENARCH_XE)
  634.     $(EXPP) $(EXP)genarch arch.h
  635.  
  636. # Macros for constructing the *.dev files that describe features and
  637. # devices.
  638. SETDEV=$(EXP)echogs -e .dev -w- -l-dev -F -s -l-obj
  639. SETPDEV=$(EXP)echogs -e .dev -w- -l-dev -F -s -l-include -lpage -l-obj
  640. SETMOD=$(EXP)echogs -e .dev -w- -l-obj
  641. ADDMOD=$(EXP)echogs -e .dev -a-
  642.  
  643. # Define the compilation commands for the third-party libraries.
  644. CCCP=$(CCC) -I$(PSRCDIR) -I$(ZSRCDIR) -DPNG_USE_CONST
  645. CCCJ=$(CCC) -I. -I$(JSRCDIR)
  646. CCCZ=$(CCC) -I. -I$(ZSRCDIR)
  647.  
  648. ######################## How to define new 'features' #######################
  649. #
  650. # One defines new 'features' exactly like devices (see devs.mak for details).
  651. # For example, one would define a feature abc by adding the following to
  652. # gs.mak:
  653. #
  654. #    abc_=abc1.$(OBJ) ...
  655. #    abc.dev: $(GS_MAK) $(ECHOGS_XE) $(abc_)
  656. #        $(SETMOD) abc $(abc_)
  657. #        $(ADDMOD) abc -obj ... [if needed]
  658. #        $(ADDMOD) abc -oper ... [if appropriate]
  659. #        $(ADDMOD) abc -ps ... [if appropriate]
  660. #
  661. # If the abc feature requires the presence of some other features jkl and
  662. # pqr, then the rules must look like this:
  663. #
  664. #    abc_=abc1.$(OBJ) ...
  665. #    abc.dev: $(GS_MAK) $(ECHOGS_XE) $(abc_) jkl.dev pqr.dev
  666. #        $(SETMOD) abc $(abc_)
  667. #        ...
  668. #        $(ADDMOD) abc -include jkl pqr
  669.  
  670. # --------------------- Configuration-dependent files --------------------- #
  671.  
  672. # gconfig.h shouldn't have to depend on DEVS_ALL, but that would
  673. # involve rewriting gsconfig to only save the device name, not the
  674. # contents of the <device>.dev files.
  675. # FEATURE_DEVS must precede DEVICE_DEVS so that devices can override
  676. # features in obscure cases.
  677.  
  678. DEVS_ALL=$(PLATFORM).dev $(FEATURE_DEVS) \
  679.   $(DEVICE_DEVS) $(DEVICE_DEVS1) \
  680.   $(DEVICE_DEVS2) $(DEVICE_DEVS3) $(DEVICE_DEVS4) $(DEVICE_DEVS5) \
  681.   $(DEVICE_DEVS6) $(DEVICE_DEVS7) $(DEVICE_DEVS8) $(DEVICE_DEVS9) \
  682.   $(DEVICE_DEVS10) $(DEVICE_DEVS11) $(DEVICE_DEVS12) $(DEVICE_DEVS13) \
  683.   $(DEVICE_DEVS14) $(DEVICE_DEVS15)
  684.  
  685. devs_tr=devs.tr$(CONFIG)
  686. $(devs_tr): $(GS_MAK) $(MAKEFILE) $(ECHOGS_XE)
  687.     $(EXP)echogs -w $(devs_tr) - -include $(PLATFORM).dev
  688.     $(EXP)echogs -a $(devs_tr) - $(FEATURE_DEVS)
  689.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS)
  690.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS1)
  691.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS2)
  692.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS3)
  693.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS4)
  694.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS5)
  695.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS6)
  696.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS7)
  697.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS8)
  698.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS9)
  699.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS10)
  700.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS11)
  701.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS12)
  702.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS13)
  703.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS14)
  704.     $(EXP)echogs -a $(devs_tr) - $(DEVICE_DEVS15)
  705.  
  706. # GCONFIG_EXTRAS can be set on the command line.
  707. # Note that it consists of arguments for echogs, i.e.,
  708. # it isn't just literal text.
  709. GCONFIG_EXTRAS=
  710.  
  711. ld_tr=ld$(CONFIG).tr
  712. $(gconfig_h) $(ld_tr) lib.tr: \
  713.   $(GS_MAK) $(MAKEFILE) version.mak $(GENCONF_XE) $(ECHOGS_XE) $(devs_tr) $(DEVS_ALL) libcore.dev
  714.     $(EXP)genconf $(devs_tr) libcore.dev -h $(gconfig_h) $(CONFILES)
  715.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_LIB_DEFAULT -x 2022 $(GS_LIB_DEFAULT) -x 22
  716.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u SEARCH_HERE_FIRST -s $(SEARCH_HERE_FIRST)
  717.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_DOCDIR -x 2022 $(GS_DOCDIR) -x 22
  718.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_INIT -x 2022 $(GS_INIT) -x 22
  719.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_REVISION -s $(GS_REVISION)
  720.     $(EXP)echogs -a $(gconfig_h) -x 23 define -s -u GS_REVISIONDATE -s $(GS_REVISIONDATE)
  721.     $(EXP)echogs -a $(gconfig_h) $(GCONFIG_EXTRAS)
  722.  
  723. ################################################################
  724. # The other platform-independent makefiles are concatenated
  725. # (or included) after this one:
  726. #    lib.mak
  727. #    int.mak
  728. #    jpeg.mak
  729. #    libpng.mak
  730. #    zlib.mak
  731. #    devs.mak
  732. ################################################################
  733. #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  734. # This file is part of Aladdin Ghostscript.
  735. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  736. # or distributor accepts any responsibility for the consequences of using it,
  737. # or for whether it serves any particular purpose or works at all, unless he
  738. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  739. # License (the "License") for full details.
  740. # Every copy of Aladdin Ghostscript must include a copy of the License,
  741. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  742. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  743. # under certain conditions described in the License.  Among other things, the
  744. # License requires that the copyright notice and this notice be preserved on
  745. # all copies.
  746.  
  747. # (Platform-independent) makefile for graphics library and other support code.
  748. # See the end of gs.mak for where this fits into the build process.
  749.  
  750. # Define the name of this makefile.
  751. LIB_MAK=lib.mak
  752.  
  753. # Define the inter-dependencies of the .h files.
  754. # Since not all versions of `make' defer expansion of macros,
  755. # we must list these in bottom-to-top order.
  756.  
  757. # Generic files
  758.  
  759. arch_h=arch.h
  760. stdpre_h=stdpre.h
  761. std_h=std.h $(arch_h) $(stdpre_h)
  762.  
  763. # Platform interfaces
  764.  
  765. gp_h=gp.h
  766. gpcheck_h=gpcheck.h
  767.  
  768. # Configuration definitions
  769.  
  770. # gconfig*.h are generated dynamically.
  771. gconfig__h=gconfig_.h
  772. gconfigv_h=gconfigv.h
  773. gscdefs_h=gscdefs.h
  774.  
  775. # C library interfaces
  776.  
  777. # Because of variations in the "standard" header files between systems, and
  778. # because we must include std.h before any file that includes sys/types.h,
  779. # we define local include files named *_.h to substitute for <*.h>.
  780.  
  781. vmsmath_h=vmsmath.h
  782.  
  783. dos__h=dos_.h
  784. ctype__h=ctype_.h $(std_h)
  785. dirent__h=dirent_.h $(std_h) $(gconfig__h)
  786. errno__h=errno_.h $(std_h)
  787. malloc__h=malloc_.h $(std_h)
  788. math__h=math_.h $(std_h) $(vmsmath_h)
  789. memory__h=memory_.h $(std_h)
  790. stat__h=stat_.h $(std_h)
  791. stdio__h=stdio_.h $(std_h)
  792. string__h=string_.h $(std_h)
  793. time__h=time_.h $(std_h) $(gconfig__h)
  794. windows__h=windows_.h
  795.  
  796. # Miscellaneous
  797.  
  798. gdebug_h=gdebug.h
  799. gsalloc_h=gsalloc.h
  800. gsargs_h=gsargs.h
  801. gserror_h=gserror.h
  802. gserrors_h=gserrors.h
  803. gsexit_h=gsexit.h
  804. gsgc_h=gsgc.h
  805. gsio_h=gsio.h
  806. gsmdebug_h=gsmdebug.h
  807. gsmemory_h=gsmemory.h
  808. gsrefct_h=gsrefct.h
  809. gsstruct_h=gsstruct.h
  810. gstypes_h=gstypes.h
  811. gx_h=gx.h $(stdio__h) $(gdebug_h) $(gserror_h) $(gsio_h) $(gsmemory_h) $(gstypes_h)
  812.  
  813. GX=$(AK) $(gx_h)
  814. GXERR=$(GX) $(gserrors_h)
  815.  
  816. ###### Support
  817.  
  818. ### Include files
  819.  
  820. gsbitops_h=gsbitops.h
  821. gsbittab_h=gsbittab.h
  822. gsflip_h=gsflip.h
  823. gsuid_h=gsuid.h
  824. gsutil_h=gsutil.h
  825. gxarith_h=gxarith.h
  826. gxbitmap_h=gxbitmap.h $(gstypes_h)
  827. gxfarith_h=gxfarith.h $(gconfigv_h) $(gxarith_h)
  828. gxfixed_h=gxfixed.h
  829. gxobj_h=gxobj.h $(gxbitmap_h)
  830. # Out of order
  831. gxalloc_h=gxalloc.h $(gsalloc_h) $(gxobj_h)
  832.  
  833. ### Executable code
  834.  
  835. gsalloc.$(OBJ): gsalloc.c $(GX) $(memory__h) $(string__h) \
  836.   $(gsmdebug_h) $(gsstruct_h) $(gxalloc_h)
  837.  
  838. gsargs.$(OBJ): gsargs.c $(ctype__h) $(stdio__h) $(string__h)\
  839.  $(gsargs_h) $(gsexit_h) $(gsmemory_h)
  840.  
  841. gsbitops.$(OBJ): gsbitops.c $(AK) $(memory__h) $(stdio__h)\
  842.  $(gdebug_h) $(gsbitops_h) $(gstypes_h)
  843.  
  844. gsbittab.$(OBJ): gsbittab.c $(AK) $(stdpre_h) $(gsbittab_h)
  845.  
  846. # gsfemu is only used in FPU-less configurations, and currently only with gcc.
  847. # We thought using CCLEAF would produce smaller code, but it actually
  848. # produces larger code!
  849. gsfemu.$(OBJ): gsfemu.c $(AK) $(std_h)
  850.  
  851. # gsflip is not part of the standard configuration: it's rather large,
  852. # and no standard facility requires it.
  853. gsflip.$(OBJ): gsflip.c $(GX) $(gsbittab_h) $(gsflip_h)
  854.     $(CCLEAF) gsflip.c
  855.  
  856. gsmemory.$(OBJ): gsmemory.c $(GX) $(malloc__h) $(memory__h) \
  857.   $(gsmdebug_h) $(gsrefct_h) $(gsstruct_h)
  858.  
  859. gsmisc.$(OBJ): gsmisc.c $(GXERR) $(gconfigv_h) \
  860.   $(malloc__h) $(math__h) $(memory__h) $(gpcheck_h) $(gxfarith_h) $(gxfixed_h)
  861.  
  862. # gsnogc currently is only used in library-only configurations.
  863. gsnogc.$(OBJ): gsnogc.c $(GX)\
  864.  $(gsgc_h) $(gsmdebug_h) $(gsstruct_h) $(gxalloc_h)
  865.  
  866. gsutil.$(OBJ): gsutil.c $(AK) $(memory__h) $(string__h) $(gconfigv_h)\
  867.  $(gstypes_h) $(gsuid_h) $(gsutil_h)
  868.  
  869. ###### Low-level facilities and utilities
  870.  
  871. ### Include files
  872.  
  873. gdevbbox_h=gdevbbox.h
  874. gdevmem_h=gdevmem.h $(gsbitops_h)
  875. gdevmrop_h=gdevmrop.h
  876.  
  877. gsccode_h=gsccode.h
  878. gsccolor_h=gsccolor.h $(gsstruct_h)
  879. gscsel_h=gscsel.h
  880. gscolor1_h=gscolor1.h
  881. gscoord_h=gscoord.h
  882. gscpm_h=gscpm.h
  883. gsdevice_h=gsdevice.h
  884. gsfcmap_h=gsfcmap.h $(gsccode_h)
  885. gsfont_h=gsfont.h
  886. gshsb_h=gshsb.h
  887. gsht_h=gsht.h
  888. gsht1_h=gsht1.h $(gsht_h)
  889. gsiparam_h=gsiparam.h
  890. gsjconf_h=gsjconf.h $(std_h)
  891. gslib_h=gslib.h
  892. gslparam_h=gslparam.h
  893. gsmatrix_h=gsmatrix.h
  894. gspaint_h=gspaint.h
  895. gsparam_h=gsparam.h
  896. gspath2_h=gspath2.h
  897. gspenum_h=gspenum.h
  898. gsropt_h=gsropt.h
  899. gsxfont_h=gsxfont.h
  900. # Out of order
  901. gschar_h=gschar.h $(gsccode_h) $(gscpm_h)
  902. gscolor2_h=gscolor2.h $(gsccolor_h) $(gsuid_h) $(gxbitmap_h)
  903. gsimage_h=gsimage.h $(gsiparam_h)
  904. gsline_h=gsline.h $(gslparam_h)
  905. gspath_h=gspath.h $(gspenum_h)
  906. gsrop_h=gsrop.h $(gsropt_h)
  907.  
  908. gxbcache_h=gxbcache.h $(gxbitmap_h)
  909. gxchar_h=gxchar.h $(gschar_h)
  910. gxcindex_h=gxcindex.h
  911. gxcvalue_h=gxcvalue.h
  912. gxclio_h=gxclio.h
  913. gxclip2_h=gxclip2.h
  914. gxcolor2_h=gxcolor2.h $(gscolor2_h) $(gsrefct_h) $(gxbitmap_h)
  915. gxcoord_h=gxcoord.h $(gscoord_h)
  916. gxcpath_h=gxcpath.h
  917. gxdda_h=gxdda.h
  918. gxdevrop_h=gxdevrop.h
  919. gxdevmem_h=gxdevmem.h
  920. gxdither_h=gxdither.h
  921. gxfcmap_h=gxfcmap.h $(gsfcmap_h) $(gsuid_h)
  922. gxfont0_h=gxfont0.h
  923. gxfrac_h=gxfrac.h
  924. gxftype_h=gxftype.h
  925. gxhttile_h=gxhttile.h
  926. gxhttype_h=gxhttype.h
  927. gxiodev_h=gxiodev.h $(stat__h)
  928. gxline_h=gxline.h $(gslparam_h)
  929. gxlum_h=gxlum.h
  930. gxmatrix_h=gxmatrix.h $(gsmatrix_h)
  931. gxpaint_h=gxpaint.h
  932. gxpath_h=gxpath.h $(gscpm_h) $(gslparam_h) $(gspenum_h)
  933. gxpcache_h=gxpcache.h
  934. gxpcolor_h=gxpcolor.h $(gxpcache_h)
  935. gxsample_h=gxsample.h
  936. gxstate_h=gxstate.h
  937. gxtmap_h=gxtmap.h
  938. gxxfont_h=gxxfont.h $(gsccode_h) $(gsmatrix_h) $(gsuid_h) $(gsxfont_h)
  939. # The following are out of order because they include other files.
  940. gsdcolor_h=gsdcolor.h $(gsccolor_h) $(gxarith_h) $(gxbitmap_h) $(gxcindex_h) $(gxhttile_h)
  941. gxdcolor_h=gxdcolor.h $(gscsel_h) $(gsdcolor_h) $(gsropt_h) $(gsstruct_h)
  942. gxdevice_h=gxdevice.h $(stdio__h) $(gsdcolor_h) $(gsiparam_h) $(gsmatrix_h) \
  943.   $(gsropt_h) $(gsstruct_h) $(gsxfont_h) \
  944.   $(gxbitmap_h) $(gxcindex_h) $(gxcvalue_h) $(gxfixed_h)
  945. gxdht_h=gxdht.h $(gsrefct_h) $(gxarith_h) $(gxhttype_h)
  946. gxctable_h=gxctable.h $(gxfixed_h) $(gxfrac_h)
  947. gxfcache_h=gxfcache.h $(gsuid_h) $(gsxfont_h) $(gxbcache_h) $(gxftype_h)
  948. gxfont_h=gxfont.h $(gsfont_h) $(gsuid_h) $(gsstruct_h) $(gxftype_h)
  949. gscie_h=gscie.h $(gsrefct_h) $(gxctable_h)
  950. gscsepr_h=gscsepr.h
  951. gscspace_h=gscspace.h
  952. gxdcconv_h=gxdcconv.h $(gxfrac_h)
  953. gxfmap_h=gxfmap.h $(gsrefct_h) $(gxfrac_h) $(gxtmap_h)
  954. gxistate_h=gxistate.h $(gscsel_h) $(gsropt_h) $(gxcvalue_h) $(gxfixed_h) $(gxline_h) $(gxmatrix_h) $(gxtmap_h)
  955. gxclist_h=gxclist.h $(gscspace_h) $(gxbcache_h) $(gxclio_h) $(gxistate_h)
  956. gxcmap_h=gxcmap.h $(gscsel_h) $(gxcvalue_h) $(gxfmap_h)
  957. gxcspace_h=gxcspace.h $(gscspace_h) $(gsccolor_h) $(gscsel_h) $(gsstruct_h) $(gxfrac_h)
  958. gxht_h=gxht.h $(gsht1_h) $(gsrefct_h) $(gxhttype_h) $(gxtmap_h)
  959. gscolor_h=gscolor.h $(gxtmap_h)
  960. gsstate_h=gsstate.h $(gscolor_h) $(gscsel_h) $(gsdevice_h) $(gsht_h) $(gsline_h)
  961.  
  962. gzacpath_h=gzacpath.h
  963. gzcpath_h=gzcpath.h $(gxcpath_h)
  964. gzht_h=gzht.h $(gscsel_h) $(gxdht_h) $(gxfmap_h) $(gxht_h) $(gxhttile_h)
  965. gzline_h=gzline.h $(gxline_h)
  966. gzpath_h=gzpath.h $(gsstruct_h) $(gxpath_h)
  967. gzstate_h=gzstate.h $(gscpm_h) $(gsrefct_h) $(gsstate_h)\
  968.  $(gxdcolor_h) $(gxistate_h) $(gxstate_h)
  969.  
  970. gdevprn_h=gdevprn.h $(memory__h) $(string__h) $(gx_h) \
  971.   $(gserrors_h) $(gsmatrix_h) $(gsparam_h) $(gsutil_h) \
  972.   $(gxdevice_h) $(gxdevmem_h) $(gxclist_h)
  973.  
  974. sa85x_h=sa85x.h
  975. sbtx_h=sbtx.h
  976. scanchar_h=scanchar.h
  977. scommon_h=scommon.h $(gsmemory_h) $(gstypes_h) $(gsstruct_h)
  978. sdct_h=sdct.h
  979. shc_h=shc.h $(gsbittab_h)
  980. siscale_h=siscale.h $(gconfigv_h)
  981. sjpeg_h=sjpeg.h
  982. slzwx_h=slzwx.h
  983. spcxx_h=spcxx.h
  984. spdiffx_h=spdiffx.h
  985. spngpx_h=spngpx.h
  986. srlx_h=srlx.h
  987. sstring_h=sstring.h
  988. strimpl_h=strimpl.h $(scommon_h) $(gstypes_h) $(gsstruct_h)
  989. szlibx_h=szlibx.h
  990. # Out of order
  991. scf_h=scf.h $(shc_h)
  992. scfx_h=scfx.h $(shc_h)
  993. gximage_h=gximage.h $(gsiparam_h) $(gxcspace_h) $(gxdda_h) $(gxsample_h)\
  994.  $(siscale_h) $(strimpl_h)
  995.  
  996. ### Executable code
  997.  
  998. # gconfig and gscdefs are handled specially.  Currently they go in psbase
  999. # rather than in libcore, which is clearly wrong.
  1000. gconfig=gconfig$(CONFIG)
  1001. $(gconfig).$(OBJ): gconf.c $(GX) \
  1002.   $(gscdefs_h) $(gconfig_h) $(gxdevice_h) $(gxiodev_h) $(MAKEFILE)
  1003.     $(RM_) gconfig.h
  1004.     $(RM_) $(gconfig).c
  1005.     $(CP_) $(gconfig_h) gconfig.h
  1006.     $(CP_) gconf.c $(gconfig).c
  1007.     $(CCC) $(gconfig).c
  1008.     $(RM_) gconfig.h
  1009.     $(RM_) $(gconfig).c
  1010.  
  1011. gscdefs=gscdefs$(CONFIG)
  1012. $(gscdefs).$(OBJ): gscdef.c $(stdpre_h) $(gscdefs_h) $(gconfig_h) $(MAKEFILE)
  1013.     $(RM_) gconfig.h
  1014.     $(RM_) $(gscdefs).c
  1015.     $(CP_) $(gconfig_h) gconfig.h
  1016.     $(CP_) gscdef.c $(gscdefs).c
  1017.     $(CCC) $(gscdefs).c
  1018.     $(RM_) gconfig.h
  1019.     $(RM_) $(gscdefs).c
  1020.  
  1021. gxacpath.$(OBJ): gxacpath.c $(GXERR) \
  1022.   $(gsdcolor_h) $(gsrop_h) $(gsstruct_h) $(gsutil_h) \
  1023.   $(gxdevice_h) $(gxfixed_h) $(gxpaint_h) \
  1024.   $(gzacpath_h) $(gzcpath_h) $(gzpath_h)
  1025.  
  1026. gxbcache.$(OBJ): gxbcache.c $(GX) $(memory__h) \
  1027.   $(gsmdebug_h) $(gxbcache_h)
  1028.  
  1029. gxccache.$(OBJ): gxccache.c $(GXERR) $(gpcheck_h) \
  1030.   $(gscspace_h) $(gsimage_h) $(gsstruct_h) \
  1031.   $(gxchar_h) $(gxdevice_h) $(gxdevmem_h) $(gxfcache_h) \
  1032.   $(gxfixed_h) $(gxfont_h) $(gxhttile_h) $(gxmatrix_h) $(gxxfont_h) \
  1033.   $(gzstate_h) $(gzpath_h) $(gzcpath_h) 
  1034.  
  1035. gxccman.$(OBJ): gxccman.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1036.  $(gsbitops_h) $(gsstruct_h) $(gsutil_h) $(gxfixed_h) $(gxmatrix_h)\
  1037.  $(gxdevice_h) $(gxdevmem_h) $(gxfont_h) $(gxfcache_h) $(gxchar_h)\
  1038.  $(gxxfont_h) $(gzstate_h) $(gzpath_h)
  1039.  
  1040. gxcht.$(OBJ): gxcht.c $(GXERR) $(memory__h)\
  1041.  $(gsutil_h)\
  1042.  $(gxcmap_h) $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxistate_h)\
  1043.  $(gxmatrix_h) $(gzht_h)
  1044.  
  1045. gxcmap.$(OBJ): gxcmap.c $(GXERR) \
  1046.   $(gsccolor_h) \
  1047.   $(gxcmap_h) $(gxcspace_h) $(gxdcconv_h) $(gxdevice_h) $(gxdither_h) \
  1048.   $(gxfarith_h) $(gxfrac_h) $(gxlum_h) $(gzstate_h)
  1049.  
  1050. gxcpath.$(OBJ): gxcpath.c $(GXERR)\
  1051.  $(gscoord_h) $(gsstruct_h) $(gsutil_h)\
  1052.  $(gxdevice_h) $(gxfixed_h) $(gzpath_h) $(gzcpath_h)
  1053.  
  1054. gxdcconv.$(OBJ): gxdcconv.c $(GX) \
  1055.   $(gsdcolor_h) $(gxcmap_h) $(gxdcconv_h) $(gxdevice_h) \
  1056.   $(gxfarith_h) $(gxistate_h) $(gxlum_h)
  1057.  
  1058. gxdcolor.$(OBJ): gxdcolor.c $(GX) \
  1059.   $(gsbittab_h) $(gxdcolor_h) $(gxdevice_h)
  1060.  
  1061. gxdither.$(OBJ): gxdither.c $(GX) \
  1062.   $(gsstruct_h) $(gsdcolor_h) \
  1063.   $(gxcmap_h) $(gxdevice_h) $(gxdither_h) $(gxlum_h) $(gzht_h)
  1064.  
  1065. gxfill.$(OBJ): gxfill.c $(GXERR) $(math__h) \
  1066.   $(gsstruct_h) \
  1067.   $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxhttile_h) \
  1068.   $(gxistate_h) $(gxpaint_h) \
  1069.   $(gzcpath_h) $(gzpath_h)
  1070.  
  1071. gxht.$(OBJ): gxht.c $(GXERR) $(memory__h)\
  1072.  $(gsbitops_h) $(gsstruct_h) $(gsutil_h)\
  1073.  $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxistate_h) $(gzht_h)
  1074.  
  1075. gximage.$(OBJ): gximage.c $(GXERR) $(math__h) $(memory__h) $(gpcheck_h)\
  1076.  $(gsccolor_h) $(gspaint_h) $(gsstruct_h)\
  1077.  $(gxfixed_h) $(gxfrac_h) $(gxarith_h) $(gxmatrix_h)\
  1078.  $(gxdevice_h) $(gzpath_h) $(gzstate_h)\
  1079.  $(gzcpath_h) $(gxdevmem_h) $(gximage_h) $(gdevmrop_h)
  1080.  
  1081. gximage0.$(OBJ): gximage0.c $(GXERR) $(memory__h)\
  1082.  $(gxcpath_h) $(gxdevice_h) $(gximage_h)
  1083.  
  1084. gximage1.$(OBJ): gximage1.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1085.  $(gdevmem_h) $(gsbittab_h) $(gsccolor_h) $(gspaint_h) $(gsutil_h)\
  1086.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
  1087.  $(gxdevmem_h) $(gxfixed_h) $(gximage_h) $(gxistate_h) $(gxmatrix_h)\
  1088.  $(gzht_h) $(gzpath_h)
  1089.  
  1090. gximage2.$(OBJ): gximage2.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1091.  $(gdevmem_h) $(gsccolor_h) $(gspaint_h) $(gsutil_h)\
  1092.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
  1093.  $(gxdevmem_h) $(gxfixed_h) $(gximage_h) $(gxistate_h) $(gxmatrix_h)\
  1094.  $(gzht_h) $(gzpath_h)
  1095.  
  1096. gxpaint.$(OBJ): gxpaint.c $(GX) \
  1097.   $(gxdevice_h) $(gxhttile_h) $(gxpaint_h) $(gxpath_h) $(gzstate_h)
  1098.  
  1099. gxpath.$(OBJ): gxpath.c $(GXERR) \
  1100.   $(gsstruct_h) $(gxfixed_h) $(gzpath_h)
  1101.  
  1102. gxpath2.$(OBJ): gxpath2.c $(GXERR) $(math__h) \
  1103.   $(gxfixed_h) $(gxarith_h) $(gzpath_h)
  1104.  
  1105. gxpcopy.$(OBJ): gxpcopy.c $(GXERR) $(math__h) $(gconfigv_h) \
  1106.   $(gxfarith_h) $(gxfixed_h) $(gzpath_h)
  1107.  
  1108. gxpdash.$(OBJ): gxpdash.c $(GX) $(math__h) \
  1109.   $(gscoord_h) $(gsline_h) $(gsmatrix_h) \
  1110.   $(gxfixed_h) $(gzline_h) $(gzpath_h)
  1111.  
  1112. gxpflat.$(OBJ): gxpflat.c $(GX)\
  1113.  $(gxarith_h) $(gxfixed_h) $(gzpath_h)
  1114.  
  1115. gxsample.$(OBJ): gxsample.c $(GX)\
  1116.  $(gxsample_h)
  1117.  
  1118. gxstroke.$(OBJ): gxstroke.c $(GXERR) $(math__h) $(gpcheck_h) \
  1119.   $(gscoord_h) $(gsdcolor_h) $(gsdevice_h) \
  1120.   $(gxdevice_h) $(gxfarith_h) $(gxfixed_h) \
  1121.   $(gxhttile_h) $(gxistate_h) $(gxmatrix_h) $(gxpaint_h) \
  1122.   $(gzcpath_h) $(gzline_h) $(gzpath_h)
  1123.  
  1124. ###### Higher-level facilities
  1125.  
  1126. gschar.$(OBJ): gschar.c $(GXERR) $(memory__h) $(string__h)\
  1127.  $(gspath_h) $(gsstruct_h) \
  1128.  $(gxfixed_h) $(gxarith_h) $(gxmatrix_h) $(gxcoord_h) $(gxdevice_h) $(gxdevmem_h) \
  1129.  $(gxfont_h) $(gxfont0_h) $(gxchar_h) $(gxfcache_h) $(gzpath_h) $(gzstate_h)
  1130.  
  1131. gscolor.$(OBJ): gscolor.c $(GXERR) \
  1132.   $(gsccolor_h) $(gsstruct_h) $(gsutil_h) \
  1133.   $(gxcmap_h) $(gxcspace_h) $(gxdcconv_h) $(gxdevice_h) $(gzstate_h)
  1134.  
  1135. gscoord.$(OBJ): gscoord.c $(GXERR) $(math__h) \
  1136.   $(gsccode_h) $(gxcoord_h) $(gxdevice_h) $(gxfarith_h) $(gxfixed_h) $(gxfont_h) \
  1137.   $(gxmatrix_h) $(gxpath_h) $(gzstate_h)
  1138.  
  1139. gsdevice.$(OBJ): gsdevice.c $(GXERR) $(ctype__h) $(memory__h) $(string__h) $(gp_h)\
  1140.  $(gscdefs_h) $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstruct_h)\
  1141.  $(gxcmap_h) $(gxdevice_h) $(gxdevmem_h) $(gzstate_h)
  1142.  
  1143. gsdevmem.$(OBJ): gsdevmem.c $(GXERR) $(math__h) $(memory__h) \
  1144.   $(gxarith_h) $(gxdevice_h) $(gxdevmem_h)
  1145.  
  1146. gsdparam.$(OBJ): gsdparam.c $(GXERR) $(memory__h) $(string__h) \
  1147.   $(gsparam_h) $(gxdevice_h) $(gxfixed_h)
  1148.  
  1149. gsfont.$(OBJ): gsfont.c $(GXERR) $(memory__h)\
  1150.  $(gschar_h) $(gsstruct_h) \
  1151.  $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxfont_h) $(gxfcache_h)\
  1152.  $(gzstate_h)
  1153.  
  1154. gsht.$(OBJ): gsht.c $(GXERR) $(memory__h)\
  1155.  $(gsstruct_h) $(gsutil_h) $(gxarith_h) $(gxdevice_h) $(gzht_h) $(gzstate_h)
  1156.  
  1157. gshtscr.$(OBJ): gshtscr.c $(GXERR) $(math__h) \
  1158.   $(gsstruct_h) $(gxarith_h) $(gxdevice_h) $(gzht_h) $(gzstate_h)
  1159.  
  1160. gsimage.$(OBJ): gsimage.c $(GXERR) $(memory__h)\
  1161.   $(gscspace_h) $(gsimage_h) $(gsmatrix_h) $(gsstruct_h) \
  1162.   $(gxarith_h) $(gxdevice_h) $(gzstate_h)
  1163.  
  1164. gsimpath.$(OBJ): gsimpath.c $(GXERR) \
  1165.   $(gsmatrix_h) $(gsstate_h) $(gspath_h)
  1166.  
  1167. gsinit.$(OBJ): gsinit.c $(memory__h) $(stdio__h) \
  1168.   $(gdebug_h) $(gp_h) $(gscdefs_h) $(gslib_h) $(gsmemory_h)
  1169.  
  1170. gsiodev.$(OBJ): gsiodev.c $(GXERR) $(errno__h) $(string__h) \
  1171.   $(gp_h) $(gsparam_h) $(gxiodev_h)
  1172.  
  1173. gsline.$(OBJ): gsline.c $(GXERR) $(math__h) $(memory__h)\
  1174.  $(gsline_h) $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gzline_h)
  1175.  
  1176. gsmatrix.$(OBJ): gsmatrix.c $(GXERR) $(math__h) \
  1177.   $(gxfarith_h) $(gxfixed_h) $(gxmatrix_h)
  1178.  
  1179. gspaint.$(OBJ): gspaint.c $(GXERR) $(math__h) $(gpcheck_h)\
  1180.  $(gspaint_h) $(gspath_h) $(gsropt_h)\
  1181.  $(gxcpath_h) $(gxdevmem_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gxpaint_h)\
  1182.  $(gzpath_h) $(gzstate_h)
  1183.  
  1184. gsparam.$(OBJ): gsparam.c $(GXERR) $(memory__h) $(string__h)\
  1185.  $(gsparam_h) $(gsstruct_h)
  1186.  
  1187. gspath.$(OBJ): gspath.c $(GXERR) \
  1188.   $(gscoord_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  1189.   $(gzcpath_h) $(gzpath_h) $(gzstate_h)
  1190.  
  1191. gsstate.$(OBJ): gsstate.c $(GXERR) $(memory__h)\
  1192.  $(gscie_h) $(gscolor2_h) $(gscoord_h) $(gspath_h) $(gsstruct_h) $(gsutil_h) \
  1193.  $(gxcmap_h) $(gxcspace_h) $(gxdevice_h) $(gxpcache_h) \
  1194.  $(gzstate_h) $(gzht_h) $(gzline_h) $(gzpath_h) $(gzcpath_h)
  1195.  
  1196. ###### The internal devices
  1197.  
  1198. ### The built-in device implementations:
  1199.  
  1200. # The bounding box device is not normally a free-standing device.
  1201. # To configure it as one for testing, change SETMOD to SETDEV, and also
  1202. # define TEST in gdevbbox.c.
  1203. bbox.dev: $(LIB_MAK) $(ECHOGS_XE) gdevbbox.$(OBJ)
  1204.     $(SETMOD) bbox gdevbbox.$(OBJ)
  1205.  
  1206. gdevbbox.$(OBJ): gdevbbox.c $(GXERR) $(math__h) $(memory__h) \
  1207.   $(gdevbbox_h) $(gsdevice_h) $(gsparam_h) \
  1208.   $(gxcpath_h) $(gxdevice_h) $(gxistate_h) $(gxpaint_h) $(gxpath_h)
  1209.  
  1210. gdevddrw.$(OBJ): gdevddrw.c $(GXERR) $(math__h) $(gpcheck_h) \
  1211.   $(gxdcolor_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h)
  1212.  
  1213. gdevdflt.$(OBJ): gdevdflt.c $(GXERR) $(gpcheck_h)\
  1214.  $(gsbittab_h) $(gsropt_h)\
  1215.  $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h)
  1216.  
  1217. gdevnfwd.$(OBJ): gdevnfwd.c $(GX) \
  1218.   $(gxdevice_h)
  1219.  
  1220. # The render/RGB device is only here as an example, but we can configure
  1221. # it as a real device for testing.
  1222. rrgb.dev: $(LIB_MAK) $(ECHOGS_XE) gdevrrgb.$(OBJ) page.dev
  1223.     $(SETPDEV) rrgb gdevrrgb.$(OBJ)
  1224.  
  1225. gdevrrgb.$(OBJ): gdevrrgb.c $(AK)\
  1226.  $(gdevprn_h)
  1227.  
  1228. ### The memory devices:
  1229.  
  1230. gdevabuf.$(OBJ): gdevabuf.c $(GXERR) $(memory__h)\
  1231.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1232.  
  1233. gdevmem.$(OBJ): gdevmem.c $(GXERR) $(memory__h)\
  1234.  $(gsstruct_h) $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1235.  
  1236. gdevm1.$(OBJ): gdevm1.c $(GX) $(memory__h) $(gsrop_h)\
  1237.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1238.  
  1239. gdevm2.$(OBJ): gdevm2.c $(GX) $(memory__h)\
  1240.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1241.  
  1242. gdevm4.$(OBJ): gdevm4.c $(GX) $(memory__h)\
  1243.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1244.  
  1245. gdevm8.$(OBJ): gdevm8.c $(GX) $(memory__h)\
  1246.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1247.  
  1248. gdevm16.$(OBJ): gdevm16.c $(GX) $(memory__h)\
  1249.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1250.  
  1251. gdevm24.$(OBJ): gdevm24.c $(GX) $(memory__h)\
  1252.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1253.  
  1254. gdevm32.$(OBJ): gdevm32.c $(GX) $(memory__h)\
  1255.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1256.  
  1257. gdevmpla.$(OBJ): gdevmpla.c $(GX) $(memory__h)\
  1258.  $(gxdevice_h) $(gxdevmem_h) $(gdevmem_h)
  1259.  
  1260. # Create a pseudo-"feature" for the entire graphics library.
  1261.  
  1262. LIB1s=gsalloc.$(OBJ) gsbitops.$(OBJ) gsbittab.$(OBJ)
  1263. LIB2s=gschar.$(OBJ) gscolor.$(OBJ) gscoord.$(OBJ) gsdevice.$(OBJ) gsdevmem.$(OBJ)
  1264. LIB3s=gsdparam.$(OBJ) gsfont.$(OBJ) gsht.$(OBJ) gshtscr.$(OBJ)
  1265. LIB4s=gsimage.$(OBJ) gsimpath.$(OBJ) gsinit.$(OBJ) gsiodev.$(OBJ)
  1266. LIB5s=gsline.$(OBJ) gsmatrix.$(OBJ) gsmemory.$(OBJ) gsmisc.$(OBJ)
  1267. LIB6s=gspaint.$(OBJ) gsparam.$(OBJ) gspath.$(OBJ) gsstate.$(OBJ) gsutil.$(OBJ)
  1268. LIB1x=gxacpath.$(OBJ) gxbcache.$(OBJ)
  1269. LIB2x=gxccache.$(OBJ) gxccman.$(OBJ) gxcht.$(OBJ) gxcmap.$(OBJ) gxcpath.$(OBJ)
  1270. LIB3x=gxdcconv.$(OBJ) gxdcolor.$(OBJ) gxdither.$(OBJ) gxfill.$(OBJ) gxht.$(OBJ)
  1271. LIB4x=gximage.$(OBJ) gximage0.$(OBJ) gximage1.$(OBJ) gximage2.$(OBJ)
  1272. LIB5x=gxpaint.$(OBJ) gxpath.$(OBJ) gxpath2.$(OBJ) gxpcopy.$(OBJ)
  1273. LIB6x=gxpdash.$(OBJ) gxpflat.$(OBJ) gxsample.$(OBJ) gxstroke.$(OBJ)
  1274. LIB1d=gdevabuf.$(OBJ) gdevddrw.$(OBJ) gdevdflt.$(OBJ) gdevnfwd.$(OBJ)
  1275. LIB2d=gdevmem.$(OBJ) gdevm1.$(OBJ) gdevm2.$(OBJ) gdevm4.$(OBJ) gdevm8.$(OBJ)
  1276. LIB3d=gdevm16.$(OBJ) gdevm24.$(OBJ) gdevm32.$(OBJ) gdevmpla.$(OBJ)
  1277. LIBs=$(LIB1s) $(LIB2s) $(LIB3s) $(LIB4s) $(LIB5s) $(LIB6s)
  1278. LIBx=$(LIB1x) $(LIB2x) $(LIB3x) $(LIB4x) $(LIB5x) $(LIB6x)
  1279. LIBd=$(LIB1d) $(LIB2d) $(LIB3d)
  1280. LIB_ALL=$(LIBs) $(LIBx) $(LIBd)
  1281. libs.dev: $(LIB_MAK) $(ECHOGS_XE) $(LIBs)
  1282.     $(EXP)echogs -w libs.dev $(LIB1s)
  1283.     $(EXP)echogs -a libs.dev $(LIB2s)
  1284.     $(EXP)echogs -a libs.dev $(LIB3s)
  1285.     $(EXP)echogs -a libs.dev $(LIB4s)
  1286.     $(EXP)echogs -a libs.dev $(LIB5s)
  1287.     $(EXP)echogs -a libs.dev $(LIB6s)
  1288.     $(ADDMOD) libs -init gscolor
  1289.  
  1290. libx.dev: $(LIB_MAK) $(ECHOGS_XE) $(LIBx)
  1291.     $(EXP)echogs -w libx.dev $(LIB1x)
  1292.     $(EXP)echogs -a libx.dev $(LIB2x)
  1293.     $(EXP)echogs -a libx.dev $(LIB3x)
  1294.     $(EXP)echogs -a libx.dev $(LIB4x)
  1295.     $(EXP)echogs -a libx.dev $(LIB5x)
  1296.     $(EXP)echogs -a libx.dev $(LIB6x)
  1297.     $(ADDMOD) libx -init gximage1 gximage2
  1298.  
  1299. libd.dev: $(LIB_MAK) $(ECHOGS_XE) $(LIBd)
  1300.     $(EXP)echogs -w libd.dev $(LIB1d)
  1301.     $(EXP)echogs -a libd.dev $(LIB2d)
  1302.     $(EXP)echogs -a libd.dev $(LIB3d)
  1303.  
  1304. # roplib shouldn't be required....
  1305. libcore.dev: $(LIB_MAK) $(ECHOGS_XE)\
  1306.   libs.dev libx.dev libd.dev iscale.dev roplib.dev
  1307.     $(SETMOD) libcore
  1308.     $(ADDMOD) libcore -dev nullpage
  1309.     $(ADDMOD) libcore -include libs libx libd iscale roplib
  1310.  
  1311. # ---------------- Stream support ---------------- #
  1312. # Currently the only things in the library that use this are clists
  1313. # and file streams.
  1314.  
  1315. stream_h=stream.h $(scommon_h)
  1316.  
  1317. stream.$(OBJ): stream.c $(AK) $(stdio__h) $(memory__h) \
  1318.   $(gdebug_h) $(gpcheck_h) $(stream_h) $(strimpl_h)
  1319.  
  1320. # ---------------- File streams ---------------- #
  1321. # Currently only the high-level drivers use these, but more drivers will
  1322. # probably use them eventually.
  1323.  
  1324. sfile_=sfx$(FILE_IMPLEMENTATION).$(OBJ) stream.$(OBJ)
  1325. sfile.dev: $(LIB_MAK) $(ECHOGS_XE) $(sfile_)
  1326.     $(SETMOD) sfile $(sfile_)
  1327.  
  1328. sfxstdio.$(OBJ): sfxstdio.c $(AK) $(stdio__h) $(memory__h) \
  1329.   $(gdebug_h) $(gpcheck_h) $(stream_h) $(strimpl_h)
  1330.  
  1331. sfxfd.$(OBJ): sfxfd.c $(AK) $(stdio__h) $(errno__h) $(memory__h) \
  1332.   $(gdebug_h) $(gpcheck_h) $(stream_h) $(strimpl_h)
  1333.  
  1334. sfxboth.$(OBJ): sfxboth.c sfxstdio.c sfxfd.c
  1335.  
  1336. # ---------------- CCITTFax filters ---------------- #
  1337. # These are used by clists, some drivers, and Level 2 in general.
  1338.  
  1339. cfe_=scfe.$(OBJ) scfetab.$(OBJ) shc.$(OBJ)
  1340. cfe.dev: $(LIB_MAK) $(ECHOGS_XE) $(cfe_)
  1341.     $(SETMOD) cfe $(cfe_)
  1342.  
  1343. scfe.$(OBJ): scfe.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1344.   $(scf_h) $(strimpl_h) $(scfx_h)
  1345.  
  1346. scfetab.$(OBJ): scfetab.c $(AK) $(std_h) $(scommon_h) $(scf_h)
  1347.  
  1348. shc.$(OBJ): shc.c $(AK) $(std_h) $(scommon_h) $(shc_h)
  1349.  
  1350. cfd_=scfd.$(OBJ) scfdtab.$(OBJ)
  1351. cfd.dev: $(LIB_MAK) $(ECHOGS_XE) $(cfd_)
  1352.     $(SETMOD) cfd $(cfd_)
  1353.  
  1354. scfd.$(OBJ): scfd.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1355.   $(scf_h) $(strimpl_h) $(scfx_h)
  1356.  
  1357. scfdtab.$(OBJ): scfdtab.c $(AK) $(std_h) $(scommon_h) $(scf_h)
  1358.  
  1359. # ---------------- DCT (JPEG) filters ---------------- #
  1360. # These are used by Level 2, and by the JPEG-writing driver.
  1361.  
  1362. # Common code
  1363.  
  1364. sdctc_=sdctc.$(OBJ) sjpegc.$(OBJ)
  1365.  
  1366. sdctc.$(OBJ): sdctc.c $(AK) $(stdio__h)\
  1367.  $(sdct_h) $(strimpl_h)\
  1368.  jpeglib.h
  1369.  
  1370. sjpegc.$(OBJ): sjpegc.c $(AK) $(stdio__h) $(string__h) $(gx_h)\
  1371.  $(gserrors_h) $(sjpeg_h) $(sdct_h) $(strimpl_h) \
  1372.  jerror.h jpeglib.h
  1373.  
  1374. # Encoding (compression)
  1375.  
  1376. sdcte_=$(sdctc_) sdcte.$(OBJ) sjpege.$(OBJ)
  1377. sdcte.dev: $(LIB_MAK) $(ECHOGS_XE) $(sdcte_) jpege.dev
  1378.     $(SETMOD) sdcte $(sdcte_)
  1379.     $(ADDMOD) sdcte -include jpege
  1380.  
  1381. sdcte.$(OBJ): sdcte.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1382.   $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  1383.   jerror.h jpeglib.h
  1384.  
  1385. sjpege.$(OBJ): sjpege.c $(AK) $(stdio__h) $(string__h) $(gx_h)\
  1386.  $(gserrors_h) $(sjpeg_h) $(sdct_h) $(strimpl_h) \
  1387.  jerror.h jpeglib.h
  1388.  
  1389. # Decoding (decompression)
  1390.  
  1391. sdctd_=$(sdctc_) sdctd.$(OBJ) sjpegd.$(OBJ)
  1392. sdctd.dev: $(LIB_MAK) $(ECHOGS_XE) $(sdctd_) jpegd.dev
  1393.     $(SETMOD) sdctd $(sdctd_)
  1394.     $(ADDMOD) sdctd -include jpegd
  1395.  
  1396. sdctd.$(OBJ): sdctd.c $(AK) $(memory__h) $(stdio__h) $(gdebug_h)\
  1397.   $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  1398.   jerror.h jpeglib.h
  1399.  
  1400. sjpegd.$(OBJ): sjpegd.c $(AK) $(stdio__h) $(string__h) $(gx_h)\
  1401.  $(gserrors_h) $(sjpeg_h) $(sdct_h) $(strimpl_h)\
  1402.  jerror.h jpeglib.h
  1403.  
  1404. # ---------------- LZW filters ---------------- #
  1405. # These are used by Level 2 in general.
  1406.  
  1407. slzwe_=slzwce
  1408. #slzwe_=slzwe
  1409. lzwe_=$(slzwe_).$(OBJ) slzwc.$(OBJ)
  1410. lzwe.dev: $(LIB_MAK) $(ECHOGS_XE) $(lzwe_)
  1411.     $(SETMOD) lzwe $(lzwe_)
  1412.  
  1413. # We need slzwe.dev as a synonym for lzwe.dev for BAND_LIST_STORAGE = memory.
  1414. slzwe.dev: lzwe.dev
  1415.     $(CP_) lzwe.dev slzwe.dev
  1416.  
  1417. slzwce.$(OBJ): slzwce.c $(AK) $(stdio__h) $(gdebug_h)\
  1418.   $(slzwx_h) $(strimpl_h)
  1419.  
  1420. slzwe.$(OBJ): slzwe.c $(AK) $(stdio__h) $(gdebug_h)\
  1421.   $(slzwx_h) $(strimpl_h)
  1422.  
  1423. slzwc.$(OBJ): slzwc.c $(AK) $(std_h)\
  1424.   $(slzwx_h) $(strimpl_h)
  1425.  
  1426. lzwd_=slzwd.$(OBJ) slzwc.$(OBJ)
  1427. lzwd.dev: $(LIB_MAK) $(ECHOGS_XE) $(lzwd_)
  1428.     $(SETMOD) lzwd $(lzwd_)
  1429.  
  1430. # We need slzwd.dev as a synonym for lzwd.dev for BAND_LIST_STORAGE = memory.
  1431. slzwd.dev: lzwd.dev
  1432.     $(CP_) lzwd.dev slzwd.dev
  1433.  
  1434. slzwd.$(OBJ): slzwd.c $(AK) $(stdio__h) $(gdebug_h)\
  1435.   $(slzwx_h) $(strimpl_h)
  1436.  
  1437. # ---------------- PCX decoding filter ---------------- #
  1438. # This is an adhoc filter not used by anything in the standard configuration.
  1439.  
  1440. pcxd_=spcxd.$(OBJ)
  1441. pcxd.dev: $(LIB_MAK) $(ECHOGS_XE) $(pcxd_)
  1442.     $(SETMOD) pcxd $(pcxd_)
  1443.  
  1444. spcxd.$(OBJ): spcxd.c $(AK) $(stdio__h) $(memory__h) \
  1445.   $(spcxx_h) $(strimpl_h)
  1446.  
  1447. # ---------------- Pixel-difference filters ---------------- #
  1448. # The Predictor facility of the LZW and Flate filters uses these.
  1449.  
  1450. pdiff_=spdiff.$(OBJ)
  1451. pdiff.dev: $(LIB_MAK) $(ECHOGS_XE) $(pdiff_)
  1452.     $(SETMOD) pdiff $(pdiff_)
  1453.  
  1454. spdiff.$(OBJ): spdiff.c $(AK) $(stdio__h)\
  1455.  $(spdiffx_h) $(strimpl_h)
  1456.  
  1457. # ---------------- PNG pixel prediction filters ---------------- #
  1458. # The Predictor facility of the LZW and Flate filters uses these.
  1459.  
  1460. pngp_=spngp.$(OBJ)
  1461. pngp.dev: $(LIB_MAK) $(ECHOGS_XE) $(pngp_)
  1462.     $(SETMOD) pngp $(pngp_)
  1463.  
  1464. spngp.$(OBJ): spngp.c $(AK) $(memory__h)\
  1465.   $(spngpx_h) $(strimpl_h)
  1466.  
  1467. # ---------------- RunLength filters ---------------- #
  1468. # These are used by clists and also by Level 2 in general.
  1469.  
  1470. rle_=srle.$(OBJ)
  1471. rle.dev: $(LIB_MAK) $(ECHOGS_XE) $(rle_)
  1472.     $(SETMOD) rle $(rle_)
  1473.  
  1474. srle.$(OBJ): srle.c $(AK) $(stdio__h) $(memory__h) \
  1475.   $(srlx_h) $(strimpl_h)
  1476.  
  1477. rld_=srld.$(OBJ)
  1478. rld.dev: $(LIB_MAK) $(ECHOGS_XE) $(rld_)
  1479.     $(SETMOD) rld $(rld_)
  1480.  
  1481. srld.$(OBJ): srld.c $(AK) $(stdio__h) $(memory__h) \
  1482.   $(srlx_h) $(strimpl_h)
  1483.  
  1484. # ---------------- String encoding/decoding filters ---------------- #
  1485. # These are used by the PostScript and PDF writers, and also by the
  1486. # PostScript interpreter.
  1487.  
  1488. scantab.$(OBJ): scantab.c $(AK) $(stdpre_h)\
  1489.  $(scanchar_h) $(scommon_h)
  1490.  
  1491. sfilter2.$(OBJ): sfilter2.c $(AK) $(memory__h) $(stdio__h)\
  1492.  $(sa85x_h) $(scanchar_h) $(sbtx_h) $(strimpl_h)
  1493.  
  1494. sstring.$(OBJ): sstring.c $(AK) $(stdio__h) $(memory__h) $(string__h)\
  1495.  $(scanchar_h) $(sstring_h) $(strimpl_h)
  1496.  
  1497. # ---------------- zlib filters ---------------- #
  1498. # These are used by clists and are also available as filters.
  1499.  
  1500. szlibc_=szlibc.$(OBJ)
  1501.  
  1502. szlibc.$(OBJ): szlibc.c $(AK) $(std_h) \
  1503.   $(gsmemory_h) $(gsstruct_h) $(gstypes_h) $(strimpl_h) $(szlibx_h)
  1504.     $(CCCZ) szlibc.c
  1505.  
  1506. szlibe_=$(szlibc_) szlibe.$(OBJ)
  1507. szlibe.dev: $(LIB_MAK) $(ECHOGS_XE) zlibe.dev $(szlibe_)
  1508.     $(SETMOD) szlibe $(szlibe_)
  1509.     $(ADDMOD) szlibe -include zlibe
  1510.  
  1511. szlibe.$(OBJ): szlibe.c $(AK) $(std_h) \
  1512.   $(gsmemory_h) $(strimpl_h) $(szlibx_h)
  1513.     $(CCCZ) szlibe.c
  1514.  
  1515. szlibd_=$(szlibc_) szlibd.$(OBJ)
  1516. szlibd.dev: $(LIB_MAK) $(ECHOGS_XE) zlibd.dev $(szlibd_)
  1517.     $(SETMOD) szlibd $(szlibd_)
  1518.     $(ADDMOD) szlibd -include zlibd
  1519.  
  1520. szlibd.$(OBJ): szlibd.c $(AK) $(std_h) \
  1521.   $(gsmemory_h) $(strimpl_h) $(szlibx_h)
  1522.     $(CCCZ) szlibd.c
  1523.  
  1524. # ---------------- Command lists ---------------- #
  1525.  
  1526. gxcldev_h=gxcldev.h $(gxclist_h) $(gsropt_h) $(gxht_h) $(gxtmap_h) $(gxdht_h)\
  1527.   $(strimpl_h) $(scfx_h) $(srlx_h)
  1528. gxclpage_h=gxclpage.h $(gxclio_h)
  1529. gxclpath_h=gxclpath.h $(gxfixed_h)
  1530.  
  1531. # Command list package.  Currently the higher-level facilities are required,
  1532. # but eventually they will be optional.
  1533. clist.dev: $(LIB_MAK) $(ECHOGS_XE) clbase.dev clpath.dev
  1534.     $(SETMOD) clist -include clbase clpath
  1535.  
  1536. # Base command list facility.
  1537. clbase1_=gxclist.$(OBJ) gxclbits.$(OBJ) gxclpage.$(OBJ)
  1538. clbase2_=gxclread.$(OBJ) gxclrect.$(OBJ) stream.$(OBJ)
  1539. clbase_=$(clbase1_) $(clbase2_)
  1540. clbase.dev: $(LIB_MAK) $(ECHOGS_XE) $(clbase_) cl$(BAND_LIST_STORAGE).dev \
  1541.   cfe.dev cfd.dev rle.dev rld.dev
  1542.     $(SETMOD) clbase $(clbase1_)
  1543.     $(ADDMOD) clbase -obj $(clbase2_)
  1544.     $(ADDMOD) clbase -include cl$(BAND_LIST_STORAGE) cfe cfd rle rld
  1545.  
  1546. gdevht_h=gdevht.h $(gzht_h)
  1547.  
  1548. gdevht.$(OBJ): gdevht.c $(GXERR) \
  1549.   $(gdevht_h) $(gxdcconv_h) $(gxdcolor_h) $(gxdevice_h) $(gxdither_h)
  1550.  
  1551. gxclist.$(OBJ): gxclist.c $(GXERR) $(memory__h) $(string__h)\
  1552.  $(gp_h) $(gpcheck_h)\
  1553.  $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  1554.  
  1555. gxclbits.$(OBJ): gxclbits.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1556.  $(gsbitops_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h) $(gxfmap_h)
  1557.  
  1558. gxclpage.$(OBJ): gxclpage.c $(AK)\
  1559.  $(gdevprn_h) $(gxcldev_h) $(gxclpage_h)
  1560.  
  1561. # (gxclread shouldn't need gxclpath.h)
  1562. gxclread.$(OBJ): gxclread.c $(GXERR) $(memory__h) $(gp_h) $(gpcheck_h)\
  1563.  $(gdevht_h)\
  1564.  $(gsbitops_h) $(gscoord_h) $(gsdevice_h) $(gsstate_h)\
  1565.  $(gxcldev_h) $(gxclpath_h) $(gxcmap_h) $(gxcspace_h) $(gxdcolor_h)\
  1566.  $(gxdevice_h) $(gxdevmem_h)\
  1567.  $(gxhttile_h) $(gxpaint_h) $(gzacpath_h) $(gzcpath_h) $(gzpath_h)\
  1568.  $(stream_h) $(strimpl_h)
  1569.  
  1570. gxclrect.$(OBJ): gxclrect.c $(GXERR)\
  1571.  $(gsutil_h) $(gxcldev_h) $(gxdevice_h) $(gxdevmem_h)
  1572.  
  1573. # Higher-level command list facilities.
  1574. clpath_=gxclimag.$(OBJ) gxclpath.$(OBJ)
  1575. clpath.dev: $(LIB_MAK) $(ECHOGS_XE) $(clpath_) psl2cs.dev
  1576.     $(SETMOD) clpath $(clpath_)
  1577.     $(ADDMOD) clpath -include psl2cs
  1578.     $(ADDMOD) clpath -init climag clpath
  1579.  
  1580. gxclimag.$(OBJ): gxclimag.c $(GXERR) $(math__h) $(memory__h)\
  1581.  $(gscspace_h)\
  1582.  $(gxarith_h) $(gxcldev_h) $(gxclpath_h) $(gxdevice_h) $(gxdevmem_h)\
  1583.  $(gxfmap_h)\
  1584.  $(siscale_h) $(strimpl_h)
  1585.  
  1586. gxclpath.$(OBJ): gxclpath.c $(GXERR) $(math__h) $(memory__h) $(gpcheck_h)\
  1587.  $(gxcldev_h) $(gxclpath_h) $(gxcolor2_h) $(gxdevice_h) $(gxdevmem_h)\
  1588.  $(gxpaint_h) \
  1589.  $(gzcpath_h) $(gzpath_h)
  1590.  
  1591. # Implement band lists on files.
  1592.  
  1593. clfile_=gxclfile.$(OBJ)
  1594. clfile.dev: $(LIB_MAK) $(ECHOGS_XE) $(clfile_)
  1595.     $(SETMOD) clfile $(clfile_)
  1596.  
  1597. gxclfile.$(OBJ): gxclfile.c $(stdio__h) $(string__h) \
  1598.   $(gp_h) $(gsmemory_h) $(gserror_h) $(gserrors_h) $(gxclio_h)
  1599.  
  1600. # Implement band lists in memory (RAM).
  1601.  
  1602. clmemory_=gxclmem.$(OBJ) gxcl$(BAND_LIST_COMPRESSOR).$(OBJ)
  1603. clmemory.dev: $(LIB_MAK) $(ECHOGS_XE) $(clmemory_) s$(BAND_LIST_COMPRESSOR)e.dev s$(BAND_LIST_COMPRESSOR)d.dev
  1604.     $(SETMOD) clmemory $(clmemory_)
  1605.     $(ADDMOD) clmemory -include s$(BAND_LIST_COMPRESSOR)e s$(BAND_LIST_COMPRESSOR)d
  1606.     $(ADDMOD) clmemory -init cl_$(BAND_LIST_COMPRESSOR)
  1607.  
  1608. gxclmem_h=gxclmem.h $(gxclio_h) $(strimpl_h)
  1609.  
  1610. gxclmem.$(OBJ): gxclmem.c $(GXERR) $(LIB_MAK) $(memory__h) \
  1611.   $(gxclmem_h)
  1612.  
  1613. # Implement the compression method for RAM-based band lists.
  1614.  
  1615. gxcllzw.$(OBJ): gxcllzw.c $(std_h)\
  1616.  $(gsmemory_h) $(gstypes_h) $(gxclmem_h) $(slzwx_h)
  1617.  
  1618. gxclzlib.$(OBJ): gxclzlib.c $(std_h)\
  1619.  $(gsmemory_h) $(gstypes_h) $(gxclmem_h) $(szlibx_h)
  1620.     $(CCCZ) gxclzlib.c
  1621.  
  1622. # ---------------- Page devices ---------------- #
  1623. # We include this here, rather than in devs.mak, because it is more like
  1624. # a feature than a simple device.
  1625.  
  1626. page_=gdevprn.$(OBJ)
  1627. page.dev: $(LIB_MAK) $(ECHOGS_XE) $(page_) clist.dev
  1628.     $(SETMOD) page $(page_)
  1629.     $(ADDMOD) page -include clist
  1630.  
  1631. gdevprn.$(OBJ): gdevprn.c $(ctype__h) \
  1632.   $(gdevprn_h) $(gp_h) $(gsparam_h) $(gxclio_h)
  1633.  
  1634. # ---------------- Vector devices ---------------- #
  1635. # We include this here for the same reasons as page.dev.
  1636.  
  1637. gdevvec_h=gdevvec.h $(gdevbbox_h) $(gsropt_h) $(gxdevice_h) $(gxistate_h) $(stream_h)
  1638.  
  1639. vector_=gdevvec.$(OBJ)
  1640. vector.dev: $(LIB_MAK) $(ECHOGS_XE) $(vector_) bbox.dev sfile.dev
  1641.     $(SETMOD) vector $(vector_)
  1642.     $(ADDMOD) vector -include bbox sfile
  1643.  
  1644. gdevvec.$(OBJ): gdevvec.c $(GXERR) $(math__h) $(memory__h) $(string__h)\
  1645.  $(gdevvec_h) $(gp_h) $(gscspace_h) $(gsparam_h) $(gsutil_h)\
  1646.  $(gxdcolor_h) $(gxfixed_h) $(gxpaint_h)\
  1647.  $(gzcpath_h) $(gzpath_h)
  1648.  
  1649. # ---------------- Image scaling filter ---------------- #
  1650.  
  1651. iscale_=siscale.$(OBJ)
  1652. iscale.dev: $(LIB_MAK) $(ECHOGS_XE) $(iscale_)
  1653.     $(SETMOD) iscale $(iscale_)
  1654.  
  1655. siscale.$(OBJ): siscale.c $(AK) $(math__h) $(memory__h) $(stdio__h) \
  1656.   $(siscale_h) $(strimpl_h)
  1657.  
  1658. # ---------------- RasterOp et al ---------------- #
  1659. # Currently this module is required, but it should be optional.
  1660.  
  1661. roplib_=gdevmrop.$(OBJ) gsrop.$(OBJ) gsroptab.$(OBJ)
  1662. roplib.dev: $(LIB_MAK) $(ECHOGS_XE) $(roplib_)
  1663.     $(SETMOD) roplib $(roplib_)
  1664.     $(ADDMOD) roplib -init roplib
  1665.  
  1666. gdevrun.$(OBJ): gdevrun.c $(GXERR) $(memory__h) \
  1667.   $(gxdevice_h) $(gxdevmem_h)
  1668.  
  1669. gdevmrop.$(OBJ): gdevmrop.c $(GXERR) $(memory__h) \
  1670.   $(gsbittab_h) $(gsropt_h) \
  1671.   $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h) $(gxdevrop_h) \
  1672.   $(gdevmrop_h)
  1673.  
  1674. gsrop.$(OBJ): gsrop.c $(GXERR) \
  1675.   $(gsrop_h) $(gzstate_h)
  1676.  
  1677. gsroptab.$(OBJ): gsroptab.c $(stdpre_h) $(gsropt_h)
  1678.     $(CCLEAF) gsroptab.c
  1679.  
  1680. # -------- Composite (PostScript Type 0) font support -------- #
  1681.  
  1682. cmaplib_=gsfcmap.$(OBJ)
  1683. cmaplib.dev: $(LIB_MAK) $(ECHOGS_XE) $(cmaplib_)
  1684.     $(SETMOD) cmaplib $(cmaplib_)
  1685.  
  1686. gsfcmap.$(OBJ): gsfcmap.c $(GXERR)\
  1687.  $(gsstruct_h) $(gxfcmap_h)
  1688.  
  1689. psf0lib_=gschar0.$(OBJ) gsfont0.$(OBJ)
  1690. psf0lib.dev: $(LIB_MAK) $(ECHOGS_XE) cmaplib.dev $(psf0lib_)
  1691.     $(SETMOD) psf0lib $(psf0lib_)
  1692.     $(ADDMOD) psf0lib -include cmaplib
  1693.  
  1694. gschar0.$(OBJ): gschar0.c $(GXERR) $(memory__h)\
  1695.  $(gsstruct_h) $(gxfixed_h) $(gxdevice_h) $(gxdevmem_h)\
  1696.  $(gsfcmap_h) $(gxfont_h) $(gxfont0_h) $(gxchar_h)
  1697.  
  1698. gsfont0.$(OBJ): gsfont0.c $(GXERR) $(memory__h)\
  1699.  $(gsmatrix_h) $(gsstruct_h) $(gxfixed_h) $(gxdevmem_h) $(gxfcache_h)\
  1700.  $(gxfont_h) $(gxfont0_h) $(gxchar_h) $(gxdevice_h)
  1701.  
  1702. # ---------------- Pattern color ---------------- #
  1703.  
  1704. patlib_=gspcolor.$(OBJ) gxclip2.$(OBJ) gxpcmap.$(OBJ)
  1705. patlib.dev: $(LIB_MAK) $(ECHOGS_XE) cmyklib.dev psl2cs.dev $(patlib_)
  1706.     $(SETMOD) patlib -include cmyklib psl2cs
  1707.     $(ADDMOD) patlib -obj $(patlib_)
  1708.  
  1709. gspcolor.$(OBJ): gspcolor.c $(GXERR) $(math__h) \
  1710.   $(gsimage_h) $(gspath_h) $(gsrop_h) $(gsstruct_h) $(gsutil_h) \
  1711.   $(gxarith_h) $(gxcolor2_h) $(gxcoord_h) $(gxclip2_h) $(gxcspace_h) \
  1712.   $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h) \
  1713.   $(gxfixed_h) $(gxmatrix_h) $(gxpath_h) $(gxpcolor_h) $(gzstate_h)
  1714.  
  1715. gxclip2.$(OBJ): gxclip2.c $(GXERR) $(memory__h) \
  1716.   $(gsstruct_h) $(gxclip2_h) $(gxdevice_h) $(gxdevmem_h)
  1717.  
  1718. gxpcmap.$(OBJ): gxpcmap.c $(GXERR) $(math__h) $(memory__h)\
  1719.  $(gsstruct_h) $(gsutil_h)\
  1720.  $(gxcolor2_h) $(gxcspace_h) $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h)\
  1721.  $(gxfixed_h) $(gxmatrix_h) $(gxpcolor_h)\
  1722.  $(gzcpath_h) $(gzpath_h) $(gzstate_h)
  1723.  
  1724. # ---------------- PostScript Type 1 (and Type 4) fonts ---------------- #
  1725.  
  1726. type1lib_=gxtype1.$(OBJ) gxhint1.$(OBJ) gxhint2.$(OBJ) gxhint3.$(OBJ)
  1727.  
  1728. gscrypt1_h=gscrypt1.h
  1729. gstype1_h=gstype1.h
  1730. gxfont1_h=gxfont1.h
  1731. gxop1_h=gxop1.h
  1732. gxtype1_h=gxtype1.h $(gscrypt1_h) $(gstype1_h) $(gxop1_h)
  1733.  
  1734. gxtype1.$(OBJ): gxtype1.c $(GXERR) $(math__h)\
  1735.  $(gsccode_h) $(gsline_h) $(gsstruct_h)\
  1736.  $(gxarith_h) $(gxcoord_h) $(gxfixed_h) $(gxmatrix_h)\
  1737.  $(gxfont_h) $(gxfont1_h) $(gxistate_h) $(gxtype1_h)\
  1738.  $(gzpath_h)
  1739.  
  1740. gxhint1.$(OBJ): gxhint1.c $(GXERR)\
  1741.  $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1742.  $(gxfont_h) $(gxfont1_h) $(gxtype1_h)
  1743.  
  1744. gxhint2.$(OBJ): gxhint2.c $(GXERR) $(memory__h)\
  1745.  $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1746.  $(gxfont_h) $(gxfont1_h) $(gxtype1_h)
  1747.  
  1748. gxhint3.$(OBJ): gxhint3.c $(GXERR) $(math__h)\
  1749.  $(gxarith_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1750.  $(gxfont_h) $(gxfont1_h) $(gxtype1_h)\
  1751.  $(gzpath_h)
  1752.  
  1753. # Type 1 charstrings
  1754.  
  1755. psf1lib_=gstype1.$(OBJ)
  1756. psf1lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(psf1lib_) $(type1lib_)
  1757.     $(SETMOD) psf1lib $(psf1lib_)
  1758.     $(ADDMOD) psf1lib $(type1lib_)
  1759.     $(ADDMOD) psf1lib -init gstype1
  1760.  
  1761. gstype1.$(OBJ): gstype1.c $(GXERR) $(math__h) $(memory__h)\
  1762.  $(gsstruct_h)\
  1763.  $(gxarith_h) $(gxcoord_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1764.  $(gxfont_h) $(gxfont1_h) $(gxistate_h) $(gxtype1_h)\
  1765.  $(gzpath_h)
  1766.  
  1767. # Type 2 charstrings
  1768.  
  1769. psf2lib_=gstype2.$(OBJ)
  1770. psf2lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(psf2lib_) $(type1lib_)
  1771.     $(SETMOD) psf2lib $(psf2lib_)
  1772.     $(ADDMOD) psf2lib $(type1lib_)
  1773.     $(ADDMOD) psf2lib -init gstype2
  1774.  
  1775. gstype2.$(OBJ): gstype2.c $(GXERR) $(math__h) $(memory__h)\
  1776.  $(gsstruct_h)\
  1777.  $(gxarith_h) $(gxcoord_h) $(gxfixed_h) $(gxmatrix_h) $(gxchar_h)\
  1778.  $(gxfont_h) $(gxfont1_h) $(gxistate_h) $(gxtype1_h)\
  1779.  $(gzpath_h)
  1780.  
  1781. # ---------------- TrueType and PostScript Type 42 fonts ---------------- #
  1782.  
  1783. ttflib_=gstype42.$(OBJ)
  1784. ttflib.dev: $(LIB_MAK) $(ECHOGS_XE) $(ttflib_)
  1785.     $(SETMOD) ttflib $(ttflib_)
  1786.  
  1787. gxfont42_h=gxfont42.h
  1788.  
  1789. gstype42.$(OBJ): gstype42.c $(GXERR) $(memory__h) \
  1790.   $(gsccode_h) $(gsmatrix_h) $(gsstruct_h) \
  1791.   $(gxfixed_h) $(gxfont_h) $(gxfont42_h) $(gxistate_h) $(gxpath_h)
  1792.  
  1793. # -------- Level 1 color extensions (CMYK color and colorimage) -------- #
  1794.  
  1795. cmyklib_=gscolor1.$(OBJ) gsht1.$(OBJ)
  1796. cmyklib.dev: $(LIB_MAK) $(ECHOGS_XE) $(cmyklib_)
  1797.     $(SETMOD) cmyklib $(cmyklib_)
  1798.     $(ADDMOD) cmyklib -init gscolor1
  1799.  
  1800. gscolor1.$(OBJ): gscolor1.c $(GXERR) \
  1801.   $(gsccolor_h) $(gscolor1_h) $(gsstruct_h) $(gsutil_h) \
  1802.   $(gxcmap_h) $(gxcspace_h) $(gxdcconv_h) $(gxdevice_h) \
  1803.   $(gzstate_h)
  1804.  
  1805. gsht1.$(OBJ): gsht1.c $(GXERR) $(memory__h)\
  1806.  $(gsstruct_h) $(gsutil_h) $(gxdevice_h) $(gzht_h) $(gzstate_h)
  1807.  
  1808. colimlib_=gximage3.$(OBJ)
  1809. colimlib.dev: $(LIB_MAK) $(ECHOGS_XE) $(colimlib_)
  1810.     $(SETMOD) colimlib $(colimlib_)
  1811.     $(ADDMOD) colimlib -init gximage3
  1812.  
  1813. gximage3.$(OBJ): gximage3.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1814.  $(gsccolor_h) $(gspaint_h)\
  1815.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcconv_h) $(gxdcolor_h)\
  1816.  $(gxdevice_h) $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h)\
  1817.  $(gximage_h) $(gxistate_h) $(gxmatrix_h)\
  1818.  $(gzpath_h) $(gzstate_h)
  1819.  
  1820. # ---------------- HSB color ---------------- #
  1821.  
  1822. hsblib_=gshsb.$(OBJ)
  1823. hsblib.dev: $(LIB_MAK) $(ECHOGS_XE) $(hsblib_)
  1824.     $(SETMOD) hsblib $(hsblib_)
  1825.  
  1826. gshsb.$(OBJ): gshsb.c $(GX) \
  1827.   $(gscolor_h) $(gshsb_h) $(gxfrac_h)
  1828.  
  1829. # ---- Level 1 path miscellany (arcs, pathbbox, path enumeration) ---- #
  1830.  
  1831. path1lib_=gspath1.$(OBJ)
  1832. path1lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(path1lib_)
  1833.     $(SETMOD) path1lib $(path1lib_)
  1834.  
  1835. gspath1.$(OBJ): gspath1.c $(GXERR) $(math__h) \
  1836.   $(gscoord_h) $(gspath_h) $(gsstruct_h) \
  1837.   $(gxfarith_h) $(gxfixed_h) $(gxmatrix_h) \
  1838.   $(gzstate_h) $(gzpath_h)
  1839.  
  1840. # --------------- Level 2 color space and color image support --------------- #
  1841.  
  1842. psl2cs_=gscolor2.$(OBJ)
  1843. psl2cs.dev: $(LIB_MAK) $(ECHOGS_XE) $(psl2cs_)
  1844.     $(SETMOD) psl2cs $(psl2cs_)
  1845.  
  1846. gscolor2.$(OBJ): gscolor2.c $(GXERR) \
  1847.   $(gxarith_h) $(gxcolor2_h) $(gxcspace_h) $(gxfixed_h) $(gxmatrix_h) \
  1848.   $(gzstate_h)
  1849.  
  1850. psl2lib_=gximage4.$(OBJ) gximage5.$(OBJ)
  1851. psl2lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(psl2lib_) colimlib.dev psl2cs.dev
  1852.     $(SETMOD) psl2lib $(psl2lib_)
  1853.     $(ADDMOD) psl2lib -init gximage4 gximage5
  1854.     $(ADDMOD) psl2lib -include colimlib psl2cs
  1855.  
  1856. gximage4.$(OBJ): gximage4.c $(GXERR) $(memory__h) $(gpcheck_h)\
  1857.  $(gsccolor_h) $(gspaint_h)\
  1858.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
  1859.  $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h) $(gximage_h) $(gxistate_h)\
  1860.  $(gxmatrix_h)\
  1861.  $(gzpath_h)
  1862.  
  1863. gximage5.$(OBJ): gximage5.c $(GXERR) $(math__h) $(memory__h) $(gpcheck_h)\
  1864.  $(gsccolor_h) $(gspaint_h)\
  1865.  $(gxarith_h) $(gxcmap_h) $(gxcpath_h) $(gxdcolor_h) $(gxdevice_h)\
  1866.  $(gxdevmem_h) $(gxfixed_h) $(gxfrac_h) $(gximage_h) $(gxistate_h)\
  1867.  $(gxmatrix_h)\
  1868.  $(gzpath_h)
  1869.  
  1870. # ---------------- Display Postscript / Level 2 support ---------------- #
  1871.  
  1872. dps2lib_=gsdps1.$(OBJ)
  1873. dps2lib.dev: $(LIB_MAK) $(ECHOGS_XE) $(dps2lib_)
  1874.     $(SETMOD) dps2lib $(dps2lib_)
  1875.  
  1876. gsdps1.$(OBJ): gsdps1.c $(GXERR) $(math__h)\
  1877.  $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gspath2_h)\
  1878.  $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) $(gzcpath_h) $(gzpath_h) $(gzstate_h)
  1879.  
  1880. # ---------------- Display Postscript extensions ---------------- #
  1881.  
  1882. gsdps_h=gsdps.h
  1883.  
  1884. dpslib_=gsdps.$(OBJ)
  1885. dpslib.dev: $(LIB_MAK) $(ECHOGS_XE) $(dpslib_)
  1886.     $(SETMOD) dpslib $(dpslib_)
  1887.  
  1888. gsdps.$(OBJ): gsdps.c $(GX) $(gsdps_h)\
  1889.  $(gsdps_h) $(gspath_h) $(gxdevice_h) $(gzcpath_h) $(gzpath_h) $(gzstate_h)
  1890.  
  1891. # ---------------- CIE color ---------------- #
  1892.  
  1893. cielib_=gscie.$(OBJ) gxctable.$(OBJ)
  1894. cielib.dev: $(LIB_MAK) $(ECHOGS_XE) $(cielib_)
  1895.     $(SETMOD) cielib $(cielib_)
  1896.  
  1897. gscie.$(OBJ): gscie.c $(GXERR) $(math__h) \
  1898.   $(gscie_h) $(gscolor2_h) $(gsmatrix_h) $(gsstruct_h) \
  1899.   $(gxarith_h) $(gxcmap_h) $(gxcspace_h) $(gxdevice_h) $(gzstate_h)
  1900.  
  1901. gxctable.$(OBJ): gxctable.c $(GX) \
  1902.   $(gxfixed_h) $(gxfrac_h) $(gxctable_h)
  1903.  
  1904. # ---------------- Separation colors ---------------- #
  1905.  
  1906. seprlib_=gscsepr.$(OBJ)
  1907. seprlib.dev: $(LIB_MAK) $(ECHOGS_XE) $(seprlib_)
  1908.     $(SETMOD) seprlib $(seprlib_)
  1909.  
  1910. gscsepr.$(OBJ): gscsepr.c $(GXERR)\
  1911.  $(gscsepr_h) $(gsmatrix_h) $(gsrefct_h)\
  1912.  $(gxcolor2_h) $(gxcspace_h) $(gxfixed_h) $(gzstate_h)
  1913.  
  1914. # ---------------- Functions ---------------- #
  1915.  
  1916. gsdsrc_h=gsdsrc.h $(gsstruct_h)
  1917. gsfunc_h=gsfunc.h
  1918. gsfunc0_h=gsfunc0.h $(gsdsrc_h) $(gsfunc_h)
  1919. gxfunc_h=gxfunc.h $(gsfunc_h) $(gsstruct_h)
  1920.  
  1921. # Generic support, and FunctionType 0.
  1922. funclib_=gsdsrc.$(OBJ) gsfunc.$(OBJ) gsfunc0.$(OBJ)
  1923. funclib.dev: $(LIB_MAK) $(ECHOGS_XE) $(funclib_)
  1924.     $(SETMOD) funclib $(funclib_)
  1925.  
  1926. gsdsrc.$(OBJ): gsdsrc.c $(GX) $(memory__h)\
  1927.  $(gsdsrc_h) $(gserrors_h) $(stream_h)
  1928.  
  1929. gsfunc.$(OBJ): gsfunc.c $(GX)\
  1930.  $(gserrors_h) $(gxfunc_h)
  1931.  
  1932. gsfunc0.$(OBJ): gsfunc0.c $(GX) $(math__h)\
  1933.  $(gserrors_h) $(gsfunc0_h) $(gxfunc_h)
  1934.  
  1935. # ----------------------- Platform-specific modules ----------------------- #
  1936. # Platform-specific code doesn't really belong here: this is code that is
  1937. # shared among multiple platforms.
  1938.  
  1939. # Frame buffer implementations.
  1940.  
  1941. gp_nofb.$(OBJ): gp_nofb.c $(GX) \
  1942.   $(gp_h) $(gxdevice_h)
  1943.  
  1944. gp_dosfb.$(OBJ): gp_dosfb.c $(AK) $(malloc__h) $(memory__h)\
  1945.  $(gx_h) $(gp_h) $(gserrors_h) $(gxdevice_h)
  1946.  
  1947. # MS-DOS file system, also used by Desqview/X.
  1948. gp_dosfs.$(OBJ): gp_dosfs.c $(AK) $(dos__h) $(gp_h) $(gx_h)
  1949.  
  1950. # MS-DOS file enumeration, *not* used by Desqview/X.
  1951. gp_dosfe.$(OBJ): gp_dosfe.c $(AK) $(stdio__h) $(memory__h) $(string__h) \
  1952.   $(dos__h) $(gstypes_h) $(gsmemory_h) $(gsstruct_h) $(gp_h) $(gsutil_h)
  1953.  
  1954. # Other MS-DOS facilities.
  1955. gp_msdos.$(OBJ): gp_msdos.c $(AK) $(dos__h) $(stdio__h) $(string__h)\
  1956.  $(gsmemory_h) $(gstypes_h) $(gp_h)
  1957.  
  1958. # Unix(-like) file system, also used by Desqview/X.
  1959. gp_unifs.$(OBJ): gp_unifs.c $(AK) $(memory__h) $(string__h) $(gx_h) $(gp_h) \
  1960.   $(gsstruct_h) $(gsutil_h) $(stat__h) $(dirent__h)
  1961.  
  1962. # Unix(-like) file name syntax, *not* used by Desqview/X.
  1963. gp_unifn.$(OBJ): gp_unifn.c $(AK) $(gx_h) $(gp_h)
  1964.  
  1965. # ----------------------------- Main program ------------------------------ #
  1966.  
  1967. # Main program for library testing
  1968.  
  1969. gslib.$(OBJ): gslib.c $(AK) $(math__h) \
  1970.   $(gx_h) $(gp_h) $(gserrors_h) $(gsmatrix_h) $(gsstate_h) $(gscspace_h) \
  1971.   $(gscdefs_h) $(gscolor2_h) $(gscoord_h) $(gslib_h) $(gsparam_h) \
  1972.   $(gspaint_h) $(gspath_h) $(gsstruct_h) $(gsutil_h) \
  1973.   $(gxalloc_h) $(gxdevice_h)
  1974. #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  1975. # This file is part of Aladdin Ghostscript.
  1976. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  1977. # or distributor accepts any responsibility for the consequences of using it,
  1978. # or for whether it serves any particular purpose or works at all, unless he
  1979. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  1980. # License (the "License") for full details.
  1981. # Every copy of Aladdin Ghostscript must include a copy of the License,
  1982. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  1983. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  1984. # under certain conditions described in the License.  Among other things, the
  1985. # License requires that the copyright notice and this notice be preserved on
  1986. # all copies.
  1987.  
  1988. # (Platform-independent) makefile for language interpreters.
  1989. # See the end of gs.mak for where this fits into the build process.
  1990.  
  1991. # Define the name of this makefile.
  1992. INT_MAK=int.mak
  1993.  
  1994. # ======================== Interpreter support ======================== #
  1995.  
  1996. # This is support code for all interpreters, not just PostScript and PDF.
  1997. # It knows about the PostScript data types, but isn't supposed to
  1998. # depend on anything outside itself.
  1999.  
  2000. errors_h=errors.h
  2001. idebug_h=idebug.h
  2002. idict_h=idict.h
  2003. igc_h=igc.h
  2004. igcstr_h=igcstr.h
  2005. iname_h=iname.h
  2006. inamedef_h=inamedef.h $(gconfigv_h) $(iname_h)
  2007. ipacked_h=ipacked.h
  2008. iref_h=iref.h
  2009. isave_h=isave.h
  2010. isstate_h=isstate.h
  2011. istruct_h=istruct.h $(gsstruct_h)
  2012. iutil_h=iutil.h
  2013. ivmspace_h=ivmspace.h $(gsgc_h)
  2014. opdef_h=opdef.h
  2015. # Nested include files
  2016. ghost_h=ghost.h $(gx_h) $(iref_h)
  2017. imemory_h=imemory.h $(gsalloc_h) $(ivmspace_h)
  2018. ialloc_h=ialloc.h $(imemory_h)
  2019. iastruct_h=iastruct.h $(gxobj_h) $(ialloc_h)
  2020. iastate_h=iastate.h $(gxalloc_h) $(ialloc_h) $(istruct_h)
  2021. store_h=store.h $(ialloc_h)
  2022.  
  2023. GH=$(AK) $(ghost_h)
  2024.  
  2025. isupport1_=ialloc.$(OBJ) igc.$(OBJ) igcref.$(OBJ) igcstr.$(OBJ)
  2026. isupport2_=ilocate.$(OBJ) iname.$(OBJ) isave.$(OBJ)
  2027. isupport_=$(isupport1_) $(isupport2_)
  2028. isupport.dev: $(INT_MAK) $(ECHOGS_XE) $(isupport_)
  2029.     $(SETMOD) isupport $(isupport1_)
  2030.     $(ADDMOD) isupport -obj $(isupport2_)
  2031.     $(ADDMOD) isupport -init igcref
  2032.  
  2033. ialloc.$(OBJ): ialloc.c $(AK) $(memory__h) $(gx_h)\
  2034.  $(errors_h) $(gsstruct_h) $(gxarith_h)\
  2035.  $(iastate_h) $(iref_h) $(ivmspace_h) $(store_h)
  2036.  
  2037. # igc.c, igcref.c, and igcstr.c should really be in the dpsand2 list,
  2038. # but since all the GC enumeration and relocation routines refer to them,
  2039. # it's too hard to separate them out from the Level 1 base.
  2040. igc.$(OBJ): igc.c $(GH) $(memory__h)\
  2041.   $(errors_h) $(gsexit_h) $(gsmdebug_h) $(gsstruct_h) $(gsutil_h) \
  2042.   $(iastate_h) $(idict_h) $(igc_h) $(igcstr_h) $(inamedef_h) \
  2043.   $(ipacked_h) $(isave_h) $(isstate_h) $(istruct_h) $(opdef_h)
  2044.  
  2045. igcref.$(OBJ): igcref.c $(GH) $(memory__h)\
  2046.  $(gsexit_h) $(gsstruct_h)\
  2047.  $(iastate_h) $(idebug_h) $(igc_h) $(iname_h) $(ipacked_h) $(store_h)
  2048.  
  2049. igcstr.$(OBJ): igcstr.c $(GH) $(memory__h)\
  2050.  $(gsmdebug_h) $(gsstruct_h) $(iastate_h) $(igcstr_h)
  2051.  
  2052. ilocate.$(OBJ): ilocate.c $(GH) $(memory__h)\
  2053.  $(errors_h) $(gsexit_h) $(gsstruct_h)\
  2054.  $(iastate_h) $(idict_h) $(igc_h) $(igcstr_h) $(iname_h)\
  2055.  $(ipacked_h) $(isstate_h) $(iutil_h) $(ivmspace_h)\
  2056.  $(store_h)
  2057.  
  2058. iname.$(OBJ): iname.c $(GH) $(memory__h) $(string__h)\
  2059.  $(gsstruct_h) $(gxobj_h)\
  2060.  $(errors_h) $(imemory_h) $(inamedef_h) $(isave_h) $(store_h)
  2061.  
  2062. isave.$(OBJ): isave.c $(GH) $(memory__h)\
  2063.  $(errors_h) $(gsexit_h) $(gsstruct_h) $(gsutil_h)\
  2064.  $(iastate_h) $(inamedef_h) $(isave_h) $(isstate_h) $(ivmspace_h)\
  2065.  $(ipacked_h) $(store_h)
  2066.  
  2067. ### Include files
  2068.  
  2069. idparam_h=idparam.h
  2070. ilevel_h=ilevel.h
  2071. iparam_h=iparam.h $(gsparam_h)
  2072. istack_h=istack.h
  2073. iutil2_h=iutil2.h
  2074. opcheck_h=opcheck.h
  2075. opextern_h=opextern.h
  2076. # Nested include files
  2077. dstack_h=dstack.h $(istack_h)
  2078. estack_h=estack.h $(istack_h)
  2079. ostack_h=ostack.h $(istack_h)
  2080. oper_h=oper.h $(iutil_h) $(opcheck_h) $(opdef_h) $(opextern_h) $(ostack_h)
  2081.  
  2082. idebug.$(OBJ): idebug.c $(GH) $(string__h)\
  2083.  $(ialloc_h) $(idebug_h) $(idict_h) $(iname_h) $(istack_h) $(iutil_h) $(ivmspace_h)\
  2084.  $(ostack_h) $(opdef_h) $(ipacked_h) $(store_h)
  2085.  
  2086. idict.$(OBJ): idict.c $(GH) $(string__h) $(errors_h)\
  2087.  $(ialloc_h) $(idebug_h) $(ivmspace_h) $(inamedef_h) $(ipacked_h)\
  2088.  $(isave_h) $(store_h) $(iutil_h) $(idict_h) $(dstack_h)
  2089.  
  2090. idparam.$(OBJ): idparam.c $(GH) $(memory__h) $(string__h) $(errors_h)\
  2091.  $(gsmatrix_h) $(gsuid_h)\
  2092.  $(idict_h) $(idparam_h) $(ilevel_h) $(imemory_h) $(iname_h) $(iutil_h)\
  2093.  $(oper_h) $(store_h)
  2094.  
  2095. iparam.$(OBJ): iparam.c $(GH) $(memory__h) $(string__h) $(errors_h)\
  2096.  $(ialloc_h) $(idict_h) $(iname_h) $(imemory_h) $(iparam_h) $(istack_h) $(iutil_h) $(ivmspace_h)\
  2097.  $(opcheck_h) $(store_h)
  2098.  
  2099. istack.$(OBJ): istack.c $(GH) $(memory__h) \
  2100.   $(errors_h) $(gsstruct_h) $(gsutil_h) \
  2101.   $(ialloc_h) $(istack_h) $(istruct_h) $(iutil_h) $(ivmspace_h) $(store_h)
  2102.  
  2103. iutil.$(OBJ): iutil.c $(GH) $(math__h) $(memory__h) $(string__h)\
  2104.  $(gsccode_h) $(gsmatrix_h) $(gsutil_h) $(gxfont_h)\
  2105.  $(errors_h) $(idict_h) $(imemory_h) $(iutil_h) $(ivmspace_h)\
  2106.  $(iname_h) $(ipacked_h) $(oper_h) $(store_h)
  2107.  
  2108. # ======================== PostScript Level 1 ======================== #
  2109.  
  2110. ###### Include files
  2111.  
  2112. files_h=files.h
  2113. fname_h=fname.h
  2114. ichar_h=ichar.h
  2115. icharout_h=icharout.h
  2116. icolor_h=icolor.h
  2117. icontext_h=icontext.h $(imemory_h) $(istack_h)
  2118. icsmap_h=icsmap.h
  2119. ifont_h=ifont.h $(gsccode_h) $(gsstruct_h)
  2120. iht_h=iht.h
  2121. iimage_h=iimage.h
  2122. imain_h=imain.h $(gsexit_h)
  2123. imainarg_h=imainarg.h
  2124. iminst_h=iminst.h $(imain_h)
  2125. interp_h=interp.h
  2126. iparray_h=iparray.h
  2127. iscannum_h=iscannum.h
  2128. istream_h=istream.h
  2129. main_h=main.h $(iminst_h)
  2130. overlay_h=overlay.h
  2131. sbwbs_h=sbwbs.h
  2132. sfilter_h=sfilter.h $(gstypes_h)
  2133. shcgen_h=shcgen.h
  2134. smtf_h=smtf.h
  2135. # Nested include files
  2136. bfont_h=bfont.h $(ifont_h)
  2137. ifilter_h=ifilter.h $(istream_h) $(ivmspace_h)
  2138. igstate_h=igstate.h $(gsstate_h) $(gxstate_h) $(istruct_h)
  2139. iscan_h=iscan.h $(sa85x_h) $(sstring_h)
  2140. sbhc_h=sbhc.h $(shc_h)
  2141. # Include files for optional features
  2142. ibnum_h=ibnum.h
  2143.  
  2144. ### Initialization and scanning
  2145.  
  2146. iconfig=iconfig$(CONFIG)
  2147. $(iconfig).$(OBJ): iconf.c $(stdio__h) \
  2148.   $(gconfig_h) $(gscdefs_h) $(gsmemory_h) \
  2149.   $(files_h) $(iminst_h) $(iref_h) $(ivmspace_h) $(opdef_h) $(stream_h)
  2150.     $(RM_) gconfig.h
  2151.     $(RM_) $(iconfig).c
  2152.     $(CP_) $(gconfig_h) gconfig.h
  2153.     $(CP_) iconf.c $(iconfig).c
  2154.     $(CCC) $(iconfig).c
  2155.     $(RM_) gconfig.h
  2156.     $(RM_) $(iconfig).c
  2157.  
  2158. iinit.$(OBJ): iinit.c $(GH) $(string__h)\
  2159.  $(gscdefs_h) $(gsexit_h) $(gsstruct_h)\
  2160.  $(ialloc_h) $(idict_h) $(dstack_h) $(errors_h)\
  2161.  $(ilevel_h) $(iname_h) $(interp_h) $(opdef_h)\
  2162.  $(ipacked_h) $(iparray_h) $(iutil_h) $(ivmspace_h) $(store_h)
  2163.  
  2164. iscan.$(OBJ): iscan.c $(GH) $(memory__h)\
  2165.  $(ialloc_h) $(idict_h) $(dstack_h) $(errors_h) $(files_h)\
  2166.  $(ilevel_h) $(iutil_h) $(iscan_h) $(iscannum_h) $(istruct_h) $(ivmspace_h)\
  2167.  $(iname_h) $(ipacked_h) $(iparray_h) $(istream_h) $(ostack_h) $(store_h)\
  2168.  $(stream_h) $(strimpl_h) $(sfilter_h) $(scanchar_h)
  2169.  
  2170. iscannum.$(OBJ): iscannum.c $(GH) $(math__h)\
  2171.   $(errors_h) $(iscannum_h) $(scanchar_h) $(scommon_h) $(store_h)
  2172.  
  2173. ### Streams
  2174.  
  2175. sfilter1.$(OBJ): sfilter1.c $(AK) $(stdio__h) $(memory__h) \
  2176.   $(sfilter_h) $(strimpl_h)
  2177.  
  2178. ###### Operators
  2179.  
  2180. OP=$(GH) $(errors_h) $(oper_h)
  2181.  
  2182. ### Non-graphics operators
  2183.  
  2184. zarith.$(OBJ): zarith.c $(OP) $(math__h) $(store_h)
  2185.  
  2186. zarray.$(OBJ): zarray.c $(OP) $(memory__h) $(ialloc_h) $(ipacked_h) $(store_h)
  2187.  
  2188. zcontrol.$(OBJ): zcontrol.c $(OP) $(string__h)\
  2189.  $(estack_h) $(files_h) $(ipacked_h) $(iutil_h) $(store_h) $(stream_h)
  2190.  
  2191. zdict.$(OBJ): zdict.c $(OP) \
  2192.   $(dstack_h) $(idict_h) $(ilevel_h) $(iname_h) $(ipacked_h) $(ivmspace_h) \
  2193.   $(store_h)
  2194.  
  2195. zfile.$(OBJ): zfile.c $(OP) $(memory__h) $(string__h) $(gp_h)\
  2196.  $(gsstruct_h) $(gxiodev_h) \
  2197.  $(ialloc_h) $(estack_h) $(files_h) $(fname_h) $(ilevel_h) $(interp_h) $(iutil_h)\
  2198.  $(isave_h) $(main_h) $(sfilter_h) $(stream_h) $(strimpl_h) $(store_h)
  2199.  
  2200. zfileio.$(OBJ): zfileio.c $(OP) $(gp_h) \
  2201.   $(files_h) $(ifilter_h) $(store_h) $(stream_h) $(strimpl_h) \
  2202.   $(gsmatrix_h) $(gxdevice_h) $(gxdevmem_h)
  2203.  
  2204. zfilter.$(OBJ): zfilter.c $(OP) $(memory__h)\
  2205.  $(gsstruct_h) $(files_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) \
  2206.  $(sfilter_h) $(srlx_h) $(sstring_h) $(store_h) $(stream_h) $(strimpl_h)
  2207.  
  2208. zfname.$(OBJ): zfname.c $(OP) $(memory__h)\
  2209.  $(fname_h) $(gxiodev_h) $(ialloc_h) $(stream_h)
  2210.  
  2211. zfproc.$(OBJ): zfproc.c $(GH) $(memory__h)\
  2212.  $(errors_h) $(oper_h)\
  2213.  $(estack_h) $(files_h) $(gsstruct_h) $(ialloc_h) $(ifilter_h) $(istruct_h)\
  2214.  $(store_h) $(stream_h) $(strimpl_h)
  2215.  
  2216. zgeneric.$(OBJ): zgeneric.c $(OP) $(memory__h)\
  2217.  $(idict_h) $(estack_h) $(ivmspace_h) $(iname_h) $(ipacked_h) $(store_h)
  2218.  
  2219. ziodev.$(OBJ): ziodev.c $(OP) $(memory__h) $(stdio__h) $(string__h)\
  2220.  $(gp_h) $(gpcheck_h)\
  2221.  $(gsstruct_h) $(gxiodev_h)\
  2222.  $(files_h) $(ialloc_h) $(ivmspace_h) $(store_h) $(stream_h)
  2223.  
  2224. zmath.$(OBJ): zmath.c $(OP) $(math__h) $(gxfarith_h) $(store_h)
  2225.  
  2226. zmisc.$(OBJ): zmisc.c $(OP) $(gscdefs_h) $(gp_h) \
  2227.   $(errno__h) $(memory__h) $(string__h) \
  2228.   $(ialloc_h) $(idict_h) $(dstack_h) $(iname_h) $(ivmspace_h) $(ipacked_h) $(store_h)
  2229.  
  2230. zpacked.$(OBJ): zpacked.c $(OP) \
  2231.   $(ialloc_h) $(idict_h) $(ivmspace_h) $(iname_h) $(ipacked_h) $(iparray_h) \
  2232.   $(istack_h) $(store_h)
  2233.  
  2234. zrelbit.$(OBJ): zrelbit.c $(OP) $(gsutil_h) $(store_h) $(idict_h)
  2235.  
  2236. zstack.$(OBJ): zstack.c $(OP) $(memory__h)\
  2237.  $(ialloc_h) $(istack_h) $(store_h)
  2238.  
  2239. zstring.$(OBJ): zstring.c $(OP) $(memory__h)\
  2240.  $(gsutil_h)\
  2241.  $(ialloc_h) $(iname_h) $(ivmspace_h) $(store_h)
  2242.  
  2243. zsysvm.$(OBJ): zsysvm.c $(GH)\
  2244.  $(ialloc_h) $(ivmspace_h) $(oper_h) $(store_h)
  2245.  
  2246. ztoken.$(OBJ): ztoken.c $(OP) \
  2247.   $(estack_h) $(files_h) $(gsstruct_h) $(iscan_h) \
  2248.   $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  2249.  
  2250. ztype.$(OBJ): ztype.c $(OP) $(math__h) $(memory__h) $(string__h)\
  2251.  $(dstack_h) $(idict_h) $(imemory_h) $(iname_h)\
  2252.  $(iscan_h) $(iutil_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  2253.  
  2254. zvmem.$(OBJ): zvmem.c $(OP)\
  2255.  $(dstack_h) $(estack_h) $(files_h)\
  2256.  $(ialloc_h) $(idict_h) $(igstate_h) $(isave_h) $(store_h) $(stream_h)\
  2257.  $(gsmatrix_h) $(gsstate_h) $(gsstruct_h)
  2258.  
  2259. ### Graphics operators
  2260.  
  2261. zchar.$(OBJ): zchar.c $(OP)\
  2262.  $(gsstruct_h) $(gxarith_h) $(gxfixed_h) $(gxmatrix_h)\
  2263.  $(gxchar_h) $(gxdevice_h) $(gxfont_h) $(gzpath_h) $(gzstate_h)\
  2264.  $(dstack_h) $(estack_h) $(ialloc_h) $(ichar_h) $(idict_h) $(ifont_h)\
  2265.  $(ilevel_h) $(iname_h) $(igstate_h) $(ipacked_h) $(store_h)
  2266.  
  2267. # zcharout is used for Type 1 and Type 42 fonts only.
  2268. zcharout.$(OBJ): zcharout.c $(OP)\
  2269.  $(gschar_h) $(gxdevice_h) $(gxfont_h)\
  2270.  $(dstack_h) $(estack_h) $(ichar_h) $(icharout_h)\
  2271.  $(idict_h) $(ifont_h) $(igstate_h) $(store_h)
  2272.  
  2273. zcolor.$(OBJ): zcolor.c $(OP) \
  2274.   $(gxfixed_h) $(gxmatrix_h) $(gzstate_h) $(gxdevice_h) $(gxcmap_h) \
  2275.   $(ialloc_h) $(icolor_h) $(estack_h) $(iutil_h) $(igstate_h) $(store_h)
  2276.  
  2277. zdevice.$(OBJ): zdevice.c $(OP) $(string__h)\
  2278.  $(ialloc_h) $(idict_h) $(igstate_h) $(iname_h) $(interp_h) $(iparam_h) $(ivmspace_h)\
  2279.  $(gsmatrix_h) $(gsstate_h) $(gxdevice_h) $(store_h)
  2280.  
  2281. zfont.$(OBJ): zfont.c $(OP)\
  2282.  $(gschar_h) $(gsstruct_h) $(gxdevice_h) $(gxfont_h) $(gxfcache_h)\
  2283.  $(gzstate_h)\
  2284.  $(ialloc_h) $(idict_h) $(igstate_h) $(iname_h) $(isave_h) $(ivmspace_h)\
  2285.  $(bfont_h) $(store_h)
  2286.  
  2287. zfont2.$(OBJ): zfont2.c $(OP) $(memory__h) $(string__h)\
  2288.  $(gsmatrix_h) $(gxdevice_h) $(gschar_h) $(gxfixed_h) $(gxfont_h)\
  2289.  $(ialloc_h) $(bfont_h) $(idict_h) $(idparam_h) $(ilevel_h) $(iname_h) $(istruct_h)\
  2290.  $(ipacked_h) $(store_h)
  2291.  
  2292. zgstate.$(OBJ): zgstate.c $(OP) $(math__h)\
  2293.  $(gsmatrix_h) $(ialloc_h) $(idict_h) $(igstate_h) $(istruct_h) $(store_h)
  2294.  
  2295. zht.$(OBJ): zht.c $(OP) $(memory__h)\
  2296.  $(gsmatrix_h) $(gsstate_h) $(gsstruct_h) $(gxdevice_h) $(gzht_h) \
  2297.  $(ialloc_h) $(estack_h) $(igstate_h) $(iht_h) $(store_h)
  2298.  
  2299. zimage.$(OBJ): zimage.c $(OP) \
  2300.   $(estack_h) $(ialloc_h) $(ifilter_h) $(igstate_h) $(iimage_h) $(ilevel_h) \
  2301.   $(gscspace_h) $(gsimage_h) $(gsmatrix_h) $(gsstruct_h) \
  2302.   $(store_h) $(stream_h)
  2303.  
  2304. zmatrix.$(OBJ): zmatrix.c $(OP)\
  2305.  $(gsmatrix_h) $(igstate_h) $(gscoord_h) $(store_h)
  2306.  
  2307. zpaint.$(OBJ): zpaint.c $(OP)\
  2308.  $(gspaint_h) $(igstate_h)
  2309.  
  2310. zpath.$(OBJ): zpath.c $(OP) $(math__h) \
  2311.   $(gsmatrix_h) $(gspath_h) $(igstate_h) $(store_h)
  2312.  
  2313. # Define the base PostScript language interpreter.
  2314. # This is the subset of PostScript Level 1 required by our PDF reader.
  2315.  
  2316. INT1=idebug.$(OBJ) idict.$(OBJ) idparam.$(OBJ)
  2317. INT2=iinit.$(OBJ) interp.$(OBJ) iparam.$(OBJ) ireclaim.$(OBJ)
  2318. INT3=iscan.$(OBJ) iscannum.$(OBJ) istack.$(OBJ) iutil.$(OBJ)
  2319. INT4=scantab.$(OBJ) sfilter1.$(OBJ) sstring.$(OBJ) stream.$(OBJ)
  2320. Z1=zarith.$(OBJ) zarray.$(OBJ) zcontrol.$(OBJ) zdict.$(OBJ)
  2321. Z1OPS=zarith zarray zcontrol zdict
  2322. Z2=zfile.$(OBJ) zfileio.$(OBJ) zfilter.$(OBJ) zfname.$(OBJ) zfproc.$(OBJ)
  2323. Z2OPS=zfile zfileio zfilter zfproc
  2324. Z3=zgeneric.$(OBJ) ziodev.$(OBJ) zmath.$(OBJ) zmisc.$(OBJ) zpacked.$(OBJ)
  2325. Z3OPS=zgeneric ziodev zmath zmisc zpacked
  2326. Z4=zrelbit.$(OBJ) zstack.$(OBJ) zstring.$(OBJ) zsysvm.$(OBJ)
  2327. Z4OPS=zrelbit zstack zstring zsysvm
  2328. Z5=ztoken.$(OBJ) ztype.$(OBJ) zvmem.$(OBJ)
  2329. Z5OPS=ztoken ztype zvmem
  2330. Z6=zchar.$(OBJ) zcolor.$(OBJ) zdevice.$(OBJ) zfont.$(OBJ) zfont2.$(OBJ)
  2331. Z6OPS=zchar zcolor zdevice zfont zfont2
  2332. Z7=zgstate.$(OBJ) zht.$(OBJ) zimage.$(OBJ) zmatrix.$(OBJ) zpaint.$(OBJ) zpath.$(OBJ)
  2333. Z7OPS=zgstate zht zimage zmatrix zpaint zpath
  2334. # We have to be a little underhanded with *config.$(OBJ) so as to avoid
  2335. # circular definitions.
  2336. INT_OBJS=imainarg.$(OBJ) gsargs.$(OBJ) imain.$(OBJ) \
  2337.   $(INT1) $(INT2) $(INT3) $(INT4) \
  2338.   $(Z1) $(Z2) $(Z3) $(Z4) $(Z5) $(Z6) $(Z7)
  2339. INT_CONFIG=$(gconfig).$(OBJ) $(gscdefs).$(OBJ) $(iconfig).$(OBJ) \
  2340.   iccinit$(COMPILE_INITS).$(OBJ)
  2341. INT_ALL=$(INT_OBJS) $(INT_CONFIG)
  2342. # We omit libcore.dev, which should be included here, because problems
  2343. # with the Unix linker require libcore to appear last in the link list
  2344. # when libcore is really a library.
  2345. # We omit $(INT_CONFIG) from the dependency list because they have special
  2346. # dependency requirements and are added to the link list at the very end.
  2347. # zfilter.c shouldn't include the RLE and RLD filters, but we don't want to
  2348. # change this now.
  2349. psbase.dev: $(INT_MAK) $(ECHOGS_XE) $(INT_OBJS)\
  2350.  isupport.dev rld.dev rle.dev sfile.dev
  2351.     $(SETMOD) psbase imainarg.$(OBJ) gsargs.$(OBJ) imain.$(OBJ)
  2352.     $(ADDMOD) psbase -obj $(INT_CONFIG)
  2353.     $(ADDMOD) psbase -obj $(INT1)
  2354.     $(ADDMOD) psbase -obj $(INT2)
  2355.     $(ADDMOD) psbase -obj $(INT3)
  2356.     $(ADDMOD) psbase -obj $(INT4)
  2357.     $(ADDMOD) psbase -obj $(Z1)
  2358.     $(ADDMOD) psbase -oper $(Z1OPS)
  2359.     $(ADDMOD) psbase -obj $(Z2)
  2360.     $(ADDMOD) psbase -oper $(Z2OPS)
  2361.     $(ADDMOD) psbase -obj $(Z3)
  2362.     $(ADDMOD) psbase -oper $(Z3OPS)
  2363.     $(ADDMOD) psbase -obj $(Z4)
  2364.     $(ADDMOD) psbase -oper $(Z4OPS)
  2365.     $(ADDMOD) psbase -obj $(Z5)
  2366.     $(ADDMOD) psbase -oper $(Z5OPS)
  2367.     $(ADDMOD) psbase -obj $(Z6)
  2368.     $(ADDMOD) psbase -oper $(Z6OPS)
  2369.     $(ADDMOD) psbase -obj $(Z7)
  2370.     $(ADDMOD) psbase -oper $(Z7OPS)
  2371.     $(ADDMOD) psbase -iodev stdin stdout stderr lineedit statementedit
  2372.     $(ADDMOD) psbase -include isupport rld rle sfile
  2373.  
  2374. # -------------------------- Feature definitions -------------------------- #
  2375.  
  2376. # ---------------- Full Level 1 interpreter ---------------- #
  2377.  
  2378. level1.dev: $(INT_MAK) $(ECHOGS_XE) psbase.dev bcp.dev hsb.dev path1.dev type1.dev
  2379.     $(SETMOD) level1 -include psbase bcp hsb path1 type1
  2380.     $(ADDMOD) level1 -emulator PostScript PostScriptLevel1
  2381.  
  2382. # -------- Level 1 color extensions (CMYK color and colorimage) -------- #
  2383.  
  2384. color.dev: $(INT_MAK) $(ECHOGS_XE) cmyklib.dev colimlib.dev cmykread.dev
  2385.     $(SETMOD) color -include cmyklib colimlib cmykread
  2386.  
  2387. cmykread_=zcolor1.$(OBJ) zht1.$(OBJ)
  2388. cmykread.dev: $(INT_MAK) $(ECHOGS_XE) $(cmykread_)
  2389.     $(SETMOD) cmykread $(cmykread_)
  2390.     $(ADDMOD) cmykread -oper zcolor1 zht1
  2391.  
  2392. zcolor1.$(OBJ): zcolor1.c $(OP) \
  2393.   $(gscolor1_h) \
  2394.   $(gxcmap_h) $(gxcspace_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  2395.   $(gzstate_h) \
  2396.   $(ialloc_h) $(icolor_h) $(iimage_h) $(estack_h) $(iutil_h) $(igstate_h) $(store_h)
  2397.  
  2398. zht1.$(OBJ): zht1.c $(OP) $(memory__h)\
  2399.  $(gsmatrix_h) $(gsstate_h) $(gsstruct_h) $(gxdevice_h) $(gzht_h)\
  2400.  $(ialloc_h) $(estack_h) $(igstate_h) $(iht_h) $(store_h)
  2401.  
  2402. # ---------------- HSB color ---------------- #
  2403.  
  2404. hsb_=zhsb.$(OBJ)
  2405. hsb.dev: $(INT_MAK) $(ECHOGS_XE) $(hsb_) hsblib.dev
  2406.     $(SETMOD) hsb $(hsb_)
  2407.     $(ADDMOD) hsb -include hsblib
  2408.     $(ADDMOD) hsb -oper zhsb
  2409.  
  2410. zhsb.$(OBJ): zhsb.c $(OP) \
  2411.   $(gshsb_h) $(igstate_h) $(store_h)
  2412.  
  2413. # ---- Level 1 path miscellany (arcs, pathbbox, path enumeration) ---- #
  2414.  
  2415. path1_=zpath1.$(OBJ)
  2416. path1.dev: $(INT_MAK) $(ECHOGS_XE) $(path1_) path1lib.dev
  2417.     $(SETMOD) path1 $(path1_)
  2418.     $(ADDMOD) path1 -include path1lib
  2419.     $(ADDMOD) path1 -oper zpath1
  2420.  
  2421. zpath1.$(OBJ): zpath1.c $(OP) $(memory__h)\
  2422.  $(ialloc_h) $(estack_h) $(gspath_h) $(gsstruct_h) $(igstate_h) $(store_h)
  2423.  
  2424. # ================ Level-independent PostScript options ================ #
  2425.  
  2426. # ---------------- BCP filters ---------------- #
  2427.  
  2428. bcp_=sbcp.$(OBJ) zfbcp.$(OBJ)
  2429. bcp.dev: $(INT_MAK) $(ECHOGS_XE) $(bcp_)
  2430.     $(SETMOD) bcp $(bcp_)
  2431.     $(ADDMOD) bcp -oper zfbcp
  2432.  
  2433. sbcp.$(OBJ): sbcp.c $(AK) $(stdio__h) \
  2434.   $(sfilter_h) $(strimpl_h)
  2435.  
  2436. zfbcp.$(OBJ): zfbcp.c $(OP) $(memory__h)\
  2437.  $(gsstruct_h) $(ialloc_h) $(ifilter_h)\
  2438.  $(sfilter_h) $(stream_h) $(strimpl_h)
  2439.  
  2440. # ---------------- Incremental font loading ---------------- #
  2441. # (This only works for Type 1 fonts without eexec encryption.)
  2442.  
  2443. diskfont.dev: $(INT_MAK) $(ECHOGS_XE)
  2444.     $(SETMOD) diskfont -ps gs_diskf
  2445.  
  2446. # ---------------- Double-precision floats ---------------- #
  2447.  
  2448. double_=zdouble.$(OBJ)
  2449. double.dev: $(INT_MAK) $(ECHOGS_XE) $(double_)
  2450.     $(SETMOD) double $(double_)
  2451.     $(ADDMOD) double -oper zdouble
  2452.  
  2453. zdouble.$(OBJ): zdouble.c $(OP) $(ctype__h) $(math__h) $(memory__h) $(string__h) \
  2454.   $(gxfarith_h) $(store_h)
  2455.  
  2456. # ---------------- EPSF files with binary headers ---------------- #
  2457.  
  2458. epsf.dev: $(INT_MAK) $(ECHOGS_XE)
  2459.     $(SETMOD) epsf -ps gs_epsf
  2460.  
  2461. # ---------------- RasterOp ---------------- #
  2462. # This should be a separable feature in the core also....
  2463.  
  2464. rasterop.dev: $(INT_MAK) $(ECHOGS_XE) roplib.dev ropread.dev
  2465.     $(SETMOD) rasterop -include roplib ropread
  2466.  
  2467. ropread_=zrop.$(OBJ)
  2468. ropread.dev: $(INT_MAK) $(ECHOGS_XE) $(ropread_)
  2469.     $(SETMOD) ropread $(ropread_)
  2470.     $(ADDMOD) ropread -oper zrop
  2471.  
  2472. zrop.$(OBJ): zrop.c $(OP) $(memory__h)\
  2473.  $(gsrop_h) $(gsutil_h) $(gxdevice_h)\
  2474.  $(idict_h) $(idparam_h) $(igstate_h) $(store_h)
  2475.  
  2476. # ---------------- PostScript Type 1 (and Type 4) fonts ---------------- #
  2477.  
  2478. type1.dev: $(INT_MAK) $(ECHOGS_XE) psf1lib.dev psf1read.dev
  2479.     $(SETMOD) type1 -include psf1lib psf1read
  2480.  
  2481. psf1read_=seexec.$(OBJ) zchar1.$(OBJ) zcharout.$(OBJ) zfont1.$(OBJ) zmisc1.$(OBJ)
  2482. psf1read.dev: $(INT_MAK) $(ECHOGS_XE) $(psf1read_)
  2483.     $(SETMOD) psf1read $(psf1read_)
  2484.     $(ADDMOD) psf1read -oper zchar1 zfont1 zmisc1
  2485.     $(ADDMOD) psf1read -ps gs_type1
  2486.  
  2487. seexec.$(OBJ): seexec.c $(AK) $(stdio__h) \
  2488.   $(gscrypt1_h) $(scanchar_h) $(sfilter_h) $(strimpl_h)
  2489.  
  2490. zchar1.$(OBJ): zchar1.c $(OP) \
  2491.   $(gspaint_h) $(gspath_h) $(gsstruct_h) \
  2492.   $(gxchar_h) $(gxdevice_h) $(gxfixed_h) $(gxmatrix_h) \
  2493.   $(gxfont_h) $(gxfont1_h) $(gxtype1_h) $(gzstate_h) \
  2494.   $(estack_h) $(ialloc_h) $(ichar_h) $(icharout_h) \
  2495.   $(idict_h) $(ifont_h) $(igstate_h) $(store_h)
  2496.  
  2497. zfont1.$(OBJ): zfont1.c $(OP) \
  2498.   $(gsmatrix_h) $(gxdevice_h) $(gschar_h) \
  2499.   $(gxfixed_h) $(gxfont_h) $(gxfont1_h) \
  2500.   $(bfont_h) $(ialloc_h) $(idict_h) $(idparam_h) $(store_h)
  2501.  
  2502. zmisc1.$(OBJ): zmisc1.c $(OP) $(memory__h)\
  2503.  $(gscrypt1_h)\
  2504.  $(idict_h) $(idparam_h) $(ifilter_h)\
  2505.  $(sfilter_h) $(stream_h) $(strimpl_h)
  2506.  
  2507. # -------------- Compact Font Format and Type 2 charstrings ------------- #
  2508.  
  2509. cff.dev: $(INT_MAK) $(ECHOGS_XE) gs_cff.ps psl2int.dev
  2510.     $(SETMOD) cff -ps gs_cff
  2511.  
  2512. type2.dev: $(INT_MAK) $(ECHOGS_XE) type1.dev psf2lib.dev
  2513.     $(SETMOD) type2 -include psf2lib
  2514.  
  2515. # ---------------- TrueType and PostScript Type 42 fonts ---------------- #
  2516.  
  2517. # Native TrueType support
  2518. ttfont.dev: $(INT_MAK) $(ECHOGS_XE) type42.dev
  2519.     $(SETMOD) ttfont -include type42
  2520.     $(ADDMOD) ttfont -ps gs_mro_e gs_wan_e gs_ttf
  2521.  
  2522. # Type 42 (embedded TrueType) support
  2523. type42read_=zchar42.$(OBJ) zcharout.$(OBJ) zfont42.$(OBJ)
  2524. type42.dev: $(INT_MAK) $(ECHOGS_XE) $(type42read_) ttflib.dev
  2525.     $(SETMOD) type42 $(type42read_)
  2526.     $(ADDMOD) type42 -include ttflib    
  2527.     $(ADDMOD) type42 -oper zchar42 zfont42
  2528.     $(ADDMOD) type42 -ps gs_typ42
  2529.  
  2530. zchar42.$(OBJ): zchar42.c $(OP) \
  2531.   $(gsmatrix_h) $(gspaint_h) $(gspath_h) \
  2532.   $(gxfixed_h) $(gxchar_h) $(gxfont_h) $(gxfont42_h) \
  2533.   $(gxistate_h) $(gxpath_h) $(gzstate_h) \
  2534.   $(dstack_h) $(estack_h) $(ichar_h) $(icharout_h) \
  2535.   $(ifont_h) $(igstate_h) $(store_h)
  2536.  
  2537. zfont42.$(OBJ): zfont42.c $(OP) \
  2538.   $(gsccode_h) $(gsmatrix_h) $(gxfont_h) $(gxfont42_h) \
  2539.   $(bfont_h) $(idict_h) $(idparam_h) $(store_h)
  2540.  
  2541. # ======================== Precompilation options ======================== #
  2542.  
  2543. # ---------------- Precompiled fonts ---------------- #
  2544. # See fonts.txt for more information.
  2545.  
  2546. ccfont_h=ccfont.h $(std_h) $(gsmemory_h) $(iref_h) $(ivmspace_h) $(store_h)
  2547.  
  2548. CCFONT=$(OP) $(ccfont_h)
  2549.  
  2550. # List the fonts we are going to compile.
  2551. # Because of intrinsic limitations in `make', we have to list
  2552. # the object file names and the font names separately.
  2553. # Because of limitations in the DOS shell, we have to break the fonts up
  2554. # into lists that will fit on a single line (120 characters).
  2555. # The rules for constructing the .c files from the fonts themselves,
  2556. # and for compiling the .c files, are in cfonts.mak, not here.
  2557. # For example, to compile the Courier fonts, you should invoke
  2558. #    make -f cfonts.mak Courier_o
  2559. # By convention, the names of the 35 standard compiled fonts use '0' for
  2560. # the foundry name.  This allows users to substitute different foundries
  2561. # without having to change this makefile.
  2562. ccfonts_ps=gs_ccfnt
  2563. ccfonts1_=0agk.$(OBJ) 0agko.$(OBJ) 0agd.$(OBJ) 0agdo.$(OBJ)
  2564. ccfonts1=agk agko agd agdo
  2565. ccfonts2_=0bkl.$(OBJ) 0bkli.$(OBJ) 0bkd.$(OBJ) 0bkdi.$(OBJ)
  2566. ccfonts2=bkl bkli bkd bkdi
  2567. ccfonts3_=0crr.$(OBJ) 0cri.$(OBJ) 0crb.$(OBJ) 0crbi.$(OBJ)
  2568. ccfonts3=crr cri crb crbi
  2569. ccfonts4_=0hvr.$(OBJ) 0hvro.$(OBJ) 0hvb.$(OBJ) 0hvbo.$(OBJ)
  2570. ccfonts4=hvr hvro hvb hvbo
  2571. ccfonts5_=0hvrrn.$(OBJ) 0hvrorn.$(OBJ) 0hvbrn.$(OBJ) 0hvborn.$(OBJ)
  2572. ccfonts5=hvrrn hvrorn hvbrn hvborn
  2573. ccfonts6_=0ncr.$(OBJ) 0ncri.$(OBJ) 0ncb.$(OBJ) 0ncbi.$(OBJ)
  2574. ccfonts6=ncr ncri ncb ncbi
  2575. ccfonts7_=0plr.$(OBJ) 0plri.$(OBJ) 0plb.$(OBJ) 0plbi.$(OBJ)
  2576. ccfonts7=plr plri plb plbi
  2577. ccfonts8_=0tmr.$(OBJ) 0tmri.$(OBJ) 0tmb.$(OBJ) 0tmbi.$(OBJ)
  2578. ccfonts8=tmr tmri tmb tmbi
  2579. ccfonts9_=0syr.$(OBJ) 0zcmi.$(OBJ) 0zdr.$(OBJ)
  2580. ccfonts9=syr zcmi zdr
  2581. # The free distribution includes Bitstream Charter, Utopia, and
  2582. # freeware Cyrillic and Kana fonts.  We only provide for compiling
  2583. # Charter and Utopia.
  2584. ccfonts10free_=bchr.$(OBJ) bchri.$(OBJ) bchb.$(OBJ) bchbi.$(OBJ)
  2585. ccfonts10free=chr chri chb chbi
  2586. ccfonts11free_=putr.$(OBJ) putri.$(OBJ) putb.$(OBJ) putbi.$(OBJ)
  2587. ccfonts11free=utr utri utb utbi
  2588. # Uncomment the alternatives in the next 4 lines if you want
  2589. # Charter and Utopia compiled in.
  2590. #ccfonts10_=$(ccfonts10free_)
  2591. ccfonts10_=
  2592. #ccfonts10=$(ccfonts10free)
  2593. ccfonts10=
  2594. #ccfonts11_=$(ccfonts11free_)
  2595. ccfonts11_=
  2596. #ccfonts11=$(ccfonts11free)
  2597. ccfonts11=
  2598. # Add your own fonts here if desired.
  2599. ccfonts12_=
  2600. ccfonts12=
  2601. ccfonts13_=
  2602. ccfonts13=
  2603. ccfonts14_=
  2604. ccfonts14=
  2605. ccfonts15_=
  2606. ccfonts15=
  2607.  
  2608. # It's OK for ccfonts_.dev not to be CONFIG-dependent, because it only
  2609. # exists during the execution of the following rule.
  2610. # font2c has the prefix "gs" built into it, so we need to instruct
  2611. # genconf to use the same one.
  2612. $(gconfigf_h): $(MAKEFILE) $(INT_MAK) $(GENCONF_XE)
  2613.     $(SETMOD) ccfonts_ -font $(ccfonts1)
  2614.     $(ADDMOD) ccfonts_ -font $(ccfonts2)
  2615.     $(ADDMOD) ccfonts_ -font $(ccfonts3)
  2616.     $(ADDMOD) ccfonts_ -font $(ccfonts4)
  2617.     $(ADDMOD) ccfonts_ -font $(ccfonts5)
  2618.     $(ADDMOD) ccfonts_ -font $(ccfonts6)
  2619.     $(ADDMOD) ccfonts_ -font $(ccfonts7)
  2620.     $(ADDMOD) ccfonts_ -font $(ccfonts8)
  2621.     $(ADDMOD) ccfonts_ -font $(ccfonts9)
  2622.     $(ADDMOD) ccfonts_ -font $(ccfonts10)
  2623.     $(ADDMOD) ccfonts_ -font $(ccfonts11)
  2624.     $(ADDMOD) ccfonts_ -font $(ccfonts12)
  2625.     $(ADDMOD) ccfonts_ -font $(ccfonts13)
  2626.     $(ADDMOD) ccfonts_ -font $(ccfonts14)
  2627.     $(ADDMOD) ccfonts_ -font $(ccfonts15)
  2628.     $(EXP)genconf ccfonts_.dev -n gs -f $(gconfigf_h)
  2629.  
  2630. # We separate icfontab.dev from ccfonts.dev so that a customer can put
  2631. # compiled fonts into a separate shared library.
  2632.  
  2633. icfontab=icfontab$(CONFIG)
  2634.  
  2635. # Define ccfont_table separately, so it can be set from the command line
  2636. # to select an alternate compiled font table.
  2637. ccfont_table=$(icfontab)
  2638.  
  2639. $(icfontab).dev: $(MAKEFILE) $(INT_MAK) $(ECHOGS_XE) $(icfontab).$(OBJ) \
  2640.   $(ccfonts1_) $(ccfonts2_) $(ccfonts3_) $(ccfonts4_) $(ccfonts5_) \
  2641.   $(ccfonts6_) $(ccfonts7_) $(ccfonts8_) $(ccfonts9_) $(ccfonts10_) \
  2642.   $(ccfonts11_) $(ccfonts12_) $(ccfonts13_) $(ccfonts14_) $(ccfonts15_)
  2643.     $(SETMOD) $(icfontab) -obj $(icfontab).$(OBJ)
  2644.     $(ADDMOD) $(icfontab) -obj $(ccfonts1_)
  2645.     $(ADDMOD) $(icfontab) -obj $(ccfonts2_)
  2646.     $(ADDMOD) $(icfontab) -obj $(ccfonts3_)
  2647.     $(ADDMOD) $(icfontab) -obj $(ccfonts4_)
  2648.     $(ADDMOD) $(icfontab) -obj $(ccfonts5_)
  2649.     $(ADDMOD) $(icfontab) -obj $(ccfonts6_)
  2650.     $(ADDMOD) $(icfontab) -obj $(ccfonts7_)
  2651.     $(ADDMOD) $(icfontab) -obj $(ccfonts8_)
  2652.     $(ADDMOD) $(icfontab) -obj $(ccfonts9_)
  2653.     $(ADDMOD) $(icfontab) -obj $(ccfonts10_)
  2654.     $(ADDMOD) $(icfontab) -obj $(ccfonts11_)
  2655.     $(ADDMOD) $(icfontab) -obj $(ccfonts12_)
  2656.     $(ADDMOD) $(icfontab) -obj $(ccfonts13_)
  2657.     $(ADDMOD) $(icfontab) -obj $(ccfonts14_)
  2658.     $(ADDMOD) $(icfontab) -obj $(ccfonts15_)
  2659.  
  2660. $(icfontab).$(OBJ): icfontab.c $(AK) $(ccfont_h) $(gconfigf_h)
  2661.     $(CP_) $(gconfigf_h) gconfigf.h
  2662.     $(CCCF) icfontab.c
  2663.  
  2664. # Strictly speaking, ccfonts shouldn't need to include type1,
  2665. # since one could choose to precompile only Type 0 fonts,
  2666. # but getting this exactly right would be too much work.
  2667. ccfonts=ccfonts$(CONFIG)
  2668. $(ccfonts).dev: $(MAKEFILE) $(INT_MAK) type1.dev iccfont.$(OBJ) \
  2669.   $(ccfont_table).dev
  2670.     $(SETMOD) $(ccfonts) -include type1
  2671.     $(ADDMOD) $(ccfonts) -include $(ccfont_table)
  2672.     $(ADDMOD) $(ccfonts) -obj iccfont.$(OBJ)
  2673.     $(ADDMOD) $(ccfonts) -oper ccfonts
  2674.     $(ADDMOD) $(ccfonts) -ps $(ccfonts_ps)
  2675.  
  2676. iccfont.$(OBJ): iccfont.c $(GH) $(string__h)\
  2677.  $(gsstruct_h) $(ccfont_h) $(errors_h)\
  2678.  $(ialloc_h) $(idict_h) $(ifont_h) $(iname_h) $(isave_h) $(iutil_h)\
  2679.  $(oper_h) $(ostack_h) $(store_h) $(stream_h) $(strimpl_h) $(sfilter_h) $(iscan_h)
  2680.     $(CCCF) iccfont.c
  2681.  
  2682. # ---------------- Compiled initialization code ---------------- #
  2683.  
  2684. # We select either iccinit0 or iccinit1 depending on COMPILE_INITS.
  2685.  
  2686. iccinit0.$(OBJ): iccinit0.c $(stdpre_h)
  2687.     $(CCCF) iccinit0.c
  2688.  
  2689. iccinit1.$(OBJ): gs_init.$(OBJ)
  2690.     $(CP_) gs_init.$(OBJ) iccinit1.$(OBJ)
  2691.  
  2692. # All the gs_*.ps files should be prerequisites of gs_init.c,
  2693. # but we don't have any convenient list of them.
  2694. gs_init.c: $(GS_INIT) $(GENINIT_XE) $(gconfig_h)
  2695.     $(EXP)geninit $(GS_INIT) $(gconfig_h) -c gs_init.c
  2696.  
  2697. gs_init.$(OBJ): gs_init.c $(stdpre_h)
  2698.     $(CCCF) gs_init.c
  2699.  
  2700. # ======================== PostScript Level 2 ======================== #
  2701.  
  2702. level2.dev: $(INT_MAK) $(ECHOGS_XE) \
  2703.  cidfont.dev cie.dev cmapread.dev compfont.dev dct.dev devctrl.dev dpsand2.dev\
  2704.  filter.dev level1.dev pattern.dev psl2lib.dev psl2read.dev sepr.dev\
  2705.  type42.dev xfilter.dev
  2706.     $(SETMOD) level2 -include cidfont cie cmapread compfont
  2707.     $(ADDMOD) level2 -include dct devctrl dpsand2 filter
  2708.     $(ADDMOD) level2 -include level1 pattern psl2lib psl2read
  2709.     $(ADDMOD) level2 -include sepr type42 xfilter
  2710.     $(ADDMOD) level2 -emulator PostScript PostScriptLevel2
  2711.  
  2712. # Define basic Level 2 language support.
  2713. # This is the minimum required for CMap and CIDFont support.
  2714.  
  2715. psl2int_=iutil2.$(OBJ) zmisc2.$(OBJ) zusparam.$(OBJ)
  2716. psl2int.dev: $(INT_MAK) $(ECHOGS_XE) $(psl2int_) dps2int.dev
  2717.     $(SETMOD) psl2int $(psl2int_)
  2718.     $(ADDMOD) psl2int -include dps2int
  2719.     $(ADDMOD) psl2int -oper zmisc2 zusparam
  2720.     $(ADDMOD) psl2int -ps gs_lev2 gs_res
  2721.  
  2722. iutil2.$(OBJ): iutil2.c $(GH) $(memory__h) $(string__h)\
  2723.  $(gsparam_h) $(gsutil_h)\
  2724.  $(errors_h) $(opcheck_h) $(imemory_h) $(iutil_h) $(iutil2_h)
  2725.  
  2726. zmisc2.$(OBJ): zmisc2.c $(OP) $(memory__h) $(string__h)\
  2727.  $(idict_h) $(idparam_h) $(iparam_h) $(dstack_h) $(estack_h)\
  2728.  $(ilevel_h) $(iname_h) $(iutil2_h) $(ivmspace_h) $(store_h)
  2729.  
  2730. # Note that zusparam includes both Level 1 and Level 2 operators.
  2731. zusparam.$(OBJ): zusparam.c $(OP) $(memory__h) $(string__h)\
  2732.  $(gscdefs_h) $(gsfont_h) $(gsstruct_h) $(gsutil_h) $(gxht_h)\
  2733.  $(ialloc_h) $(idict_h) $(idparam_h) $(iparam_h) $(dstack_h) $(estack_h)\
  2734.  $(iname_h) $(iutil2_h) $(store_h)
  2735.  
  2736. # Define full Level 2 support.
  2737.  
  2738. psl2read_=zcolor2.$(OBJ) zcsindex.$(OBJ) zht2.$(OBJ) zimage2.$(OBJ)
  2739. # Note that zmisc2 includes both Level 1 and Level 2 operators.
  2740. psl2read.dev: $(INT_MAK) $(ECHOGS_XE) $(psl2read_) psl2int.dev dps2read.dev
  2741.     $(SETMOD) psl2read $(psl2read_)
  2742.     $(ADDMOD) psl2read -include psl2int dps2read
  2743.     $(ADDMOD) psl2read -oper zcolor2_l2 zcsindex_l2
  2744.     $(ADDMOD) psl2read -oper zht2_l2 zimage2_l2
  2745.  
  2746. zcolor2.$(OBJ): zcolor2.c $(OP)\
  2747.  $(gscolor_h) $(gsmatrix_h) $(gsstruct_h)\
  2748.  $(gxcolor2_h) $(gxcspace_h) $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h) $(gxfixed_h) $(gxpcolor_h)\
  2749.  $(estack_h) $(ialloc_h) $(idict_h) $(idparam_h) $(igstate_h) $(istruct_h)\
  2750.  $(store_h)
  2751.  
  2752. zcsindex.$(OBJ): zcsindex.c $(OP) $(memory__h) \
  2753.   $(gscolor_h) $(gsstruct_h) $(gxfixed_h) $(gxcolor2_h) $(gxcspace_h) $(gsmatrix_h) \
  2754.   $(ialloc_h) $(icsmap_h) $(estack_h) $(igstate_h) $(ivmspace_h) $(store_h)
  2755.  
  2756. zht2.$(OBJ): zht2.c $(OP) \
  2757.   $(gsstruct_h) $(gxdevice_h) $(gzht_h) \
  2758.   $(estack_h) $(ialloc_h) $(icolor_h) $(idict_h) $(idparam_h) $(igstate_h) \
  2759.   $(iht_h) $(store_h)
  2760.  
  2761. zimage2.$(OBJ): zimage2.c $(OP) $(math__h) $(memory__h)\
  2762.  $(gscolor_h) $(gscolor2_h) $(gscspace_h) $(gsimage_h) $(gsmatrix_h)\
  2763.  $(idict_h) $(idparam_h) $(iimage_h) $(ilevel_h) $(igstate_h)
  2764.  
  2765. # ---------------- Device control ---------------- #
  2766. # This is a catch-all for setpagedevice and IODevices.
  2767.  
  2768. devctrl_=zdevice2.$(OBJ) ziodev2.$(OBJ) zmedia2.$(OBJ) zdevcal.$(OBJ)
  2769. devctrl.dev: $(INT_MAK) $(ECHOGS_XE) $(devctrl_)
  2770.     $(SETMOD) devctrl $(devctrl_)
  2771.     $(ADDMOD) devctrl -oper zdevice2_l2 ziodev2_l2 zmedia2_l2
  2772.     $(ADDMOD) devctrl -iodev null ram calendar
  2773.     $(ADDMOD) devctrl -ps gs_setpd
  2774.  
  2775. zdevice2.$(OBJ): zdevice2.c $(OP) $(math__h) $(memory__h)\
  2776.  $(dstack_h) $(estack_h) $(idict_h) $(idparam_h) $(igstate_h) $(iname_h) $(store_h)\
  2777.  $(gxdevice_h) $(gsstate_h)
  2778.  
  2779. ziodev2.$(OBJ): ziodev2.c $(OP) $(string__h) $(gp_h)\
  2780.  $(gxiodev_h) $(stream_h) $(files_h) $(iparam_h) $(iutil2_h) $(store_h)
  2781.  
  2782. zmedia2.$(OBJ): zmedia2.c $(OP) $(math__h) $(memory__h) \
  2783.   $(gsmatrix_h) $(idict_h) $(idparam_h) $(iname_h) $(store_h)
  2784.  
  2785. zdevcal.$(OBJ): zdevcal.c $(GH) $(time__h) \
  2786.   $(gxiodev_h) $(iparam_h) $(istack_h)
  2787.  
  2788. # ---------------- Filters other than the ones in sfilter.c ---------------- #
  2789.  
  2790. # Standard Level 2 decoding filters only.  The PDF configuration uses this.
  2791. fdecode_=scantab.$(OBJ) sfilter2.$(OBJ) zfdecode.$(OBJ)
  2792. fdecode.dev: $(INT_MAK) $(ECHOGS_XE) $(fdecode_) cfd.dev lzwd.dev pdiff.dev pngp.dev rld.dev
  2793.     $(SETMOD) fdecode $(fdecode_)
  2794.     $(ADDMOD) fdecode -include cfd lzwd pdiff pngp rld
  2795.     $(ADDMOD) fdecode -oper zfdecode
  2796.  
  2797. zfdecode.$(OBJ): zfdecode.c $(OP) $(memory__h)\
  2798.  $(gsstruct_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) \
  2799.  $(sa85x_h) $(scf_h) $(scfx_h) $(sfilter_h) $(slzwx_h) $(spdiffx_h) $(spngpx_h) \
  2800.  $(store_h) $(stream_h) $(strimpl_h)
  2801.  
  2802. # Complete Level 2 filter capability.
  2803. filter_=zfilter2.$(OBJ)
  2804. filter.dev: $(INT_MAK) $(ECHOGS_XE) fdecode.dev $(filter_) cfe.dev lzwe.dev rle.dev
  2805.     $(SETMOD) filter -include fdecode
  2806.     $(ADDMOD) filter -obj $(filter_)
  2807.     $(ADDMOD) filter -include cfe lzwe rle
  2808.     $(ADDMOD) filter -oper zfilter2
  2809.  
  2810. zfilter2.$(OBJ): zfilter2.c $(OP) $(memory__h)\
  2811.   $(gsstruct_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h) $(store_h) \
  2812.   $(sfilter_h) $(scfx_h) $(slzwx_h) $(spdiffx_h) $(spngpx_h) $(strimpl_h)
  2813.  
  2814. # Extensions beyond Level 2 standard.
  2815. xfilter_=sbhc.$(OBJ) sbwbs.$(OBJ) shcgen.$(OBJ) smtf.$(OBJ) \
  2816.  zfilterx.$(OBJ)
  2817. xfilter.dev: $(INT_MAK) $(ECHOGS_XE) $(xfilter_) pcxd.dev pngp.dev
  2818.     $(SETMOD) xfilter $(xfilter_)
  2819.     $(ADDMOD) xfilter -include pcxd
  2820.     $(ADDMOD) xfilter -oper zfilterx
  2821.  
  2822. sbhc.$(OBJ): sbhc.c $(AK) $(memory__h) $(stdio__h)\
  2823.  $(gdebug_h) $(sbhc_h) $(shcgen_h) $(strimpl_h)
  2824.  
  2825. sbwbs.$(OBJ): sbwbs.c $(AK) $(stdio__h) $(memory__h) \
  2826.   $(gdebug_h) $(sbwbs_h) $(sfilter_h) $(strimpl_h)
  2827.  
  2828. shcgen.$(OBJ): shcgen.c $(AK) $(memory__h) $(stdio__h)\
  2829.  $(gdebug_h) $(gserror_h) $(gserrors_h) $(gsmemory_h)\
  2830.  $(scommon_h) $(shc_h) $(shcgen_h)
  2831.  
  2832. smtf.$(OBJ): smtf.c $(AK) $(stdio__h) \
  2833.   $(smtf_h) $(strimpl_h)
  2834.  
  2835. zfilterx.$(OBJ): zfilterx.c $(OP) $(memory__h)\
  2836.  $(gsstruct_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifilter_h)\
  2837.  $(store_h) $(sfilter_h) $(sbhc_h) $(sbtx_h) $(sbwbs_h) $(shcgen_h)\
  2838.  $(smtf_h) $(spcxx_h) $(strimpl_h)
  2839.  
  2840. # ---------------- Binary tokens ---------------- #
  2841.  
  2842. btoken_=iscanbin.$(OBJ) zbseq.$(OBJ)
  2843. btoken.dev: $(INT_MAK) $(ECHOGS_XE) $(btoken_)
  2844.     $(SETMOD) btoken $(btoken_)
  2845.     $(ADDMOD) btoken -oper zbseq_l2
  2846.     $(ADDMOD) btoken -ps gs_btokn
  2847.  
  2848. bseq_h=bseq.h
  2849. btoken_h=btoken.h
  2850.  
  2851. iscanbin.$(OBJ): iscanbin.c $(GH) $(math__h) $(memory__h) $(errors_h)\
  2852.  $(gsutil_h) $(ialloc_h) $(ibnum_h) $(idict_h) $(iname_h)\
  2853.  $(iscan_h) $(iutil_h) $(ivmspace_h)\
  2854.  $(bseq_h) $(btoken_h) $(dstack_h) $(ostack_h)\
  2855.  $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  2856.  
  2857. zbseq.$(OBJ): zbseq.c $(OP) $(memory__h)\
  2858.  $(ialloc_h) $(idict_h) $(isave_h)\
  2859.  $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)\
  2860.  $(iname_h) $(ibnum_h) $(btoken_h) $(bseq_h)
  2861.  
  2862. # ---------------- User paths & insideness testing ---------------- #
  2863.  
  2864. upath_=zupath.$(OBJ) ibnum.$(OBJ)
  2865. upath.dev: $(INT_MAK) $(ECHOGS_XE) $(upath_)
  2866.     $(SETMOD) upath $(upath_)
  2867.     $(ADDMOD) upath -oper zupath_l2
  2868.  
  2869. zupath.$(OBJ): zupath.c $(OP) \
  2870.   $(idict_h) $(dstack_h) $(iutil_h) $(igstate_h) $(store_h) $(stream_h) $(ibnum_h) \
  2871.   $(gscoord_h) $(gsmatrix_h) $(gspaint_h) $(gspath_h) $(gsstate_h) \
  2872.   $(gxfixed_h) $(gxdevice_h) $(gzpath_h) $(gzstate_h)
  2873.  
  2874. # -------- Additions common to Display PostScript and Level 2 -------- #
  2875.  
  2876. dpsand2.dev: $(INT_MAK) $(ECHOGS_XE) btoken.dev color.dev upath.dev dps2lib.dev dps2read.dev
  2877.     $(SETMOD) dpsand2 -include btoken color upath dps2lib dps2read
  2878.  
  2879. dps2int_=zvmem2.$(OBJ) zdps1.$(OBJ)
  2880. # Note that zvmem2 includes both Level 1 and Level 2 operators.
  2881. dps2int.dev: $(INT_MAK) $(ECHOGS_XE) $(dps2int_)
  2882.     $(SETMOD) dps2int $(dps2int_)
  2883.     $(ADDMOD) dps2int -oper zvmem2 zdps1_l2
  2884.     $(ADDMOD) dps2int -ps gs_dps1
  2885.  
  2886. dps2read_=ibnum.$(OBJ) zchar2.$(OBJ)
  2887. dps2read.dev: $(INT_MAK) $(ECHOGS_XE) $(dps2read_) dps2int.dev
  2888.     $(SETMOD) dps2read $(dps2read_)
  2889.     $(ADDMOD) dps2read -include dps2int
  2890.     $(ADDMOD) dps2read -oper ireclaim_l2 zchar2_l2
  2891.     $(ADDMOD) dps2read -ps gs_dps2
  2892.  
  2893. ibnum.$(OBJ): ibnum.c $(GH) $(math__h) $(memory__h)\
  2894.  $(errors_h) $(stream_h) $(ibnum_h) $(imemory_h) $(iutil_h)
  2895.  
  2896. zchar2.$(OBJ): zchar2.c $(OP)\
  2897.  $(gschar_h) $(gsmatrix_h) $(gspath_h) $(gsstruct_h)\
  2898.  $(gxchar_h) $(gxfixed_h) $(gxfont_h)\
  2899.  $(ialloc_h) $(ichar_h) $(estack_h) $(ifont_h) $(iname_h) $(igstate_h)\
  2900.  $(store_h) $(stream_h) $(ibnum_h)
  2901.  
  2902. zdps1.$(OBJ): zdps1.c $(OP) \
  2903.   $(gsmatrix_h) $(gspath_h) $(gspath2_h) $(gsstate_h) \
  2904.   $(ialloc_h) $(ivmspace_h) $(igstate_h) $(store_h) $(stream_h) $(ibnum_h)
  2905.  
  2906. zvmem2.$(OBJ): zvmem2.c $(OP) \
  2907.   $(estack_h) $(ialloc_h) $(ivmspace_h) $(store_h)
  2908.  
  2909. # ---------------- Display PostScript ---------------- #
  2910.  
  2911. dps_=zdps.$(OBJ) icontext.$(OBJ) zcontext.$(OBJ)
  2912. dps.dev: $(INT_MAK) $(ECHOGS_XE) dpslib.dev level2.dev $(dps_)
  2913.     $(SETMOD) dps -include dpslib level2
  2914.     $(ADDMOD) dps -obj $(dps_)
  2915.     $(ADDMOD) dps -oper zcontext zdps
  2916.     $(ADDMOD) dps -ps gs_dps
  2917.  
  2918. icontext.$(OBJ): icontext.c $(GH)\
  2919.  $(gsstruct_h) $(gxalloc_h)\
  2920.  $(dstack_h) $(errors_h) $(estack_h) $(ostack_h)\
  2921.  $(icontext_h) $(igstate_h) $(interp_h) $(store_h)
  2922.  
  2923. zdps.$(OBJ): zdps.c $(OP)\
  2924.  $(gsdps_h) $(gsstate_h) $(igstate_h) $(iname_h) $(store_h)
  2925.  
  2926. zcontext.$(OBJ): zcontext.c $(OP) $(gp_h) $(memory__h)\
  2927.  $(gsexit_h) $(gsstruct_h) $(gsutil_h) $(gxalloc_h)\
  2928.  $(icontext_h) $(idict_h) $(igstate_h) $(istruct_h)\
  2929.  $(dstack_h) $(estack_h) $(ostack_h) $(store_h)
  2930.  
  2931. # The following #ifdef ... #endif are just a comment to mark a DPNEXT area.
  2932. #ifdef DPNEXT
  2933.  
  2934. # ---------------- NeXT Display PostScript ---------------- #
  2935. #**************** NOT READY FOR USE YET ****************#
  2936.  
  2937. # There should be a gsdpnext.c, but there isn't yet.
  2938. #dpsnext_=zdpnext.$(OBJ) gsdpnext.$(OBJ)
  2939. dpsnext_=zdpnext.$(OBJ)
  2940. dpsnext.dev: $(INT_MAK) $(ECHOGS_XE) dps.dev $(dpsnext_) gs_dpnxt.ps
  2941.     $(SETMOD) dpsnext -include dps
  2942.     $(ADDMOD) dpsnext -obj $(dpsnext_)
  2943.     $(ADDMOD) dpsnext -oper zdpnext
  2944.     $(ADDMOD) dpsnext -ps gs_dpnxt
  2945.  
  2946. zdpnext.$(OBJ): zdpnext.c $(OP)\
  2947.  $(gscspace_h) $(gsiparam_h) $(gsmatrix_h) $(gxcvalue_h) $(gxsample_h)\
  2948.  $(ialloc_h) $(igstate_h) $(iimage_h)
  2949.  
  2950. # See above re the following.
  2951. #endif                /* DPNEXT */
  2952.  
  2953. # -------- Composite (PostScript Type 0) font support -------- #
  2954.  
  2955. compfont.dev: $(INT_MAK) $(ECHOGS_XE) psf0lib.dev psf0read.dev
  2956.     $(SETMOD) compfont -include psf0lib psf0read
  2957.  
  2958. # We always include zfcmap.$(OBJ) because zfont0.c refers to it,
  2959. # and it's not worth the trouble to exclude.
  2960. psf0read_=zchar2.$(OBJ) zfcmap.$(OBJ) zfont0.$(OBJ)
  2961. psf0read.dev: $(INT_MAK) $(ECHOGS_XE) $(psf0read_)
  2962.     $(SETMOD) psf0read $(psf0read_)
  2963.     $(ADDMOD) psf0read -oper zfont0 zchar2 zfcmap
  2964.  
  2965. zfcmap.$(OBJ): zfcmap.c $(OP)\
  2966.  $(gsmatrix_h) $(gsstruct_h) $(gsutil_h)\
  2967.  $(gxfcmap_h) $(gxfont_h)\
  2968.  $(ialloc_h) $(idict_h) $(idparam_h) $(ifont_h) $(iname_h) $(store_h)
  2969.  
  2970. zfont0.$(OBJ): zfont0.c $(OP)\
  2971.  $(gschar_h) $(gsstruct_h)\
  2972.  $(gxdevice_h) $(gxfcmap_h) $(gxfixed_h) $(gxfont_h) $(gxfont0_h) $(gxmatrix_h)\
  2973.  $(gzstate_h)\
  2974.  $(bfont_h) $(ialloc_h) $(idict_h) $(idparam_h) $(igstate_h) $(iname_h)\
  2975.  $(store_h)
  2976.  
  2977. # ---------------- CMap support ---------------- #
  2978. # Note that this requires at least minimal Level 2 support,
  2979. # because it requires findresource.
  2980.  
  2981. cmapread_=zfcmap.$(OBJ)
  2982. cmapread.dev: $(INT_MAK) $(ECHOGS_XE) $(cmapread_) cmaplib.dev psl2int.dev
  2983.     $(SETMOD) cmapread $(cmapread_)
  2984.     $(ADDMOD) cmapread -include cmaplib psl2int
  2985.     $(ADDMOD) cmapread -oper zfcmap
  2986.     $(ADDMOD) cmapread -ps gs_cmap
  2987.  
  2988. # ---------------- CIDFont support ---------------- #
  2989. # Note that this requires at least minimal Level 2 support,
  2990. # because it requires findresource.
  2991.  
  2992. cidread_=zcid.$(OBJ)
  2993. cidfont.dev: $(INT_MAK) $(ECHOGS_XE) psf1read.dev psl2int.dev type42.dev\
  2994.  $(cidread_)
  2995.     $(SETMOD) cidfont $(cidread_)
  2996.     $(ADDMOD) cidfont -include psf1read psl2int type42
  2997.     $(ADDMOD) cidfont -ps gs_cidfn
  2998.     $(ADDMOD) cidfont -oper zcid
  2999.  
  3000. zcid.$(OBJ): zcid.c $(OP)\
  3001.  $(gsccode_h) $(gsmatrix_h) $(gxfont_h)\
  3002.  $(bfont_h) $(iname_h) $(store_h)
  3003.  
  3004. # ---------------- CIE color ---------------- #
  3005.  
  3006. cieread_=zcie.$(OBJ) zcrd.$(OBJ)
  3007. cie.dev: $(INT_MAK) $(ECHOGS_XE) $(cieread_) cielib.dev
  3008.     $(SETMOD) cie $(cieread_)
  3009.     $(ADDMOD) cie -oper zcie_l2 zcrd_l2
  3010.     $(ADDMOD) cie -include cielib
  3011.  
  3012. icie_h=icie.h
  3013.  
  3014. zcie.$(OBJ): zcie.c $(OP) $(math__h) $(memory__h) \
  3015.   $(gscolor2_h) $(gscie_h) $(gsstruct_h) $(gxcspace_h) \
  3016.   $(ialloc_h) $(icie_h) $(idict_h) $(idparam_h) $(estack_h) \
  3017.   $(isave_h) $(igstate_h) $(ivmspace_h) $(store_h)
  3018.  
  3019. zcrd.$(OBJ): zcrd.c $(OP) $(math__h) \
  3020.   $(gscspace_h) $(gscolor2_h) $(gscie_h) $(gsstruct_h) \
  3021.   $(ialloc_h) $(icie_h) $(idict_h) $(idparam_h) $(estack_h) \
  3022.   $(isave_h) $(igstate_h) $(ivmspace_h) $(store_h)
  3023.  
  3024. # ---------------- Pattern color ---------------- #
  3025.  
  3026. pattern.dev: $(INT_MAK) $(ECHOGS_XE) patlib.dev patread.dev
  3027.     $(SETMOD) pattern -include patlib patread
  3028.  
  3029. patread_=zpcolor.$(OBJ)
  3030. patread.dev: $(INT_MAK) $(ECHOGS_XE) $(patread_)
  3031.     $(SETMOD) patread $(patread_)
  3032.     $(ADDMOD) patread -oper zpcolor_l2
  3033.  
  3034. zpcolor.$(OBJ): zpcolor.c $(OP)\
  3035.  $(gscolor_h) $(gsmatrix_h) $(gsstruct_h)\
  3036.  $(gxcolor2_h) $(gxcspace_h) $(gxdcolor_h) $(gxdevice_h) $(gxdevmem_h)\
  3037.    $(gxfixed_h) $(gxpcolor_h)\
  3038.  $(estack_h) $(ialloc_h) $(idict_h) $(idparam_h) $(igstate_h) $(istruct_h)\
  3039.  $(store_h)
  3040.  
  3041. # ---------------- Separation color ---------------- #
  3042.  
  3043. seprread_=zcssepr.$(OBJ)
  3044. sepr.dev: $(INT_MAK) $(ECHOGS_XE) $(seprread_) seprlib.dev
  3045.     $(SETMOD) sepr $(seprread_)
  3046.     $(ADDMOD) sepr -oper zcssepr_l2
  3047.     $(ADDMOD) sepr -include seprlib
  3048.  
  3049. zcssepr.$(OBJ): zcssepr.c $(OP) \
  3050.   $(gscolor_h) $(gscsepr_h) $(gsmatrix_h) $(gsstruct_h) \
  3051.   $(gxcolor2_h) $(gxcspace_h) $(gxfixed_h) \
  3052.   $(ialloc_h) $(icsmap_h) $(estack_h) $(igstate_h) $(ivmspace_h) $(store_h)
  3053.  
  3054. # ---------------- Functions ---------------- #
  3055.  
  3056. ifunc_h=ifunc.h
  3057.  
  3058. # Generic support, and FunctionType 0.
  3059. funcread_=zfunc.$(OBJ) zfunc0.$(OBJ)
  3060. func.dev: $(INT_MAK) $(ECHOGS_XE) $(funcread_) funclib.dev
  3061.     $(SETMOD) func $(funcread_)
  3062.     $(ADDMOD) func -oper zfunc zfunc0
  3063.     $(ADDMOD) func -include funclib
  3064.  
  3065. zfunc.$(OBJ): zfunc.c $(OP) $(memory__h)\
  3066.  $(gsfunc_h) $(gsstruct_h)\
  3067.  $(ialloc_h) $(idict_h) $(idparam_h) $(ifunc_h) $(store_h)
  3068.  
  3069. zfunc0.$(OBJ): zfunc0.c $(OP) $(memory__h)\
  3070.  $(gsdsrc_h) $(gsfunc_h) $(gsfunc0_h)\
  3071.  $(stream_h)\
  3072.  $(files_h) $(ialloc_h) $(idict_h) $(idparam_h) $(ifunc_h)
  3073.  
  3074. # ---------------- DCT filters ---------------- #
  3075. # The definitions for jpeg*.dev are in jpeg.mak.
  3076.  
  3077. dct.dev: $(INT_MAK) $(ECHOGS_XE) dcte.dev dctd.dev
  3078.     $(SETMOD) dct -include dcte dctd
  3079.  
  3080. # Common code
  3081.  
  3082. dctc_=zfdctc.$(OBJ)
  3083.  
  3084. zfdctc.$(OBJ): zfdctc.c $(GH) $(memory__h) $(stdio__h)\
  3085.  $(errors_h) $(opcheck_h)\
  3086.  $(idict_h) $(idparam_h) $(imemory_h) $(ipacked_h) $(iutil_h)\
  3087.  $(sdct_h) $(sjpeg_h) $(strimpl_h)\
  3088.  jpeglib.h
  3089.  
  3090. # Encoding (compression)
  3091.  
  3092. dcte_=$(dctc_) zfdcte.$(OBJ)
  3093. dcte.dev: $(INT_MAK) $(ECHOGS_XE) sdcte.dev $(dcte_)
  3094.     $(SETMOD) dcte -include sdcte
  3095.     $(ADDMOD) dcte -obj $(dcte_)
  3096.     $(ADDMOD) dcte -oper zfdcte
  3097.  
  3098. zfdcte.$(OBJ): zfdcte.c $(OP) $(memory__h) $(stdio__h)\
  3099.   $(idict_h) $(idparam_h) $(ifilter_h) $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  3100.   jpeglib.h
  3101.  
  3102. # Decoding (decompression)
  3103.  
  3104. dctd_=$(dctc_) zfdctd.$(OBJ)
  3105. dctd.dev: $(INT_MAK) $(ECHOGS_XE) sdctd.dev $(dctd_)
  3106.     $(SETMOD) dctd -include sdctd
  3107.     $(ADDMOD) dctd -obj $(dctd_)
  3108.     $(ADDMOD) dctd -oper zfdctd
  3109.  
  3110. zfdctd.$(OBJ): zfdctd.c $(OP) $(memory__h) $(stdio__h)\
  3111.  $(ifilter_h) $(sdct_h) $(sjpeg_h) $(strimpl_h) \
  3112.  jpeglib.h
  3113.  
  3114. # ---------------- zlib/Flate filters ---------------- #
  3115.  
  3116. fzlib.dev: $(INT_MAK) $(ECHOGS_XE) zfzlib.$(OBJ) szlibe.dev szlibd.dev
  3117.     $(SETMOD) fzlib -include szlibe szlibd
  3118.     $(ADDMOD) fzlib -obj zfzlib.$(OBJ)
  3119.     $(ADDMOD) fzlib -oper zfzlib
  3120.  
  3121. zfzlib.$(OBJ): zfzlib.c $(OP) \
  3122.   $(errors_h) $(idict_h) $(ifilter_h) \
  3123.   $(spdiffx_h) $(spngpx_h) $(strimpl_h) $(szlibx_h)
  3124.     $(CCCZ) zfzlib.c
  3125.  
  3126. # ================================ PDF ================================ #
  3127.  
  3128. # We need most of the Level 2 interpreter to do PDF, but not all of it.
  3129. # In fact, we don't even need all of a Level 1 interpreter.
  3130.  
  3131. # Because of the way the PDF encodings are defined, they must get loaded
  3132. # before we install the Level 2 resource machinery.
  3133. # On the other hand, the PDF .ps files must get loaded after
  3134. # level2dict is defined.
  3135. pdfmin.dev: $(INT_MAK) $(ECHOGS_XE)\
  3136.  psbase.dev color.dev dps2lib.dev dps2read.dev\
  3137.  fdecode.dev type1.dev pdffonts.dev psl2lib.dev psl2read.dev pdfread.dev
  3138.     $(SETMOD) pdfmin -include psbase color dps2lib dps2read
  3139.     $(ADDMOD) pdfmin -include fdecode type1
  3140.     $(ADDMOD) pdfmin -include pdffonts psl2lib psl2read pdfread
  3141.     $(ADDMOD) pdfmin -emulator PDF
  3142.  
  3143. pdf.dev: $(INT_MAK) $(ECHOGS_XE)\
  3144.  pdfmin.dev cff.dev cidfont.dev cie.dev compfont.dev cmapread.dev dctd.dev\
  3145.  func.dev ttfont.dev type2.dev
  3146.     $(SETMOD) pdf -include pdfmin cff cidfont cie cmapread compfont dctd
  3147.     $(ADDMOD) pdf -include func ttfont type2
  3148.  
  3149. # Reader only
  3150.  
  3151. pdffonts.dev: $(INT_MAK) $(ECHOGS_XE) \
  3152.   gs_mex_e.ps gs_mro_e.ps gs_pdf_e.ps gs_wan_e.ps
  3153.     $(SETMOD) pdffonts -ps gs_mex_e gs_mro_e gs_pdf_e gs_wan_e
  3154.  
  3155. # pdf_2ps must be the last .ps file loaded.
  3156. pdfread.dev: $(INT_MAK) $(ECHOGS_XE) fzlib.dev
  3157.     $(SETMOD) pdfread -include fzlib
  3158.     $(ADDMOD) pdfread -ps gs_pdf gs_l2img
  3159.     $(ADDMOD) pdfread -ps pdf_base pdf_draw pdf_font pdf_main pdf_sec
  3160.     $(ADDMOD) pdfread -ps pdf_2ps
  3161.  
  3162. # ============================= Main program ============================== #
  3163.  
  3164. gs.$(OBJ): gs.c $(GH) \
  3165.   $(imain_h) $(imainarg_h) $(iminst_h)
  3166.  
  3167. imainarg.$(OBJ): imainarg.c $(GH) $(ctype__h) $(memory__h) $(string__h) \
  3168.   $(gp_h) \
  3169.   $(gsargs_h) $(gscdefs_h) $(gsdevice_h) $(gsmdebug_h) $(gxdevice_h) $(gxdevmem_h) \
  3170.   $(errors_h) $(estack_h) $(files_h) \
  3171.   $(ialloc_h) $(imain_h) $(imainarg_h) $(iminst_h) \
  3172.   $(iname_h) $(interp_h) $(iscan_h) $(iutil_h) $(ivmspace_h) \
  3173.   $(ostack_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  3174.  
  3175. imain.$(OBJ): imain.c $(GH) $(memory__h) $(string__h)\
  3176.  $(gp_h) $(gslib_h) $(gsmatrix_h) $(gsutil_h) $(gxdevice_h)\
  3177.  $(dstack_h) $(errors_h) $(estack_h) $(files_h)\
  3178.  $(ialloc_h) $(idebug_h) $(idict_h) $(iname_h) $(interp_h)\
  3179.  $(isave_h) $(iscan_h) $(ivmspace_h)\
  3180.  $(main_h) $(oper_h) $(ostack_h)\
  3181.  $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  3182.  
  3183. interp.$(OBJ): interp.c $(GH) $(memory__h) $(string__h)\
  3184.  $(gsstruct_h)\
  3185.  $(dstack_h) $(errors_h) $(estack_h) $(files_h)\
  3186.  $(ialloc_h) $(iastruct_h) $(inamedef_h) $(idict_h) $(interp_h) $(ipacked_h)\
  3187.  $(iscan_h) $(isave_h) $(istack_h) $(iutil_h) $(ivmspace_h)\
  3188.  $(oper_h) $(ostack_h) $(sfilter_h) $(store_h) $(stream_h) $(strimpl_h)
  3189.     $(CCINT) interp.c
  3190.  
  3191. ireclaim.$(OBJ): ireclaim.c $(GH) \
  3192.   $(errors_h) $(gsstruct_h) $(iastate_h) $(opdef_h) $(store_h) \
  3193.   $(dstack_h) $(estack_h) $(ostack_h)
  3194. #    Copyright (C) 1994, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  3195. # This file is part of Aladdin Ghostscript.
  3196. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  3197. # or distributor accepts any responsibility for the consequences of using it,
  3198. # or for whether it serves any particular purpose or works at all, unless he
  3199. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  3200. # License (the "License") for full details.
  3201. # Every copy of Aladdin Ghostscript must include a copy of the License,
  3202. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  3203. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  3204. # under certain conditions described in the License.  Among other things, the
  3205. # License requires that the copyright notice and this notice be preserved on
  3206. # all copies.
  3207.  
  3208. # makefile for Independent JPEG Group library code.
  3209.  
  3210. # NOTE: This makefile is only known to work with the following versions
  3211. # of the IJG library: 6, 6a.
  3212. # As of May 11, 1996, version 6a is the current version.
  3213. #
  3214. # You can get the IJG library by Internet anonymous FTP from the following
  3215. # places:
  3216. #    Standard distribution (tar + gzip format, Unix end-of-line):
  3217. #        ftp.uu.net:/graphics/jpeg/jpegsrc.v*.tar.gz
  3218. #        ftp.cs.wisc.edu:/ghost/jpegsrc.v*.tar.gz
  3219. #    MS-DOS archive (PKZIP a.k.a. zip format, MS-DOS end-of-line):
  3220. #        ftp.simtel.net:/pub/simtelnet/msdos/graphics/jpegsr*.zip
  3221. #        ftp.cs.wisc.edu:/ghost/jpeg-*.zip
  3222. # The first site named above (ftp.uu.net and ftp.simtel.net) is supposed
  3223. # to be the master distribution site, so it may have a more up-to-date
  3224. # version; the ftp.cs.wisc.edu site is the master distribution site for
  3225. # Ghostscript, so it will always have IJG library versions known to be
  3226. # compatible with Ghostscript.
  3227. #
  3228. # If the version number, and hence the subdirectory name, changes, you
  3229. # will probably want to change the definitions of JSRCDIR and possibly
  3230. # JVERSION (in the platform-specific makefile, not here) to reflect this,
  3231. # since that way you can use the IJG archive without change.
  3232. #
  3233. # NOTE: For some obscure reason (probably a bug in djtarx), if you are
  3234. # compiling on a DesqView/X system, you should use the zip version of the
  3235. # IJG library, not the tar.gz version.
  3236.  
  3237. # Define the name of this makefile.
  3238. JPEG_MAK=jpeg.mak
  3239.  
  3240. # JSRCDIR is defined in the platform-specific makefile, not here,
  3241. # as the directory where the IJG library sources are stored.
  3242. #JSRCDIR=jpeg-6a
  3243. # JVERSION is defined in the platform-specific makefile, not here,
  3244. # as the IJG library major version number (currently "5" or "6").
  3245. #JVERSION=6
  3246.  
  3247. JSRC=$(JSRCDIR)$(D)
  3248. # CCCJ is defined in gs.mak.
  3249. #CCCJ=$(CCC) -I. -I$(JSRCDIR)
  3250.  
  3251. # We keep all of the IJG code in a separate directory so as not to
  3252. # inadvertently mix it up with Aladdin Enterprises' own code.
  3253. # However, we need our own version of jconfig.h, and our own "wrapper" for
  3254. # jmorecfg.h.  We also need a substitute for jerror.c, in order to
  3255. # keep the error strings out of the automatic data segment in
  3256. # 16-bit environments.  For v5*, we also need our own version of jpeglib.h
  3257. # in order to change MAX_BLOCKS_IN_MCU for Adobe compatibility.
  3258. # (This need will go away when IJG v6 is released.)
  3259.  
  3260. # Because this file is included after lib.mak, we can't use _h macros
  3261. # to express indirect dependencies; instead, we build the dependencies
  3262. # into the rules for copying the files.
  3263. jconfig_h=jconfig.h
  3264. jerror_h=jerror.h
  3265. jmorecfg_h=jmorecfg.h
  3266. jpeglib_h=jpeglib.h
  3267.  
  3268. jconfig.h: gsjconf.h $(std_h)
  3269.     $(CP_) gsjconf.h jconfig.h
  3270.  
  3271. jmorecfg.h: gsjmorec.h jmcorig.h
  3272.     $(CP_) gsjmorec.h jmorecfg.h
  3273.  
  3274. jmcorig.h: $(JSRC)jmorecfg.h
  3275.     $(CP_) $(JSRC)jmorecfg.h jmcorig.h
  3276.  
  3277. jpeglib.h: jlib$(JVERSION).h jconfig.h jmorecfg.h
  3278.     $(CP_) jlib$(JVERSION).h jpeglib.h
  3279.  
  3280. jlib5.h: gsjpglib.h
  3281.     $(CP_) gsjpglib.h jlib5.h
  3282.  
  3283. jlib6.h: $(JSRC)jpeglib.h
  3284.     $(CP_) $(JSRC)jpeglib.h jlib6.h
  3285.  
  3286. # To ensure that the compiler finds our versions of jconfig.h and jmorecfg.h,
  3287. # regardless of the compiler's search rule, we must copy up all .c files,
  3288. # and all .h files that include either of these files, directly or
  3289. # indirectly.  The only such .h files currently are jinclude.h and jpeglib.h.
  3290. # (Currently, we supply our own version of jpeglib.h -- see above.)
  3291. # Also, to avoid including the JSRCDIR directory name in our source files,
  3292. # we must also copy up any other .h files that our own code references.
  3293. # Currently, the only such .h files are jerror.h and jversion.h.
  3294.  
  3295. JHCOPY=jinclude.h jpeglib.h jerror.h jversion.h
  3296.  
  3297. jinclude.h: $(JSRC)jinclude.h
  3298.     $(CP_) $(JSRC)jinclude.h jinclude.h
  3299.  
  3300. #jpeglib.h: $(JSRC)jpeglib.h
  3301. #    $(CP_) $(JSRC)jpeglib.h jpeglib.h
  3302.  
  3303. jerror.h: $(JSRC)jerror.h
  3304.     $(CP_) $(JSRC)jerror.h jerror.h
  3305.  
  3306. jversion.h: $(JSRC)jversion.h
  3307.     $(CP_) $(JSRC)jversion.h jversion.h
  3308.  
  3309. # In order to avoid having to keep the dependency lists for the IJG code
  3310. # accurate, we simply make all of them depend on the only files that
  3311. # we are ever going to change, and on all the .h files that must be copied up.
  3312. # This is too conservative, but only hurts us if we are changing our own
  3313. # j*.h files, which happens only rarely during development.
  3314.  
  3315. JDEP=$(AK) $(jconfig_h) $(jerror_h) $(jmorecfg_h) $(JHCOPY)
  3316.  
  3317. # Code common to compression and decompression.
  3318.  
  3319. jpegc_=jcomapi.$(OBJ) jutils.$(OBJ) sjpegerr.$(OBJ) jmemmgr.$(OBJ)
  3320. jpegc.dev: $(JPEG_MAK) $(ECHOGS_XE) $(jpegc_)
  3321.     $(SETMOD) jpegc $(jpegc_)
  3322.  
  3323. jcomapi.$(OBJ): $(JSRC)jcomapi.c $(JDEP)
  3324.     $(CP_) $(JSRC)jcomapi.c .
  3325.     $(CCCJ) jcomapi.c
  3326.     $(RM_) jcomapi.c
  3327.  
  3328. jutils.$(OBJ): $(JSRC)jutils.c $(JDEP)
  3329.     $(CP_) $(JSRC)jutils.c .
  3330.     $(CCCJ) jutils.c
  3331.     $(RM_) jutils.c
  3332.  
  3333. # Note that sjpegerr replaces jerror.
  3334. sjpegerr.$(OBJ): sjpegerr.c $(JDEP)
  3335.     $(CCCF) sjpegerr.c
  3336.  
  3337. jmemmgr.$(OBJ): $(JSRC)jmemmgr.c $(JDEP)
  3338.     $(CP_) $(JSRC)jmemmgr.c .
  3339.     $(CCCJ) jmemmgr.c
  3340.     $(RM_) jmemmgr.c
  3341.  
  3342. # Encoding (compression) code.
  3343.  
  3344. jpege.dev: jpege$(JVERSION).dev
  3345.     $(CP_) jpege$(JVERSION).dev jpege.dev
  3346.  
  3347. jpege5=jcapi.$(OBJ)
  3348. jpege6=jcapimin.$(OBJ) jcapistd.$(OBJ) jcinit.$(OBJ)
  3349.  
  3350. jpege_1=jccoefct.$(OBJ) jccolor.$(OBJ) jcdctmgr.$(OBJ) 
  3351. jpege_2=jchuff.$(OBJ) jcmainct.$(OBJ) jcmarker.$(OBJ) jcmaster.$(OBJ)
  3352. jpege_3=jcparam.$(OBJ) jcprepct.$(OBJ) jcsample.$(OBJ) jfdctint.$(OBJ)
  3353.  
  3354. jpege5.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpege5) $(jpege_1) $(jpege_2) $(jpege_3)
  3355.     $(SETMOD) jpege5 $(jpege5)
  3356.     $(ADDMOD) jpege5 -include jpegc
  3357.     $(ADDMOD) jpege5 -obj $(jpege_1)
  3358.     $(ADDMOD) jpege5 -obj $(jpege_2)
  3359.     $(ADDMOD) jpege5 -obj $(jpege_3)
  3360.  
  3361. jpege6.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpege6) $(jpege_1) $(jpege_2) $(jpege_3)
  3362.     $(SETMOD) jpege6 $(jpege6)
  3363.     $(ADDMOD) jpege6 -include jpegc
  3364.     $(ADDMOD) jpege6 -obj $(jpege_1)
  3365.     $(ADDMOD) jpege6 -obj $(jpege_2)
  3366.     $(ADDMOD) jpege6 -obj $(jpege_3)
  3367.  
  3368. # jcapi.c is v5* only
  3369. jcapi.$(OBJ): $(JSRC)jcapi.c $(JDEP)
  3370.     $(CP_) $(JSRC)jcapi.c .
  3371.     $(CCCJ) jcapi.c
  3372.     $(RM_) jcapi.c
  3373.   
  3374. # jcapimin.c is new in v6
  3375. jcapimin.$(OBJ): $(JSRC)jcapimin.c $(JDEP)
  3376.     $(CP_) $(JSRC)jcapimin.c .
  3377.     $(CCCJ) jcapimin.c
  3378.     $(RM_) jcapimin.c
  3379.  
  3380. # jcapistd.c is new in v6
  3381. jcapistd.$(OBJ): $(JSRC)jcapistd.c $(JDEP)
  3382.     $(CP_) $(JSRC)jcapistd.c .
  3383.     $(CCCJ) jcapistd.c
  3384.     $(RM_) jcapistd.c
  3385.  
  3386. # jcinit.c is new in v6
  3387. jcinit.$(OBJ): $(JSRC)jcinit.c $(JDEP)
  3388.     $(CP_) $(JSRC)jcinit.c .
  3389.     $(CCCJ) jcinit.c
  3390.     $(RM_) jcinit.c
  3391.  
  3392. jccoefct.$(OBJ): $(JSRC)jccoefct.c $(JDEP)
  3393.     $(CP_) $(JSRC)jccoefct.c .
  3394.     $(CCCJ) jccoefct.c
  3395.     $(RM_) jccoefct.c
  3396.  
  3397. jccolor.$(OBJ): $(JSRC)jccolor.c $(JDEP)
  3398.     $(CP_) $(JSRC)jccolor.c .
  3399.     $(CCCJ) jccolor.c
  3400.     $(RM_) jccolor.c
  3401.  
  3402. jcdctmgr.$(OBJ): $(JSRC)jcdctmgr.c $(JDEP)
  3403.     $(CP_) $(JSRC)jcdctmgr.c .
  3404.     $(CCCJ) jcdctmgr.c
  3405.     $(RM_) jcdctmgr.c
  3406.  
  3407. jchuff.$(OBJ): $(JSRC)jchuff.c $(JDEP)
  3408.     $(CP_) $(JSRC)jchuff.c .
  3409.     $(CCCJ) jchuff.c
  3410.     $(RM_) jchuff.c
  3411.  
  3412. jcmainct.$(OBJ): $(JSRC)jcmainct.c $(JDEP)
  3413.     $(CP_) $(JSRC)jcmainct.c .
  3414.     $(CCCJ) jcmainct.c
  3415.     $(RM_) jcmainct.c
  3416.  
  3417. jcmarker.$(OBJ): $(JSRC)jcmarker.c $(JDEP)
  3418.     $(CP_) $(JSRC)jcmarker.c .
  3419.     $(CCCJ) jcmarker.c
  3420.     $(RM_) jcmarker.c
  3421.  
  3422. jcmaster.$(OBJ): $(JSRC)jcmaster.c $(JDEP)
  3423.     $(CP_) $(JSRC)jcmaster.c .
  3424.     $(CCCJ) jcmaster.c
  3425.     $(RM_) jcmaster.c
  3426.  
  3427. jcparam.$(OBJ): $(JSRC)jcparam.c $(JDEP)
  3428.     $(CP_) $(JSRC)jcparam.c .
  3429.     $(CCCJ) jcparam.c
  3430.     $(RM_) jcparam.c
  3431.  
  3432. jcprepct.$(OBJ): $(JSRC)jcprepct.c $(JDEP)
  3433.     $(CP_) $(JSRC)jcprepct.c .
  3434.     $(CCCJ) jcprepct.c
  3435.     $(RM_) jcprepct.c
  3436.  
  3437. jcsample.$(OBJ): $(JSRC)jcsample.c $(JDEP)
  3438.     $(CP_) $(JSRC)jcsample.c .
  3439.     $(CCCJ) jcsample.c
  3440.     $(RM_) jcsample.c
  3441.  
  3442. jfdctint.$(OBJ): $(JSRC)jfdctint.c $(JDEP)
  3443.     $(CP_) $(JSRC)jfdctint.c .
  3444.     $(CCCJ) jfdctint.c
  3445.     $(RM_) jfdctint.c
  3446.  
  3447. # Decompression code
  3448.  
  3449. jpegd.dev: jpegd$(JVERSION).dev
  3450.     $(CP_) jpegd$(JVERSION).dev jpegd.dev
  3451.  
  3452. jpegd5=jdapi.$(OBJ)
  3453. jpegd6=jdapimin.$(OBJ) jdapistd.$(OBJ) jdinput.$(OBJ) jdphuff.$(OBJ)
  3454.  
  3455. jpegd_1=jdcoefct.$(OBJ) jdcolor.$(OBJ)
  3456. jpegd_2=jddctmgr.$(OBJ) jdhuff.$(OBJ) jdmainct.$(OBJ) jdmarker.$(OBJ)
  3457. jpegd_3=jdmaster.$(OBJ) jdpostct.$(OBJ) jdsample.$(OBJ) jidctint.$(OBJ)
  3458.  
  3459. jpegd5.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpegd5) $(jpegd_1) $(jpegd_2) $(jpegd_3)
  3460.     $(SETMOD) jpegd5 $(jpegd5)
  3461.     $(ADDMOD) jpegd5 -include jpegc
  3462.     $(ADDMOD) jpegd5 -obj $(jpegd_1)
  3463.     $(ADDMOD) jpegd5 -obj $(jpegd_2)
  3464.     $(ADDMOD) jpegd5 -obj $(jpegd_3)
  3465.  
  3466. jpegd6.dev: $(JPEG_MAK) $(ECHOGS_XE) jpegc.dev $(jpegd6) $(jpegd_1) $(jpegd_2) $(jpegd_3)
  3467.     $(SETMOD) jpegd6 $(jpegd6)
  3468.     $(ADDMOD) jpegd6 -include jpegc
  3469.     $(ADDMOD) jpegd6 -obj $(jpegd_1)
  3470.     $(ADDMOD) jpegd6 -obj $(jpegd_2)
  3471.     $(ADDMOD) jpegd6 -obj $(jpegd_3)
  3472.  
  3473. # jdapi.c is v5* only
  3474. jdapi.$(OBJ): $(JSRC)jdapi.c $(JDEP)
  3475.     $(CP_) $(JSRC)jdapi.c .
  3476.     $(CCCJ) jdapi.c
  3477.     $(RM_) jdapi.c
  3478.  
  3479. # jdapimin.c is new in v6
  3480. jdapimin.$(OBJ): $(JSRC)jdapimin.c $(JDEP)
  3481.     $(CP_) $(JSRC)jdapimin.c .
  3482.     $(CCCJ) jdapimin.c
  3483.     $(RM_) jdapimin.c
  3484.  
  3485. # jdapistd.c is new in v6
  3486. jdapistd.$(OBJ): $(JSRC)jdapistd.c $(JDEP)
  3487.     $(CP_) $(JSRC)jdapistd.c .
  3488.     $(CCCJ) jdapistd.c
  3489.     $(RM_) jdapistd.c
  3490.  
  3491. jdcoefct.$(OBJ): $(JSRC)jdcoefct.c $(JDEP)
  3492.     $(CP_) $(JSRC)jdcoefct.c .
  3493.     $(CCCJ) jdcoefct.c
  3494.     $(RM_) jdcoefct.c
  3495.  
  3496. jdcolor.$(OBJ): $(JSRC)jdcolor.c $(JDEP)
  3497.     $(CP_) $(JSRC)jdcolor.c .
  3498.     $(CCCJ) jdcolor.c
  3499.     $(RM_) jdcolor.c
  3500.  
  3501. jddctmgr.$(OBJ): $(JSRC)jddctmgr.c $(JDEP)
  3502.     $(CP_) $(JSRC)jddctmgr.c .
  3503.     $(CCCJ) jddctmgr.c
  3504.     $(RM_) jddctmgr.c
  3505.  
  3506. jdhuff.$(OBJ): $(JSRC)jdhuff.c $(JDEP)
  3507.     $(CP_) $(JSRC)jdhuff.c .
  3508.     $(CCCJ) jdhuff.c
  3509.     $(RM_) jdhuff.c
  3510.  
  3511. # jdinput.c is new in v6
  3512. jdinput.$(OBJ): $(JSRC)jdinput.c $(JDEP)
  3513.     $(CP_) $(JSRC)jdinput.c .
  3514.     $(CCCJ) jdinput.c
  3515.     $(RM_) jdinput.c
  3516.  
  3517. jdmainct.$(OBJ): $(JSRC)jdmainct.c $(JDEP)
  3518.     $(CP_) $(JSRC)jdmainct.c .
  3519.     $(CCCJ) jdmainct.c
  3520.     $(RM_) jdmainct.c
  3521.  
  3522. jdmarker.$(OBJ): $(JSRC)jdmarker.c $(JDEP)
  3523.     $(CP_) $(JSRC)jdmarker.c .
  3524.     $(CCCJ) jdmarker.c
  3525.     $(RM_) jdmarker.c
  3526.  
  3527. jdmaster.$(OBJ): $(JSRC)jdmaster.c $(JDEP)
  3528.     $(CP_) $(JSRC)jdmaster.c .
  3529.     $(CCCJ) jdmaster.c
  3530.     $(RM_) jdmaster.c
  3531.  
  3532. # jdphuff.c is new in v6
  3533. jdphuff.$(OBJ): $(JSRC)jdphuff.c $(JDEP)
  3534.     $(CP_) $(JSRC)jdphuff.c .
  3535.     $(CCCJ) jdphuff.c
  3536.     $(RM_) jdphuff.c
  3537.  
  3538. jdpostct.$(OBJ): $(JSRC)jdpostct.c $(JDEP)
  3539.     $(CP_) $(JSRC)jdpostct.c .
  3540.     $(CCCJ) jdpostct.c
  3541.     $(RM_) jdpostct.c
  3542.  
  3543. jdsample.$(OBJ): $(JSRC)jdsample.c $(JDEP)
  3544.     $(CP_) $(JSRC)jdsample.c .
  3545.     $(CCCJ) jdsample.c
  3546.     $(RM_) jdsample.c
  3547.  
  3548. jidctint.$(OBJ): $(JSRC)jidctint.c $(JDEP)
  3549.     $(CP_) $(JSRC)jidctint.c .
  3550.     $(CCCJ) jidctint.c
  3551.     $(RM_) jidctint.c
  3552. #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  3553. # This file is part of Aladdin Ghostscript.
  3554. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  3555. # or distributor accepts any responsibility for the consequences of using it,
  3556. # or for whether it serves any particular purpose or works at all, unless he
  3557. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  3558. # License (the "License") for full details.
  3559. # Every copy of Aladdin Ghostscript must include a copy of the License,
  3560. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  3561. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  3562. # under certain conditions described in the License.  Among other things, the
  3563. # License requires that the copyright notice and this notice be preserved on
  3564. # all copies.
  3565.  
  3566. # makefile for PNG (Portable Network Graphics) code.
  3567.  
  3568. # This partial makefile compiles the png library for use in the Ghostscript
  3569. # PNG drivers.  You can get the source code for this library from:
  3570. #   ftp://swrinde.nde.swri.edu/pub/png/src/
  3571. # The makefile is known to work with the following library versions:
  3572. # 0.89, 0.90, 0.95, and 0.96.  NOTE: the archive for libpng 0.95 may
  3573. # be inconsistent: if you have compilation problems, use an older version.
  3574. # Please see Ghostscript's `make.txt' file for instructions about how to
  3575. # unpack these archives.
  3576. #
  3577. # The specification for the PNG file format is available from:
  3578. #   http://www.group42.com/png.htm
  3579. #   http://www.w3.org/pub/WWW/TR/WD-png
  3580.  
  3581. # Define the name of this makefile.
  3582. LIBPNG_MAK=libpng.mak
  3583.  
  3584. # PSRCDIR is defined in the platform-specific makefile, not here,
  3585. # as the directory where the PNG library sources are stored.
  3586. #PSRCDIR=libpng
  3587. # PVERSION is defined in the platform-specific makefile, not here,
  3588. # as the libpng version number ("89", "90", "95", or "96").
  3589. #PVERSION=96
  3590.  
  3591. PSRC=$(PSRCDIR)$(D)
  3592. # CCCP is defined in gs.mak.
  3593. #CCCP=$(CCC) -I$(PSRCDIR) -I$(ZSRCDIR)
  3594.  
  3595. # We keep all of the PNG code in a separate directory so as not to
  3596. # inadvertently mix it up with Aladdin Enterprises' own code.
  3597. PDEP=$(AK)
  3598.  
  3599. png_1=png.$(OBJ) pngmem.$(OBJ) pngerror.$(OBJ)
  3600. png_2=pngtrans.$(OBJ) pngwrite.$(OBJ) pngwtran.$(OBJ) pngwutil.$(OBJ)
  3601.  
  3602. # libpng modules
  3603.  
  3604. png.$(OBJ): $(PSRC)png.c $(PDEP)
  3605.     $(CCCP) $(PSRC)png.c
  3606.  
  3607. # version 0.89 uses pngwio.c
  3608. pngwio.$(OBJ): $(PSRC)pngwio.c $(PDEP)
  3609.     $(CCCP) $(PSRC)pngwio.c
  3610.  
  3611. pngmem.$(OBJ): $(PSRC)pngmem.c $(PDEP)
  3612.     $(CCCP) $(PSRC)pngmem.c
  3613.  
  3614. pngerror.$(OBJ): $(PSRC)pngerror.c $(PDEP)
  3615.     $(CCCP) $(PSRC)pngerror.c
  3616.  
  3617. pngtrans.$(OBJ): $(PSRC)pngtrans.c $(PDEP)
  3618.     $(CCCP) $(PSRC)pngtrans.c
  3619.  
  3620. pngwrite.$(OBJ): $(PSRC)pngwrite.c $(PDEP)
  3621.     $(CCCP) $(PSRC)pngwrite.c
  3622.  
  3623. pngwtran.$(OBJ): $(PSRC)pngwtran.c $(PDEP)
  3624.     $(CCCP) $(PSRC)pngwtran.c
  3625.  
  3626. pngwutil.$(OBJ): $(PSRC)pngwutil.c $(PDEP)
  3627.     $(CCCP) $(PSRC)pngwutil.c
  3628.  
  3629. # Define the version of libpng.dev that we are actually using.
  3630. libpng.dev: $(MAKEFILE) libpng_$(SHARE_LIBPNG).dev
  3631.     $(CP_) libpng_$(SHARE_LIBPNG).dev libpng.dev
  3632.  
  3633. # Define the shared version of libpng.
  3634. # Note that it requires libz, which must be searched *after* libpng.
  3635. libpng_1.dev: $(MAKEFILE) $(LIBPNG_MAK) $(ECHOGS_XE) zlibe.dev
  3636.     $(SETMOD) libpng_1 -lib $(LIBPNG_NAME)
  3637.     $(ADDMOD) libpng_1 -include zlibe
  3638.  
  3639. # Define the non-shared version of libpng.
  3640. libpng_0.dev: $(LIBPNG_MAK) $(ECHOGS_XE) $(png_1) $(png_2)\
  3641.  zlibe.dev libpng$(PVERSION).dev
  3642.     $(SETMOD) libpng_0 $(png_1)
  3643.     $(ADDMOD) libpng_0 $(png_2)
  3644.     $(ADDMOD) libpng_0 -include zlibe libpng$(PVERSION)
  3645.  
  3646. libpng89.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ)
  3647.     $(SETMOD) libpng89 pngwio.$(OBJ)
  3648.  
  3649. libpng90.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ) crc32.dev
  3650.     $(SETMOD) libpng90 pngwio.$(OBJ) -include crc32
  3651.  
  3652. libpng95.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ) crc32.dev
  3653.     $(SETMOD) libpng95 pngwio.$(OBJ) -include crc32
  3654.  
  3655. libpng96.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ) crc32.dev
  3656.     $(SETMOD) libpng96 pngwio.$(OBJ) -include crc32
  3657. #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  3658. # This file is part of Aladdin Ghostscript.
  3659. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  3660. # or distributor accepts any responsibility for the consequences of using it,
  3661. # or for whether it serves any particular purpose or works at all, unless he
  3662. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  3663. # License (the "License") for full details.
  3664. # Every copy of Aladdin Ghostscript must include a copy of the License,
  3665. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  3666. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  3667. # under certain conditions described in the License.  Among other things, the
  3668. # License requires that the copyright notice and this notice be preserved on
  3669. # all copies.
  3670.  
  3671. # makefile for zlib library code.
  3672.  
  3673. # This partial makefile compiles the zlib library for use in Ghostscript.
  3674. # You can get the source code for this library from:
  3675. #   ftp://ftp.uu.net/pub/archiving/zip/zlib/zlib104.zip   (zlib 1.0.4)
  3676. #        or zlib-1.0.4.tar.gz
  3677. # Please see Ghostscript's `make.txt' file for instructions about how to
  3678. # unpack these archives.
  3679.  
  3680. # Define the name of this makefile.
  3681. ZLIB_MAK=zlib.mak
  3682.  
  3683. # ZSRCDIR is defined in the platform-specific makefile, not here,
  3684. # as the directory where the zlib sources are stored.
  3685. #ZSRCDIR=zlib
  3686. ZSRC=$(ZSRCDIR)$(D)
  3687. # We would like to define
  3688. #CCCZ=$(CCC) -I$(ZSRCDIR) -Dverbose=-1
  3689. # but the Watcom C compiler has strange undocumented restrictions on what can
  3690. # follow a -D=, and it doesn't allow negative numbers.  Instead, we define
  3691. # (in gs.mak):
  3692. #CCCZ=$(CCC) -I. -I$(ZSRCDIR)
  3693. # and handle the definition of verbose in a different, more awkward way.
  3694.  
  3695. # We keep all of the zlib code in a separate directory so as not to
  3696. # inadvertently mix it up with Aladdin Enterprises' own code.
  3697. ZDEP=$(AK)
  3698.  
  3699. # Contrary to what some portability bigots assert as fact, C compilers are
  3700. # not consistent about where they start searching for #included files:
  3701. # some always start by looking in the same directory as the .c file being
  3702. # compiled, before using the search path specified with -I on the command
  3703. # line, while others do not do this.  For this reason, we must explicitly
  3704. # copy and then delete all the .c files, because they need to obtain our
  3705. # modified version of zutil.h.  We must also copy all header files that
  3706. # reference zutil.h directly or indirectly.
  3707.  
  3708. # Code common to compression and decompression.
  3709.  
  3710. zlibc_=zutil.$(OBJ)
  3711. zlibc.dev: $(ZLIB_MAK) $(ECHOGS_XE) $(zlibc_)
  3712.     $(SETMOD) zlibc $(zlibc_)
  3713.  
  3714. zutil.h: $(ZSRC)zutil.h $(ECHOGS_XE)
  3715.     $(EXP)echogs -w zutil.h -x 23 define verbose -s - -1
  3716.     $(EXP)echogs -a zutil.h -+R $(ZSRC)zutil.h
  3717.  
  3718. zutil.$(OBJ): $(ZSRC)zutil.c $(ZDEP) zutil.h
  3719.     $(CP_) $(ZSRC)zutil.c .
  3720.     $(CCCZ) zutil.c
  3721.     $(RM_) zutil.c
  3722.  
  3723. # Encoding (compression) code.
  3724.  
  3725. deflate.h: $(ZSRC)deflate.h zutil.h
  3726.     $(CP_) $(ZSRC)deflate.h .
  3727.  
  3728. zlibe.dev: $(MAKEFILE) zlibe_$(SHARE_ZLIB).dev
  3729.     $(CP_) zlibe_$(SHARE_ZLIB).dev zlibe.dev
  3730.  
  3731. zlibe_1.dev: $(MAKEFILE) $(ZLIB_MAK) $(ECHOGS_XE)
  3732.     $(SETMOD) zlibe_1 -lib $(ZLIB_NAME)
  3733.  
  3734. zlibe_=adler32.$(OBJ) deflate.$(OBJ) trees.$(OBJ)
  3735. zlibe_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) zlibc.dev $(zlibe_)
  3736.     $(SETMOD) zlibe_0 $(zlibe_)
  3737.     $(ADDMOD) zlibe_0 -include zlibc
  3738.  
  3739. adler32.$(OBJ): $(ZSRC)adler32.c $(ZDEP)
  3740.     $(CP_) $(ZSRC)adler32.c .
  3741.     $(CCCZ) adler32.c
  3742.     $(RM_) adler32.c
  3743.  
  3744. deflate.$(OBJ): $(ZSRC)deflate.c $(ZDEP) deflate.h
  3745.     $(CP_) $(ZSRC)deflate.c .
  3746.     $(CCCZ) deflate.c
  3747.     $(RM_) deflate.c
  3748.  
  3749. trees.$(OBJ): $(ZSRC)trees.c $(ZDEP) deflate.h
  3750.     $(CP_) $(ZSRC)trees.c .
  3751.     $(CCCZ) trees.c
  3752.     $(RM_) trees.c
  3753.  
  3754. # The zlib filters per se don't need crc32, but libpng versions starting
  3755. # with 0.90 do.
  3756.  
  3757. crc32.dev: $(MAKEFILE) crc32_$(SHARE_ZLIB).dev
  3758.     $(CP_) crc32_$(SHARE_ZLIB).dev crc32.dev
  3759.  
  3760. crc32_1.dev: $(MAKEFILE) $(ZLIB_MAK) $(ECHOGS_XE)
  3761.     $(SETMOD) crc32_1 -lib $(ZLIB_NAME)
  3762.  
  3763. crc32_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) crc32.$(OBJ)
  3764.     $(SETMOD) crc32_0 crc32.$(OBJ)
  3765.  
  3766. crc32.$(OBJ): $(ZSRC)crc32.c $(ZDEP) deflate.h
  3767.     $(CP_) $(ZSRC)crc32.c .
  3768.     $(CCCZ) crc32.c
  3769.     $(RM_) crc32.c
  3770.  
  3771. # Decoding (decompression) code.
  3772.  
  3773. zlibd.dev: $(MAKEFILE) zlibd_$(SHARE_ZLIB).dev
  3774.     $(CP_) zlibd_$(SHARE_ZLIB).dev zlibd.dev
  3775.  
  3776. zlibd_1.dev: $(MAKEFILE) $(ZLIB_MAK) $(ECHOGS_XE)
  3777.     $(SETMOD) zlibd_1 -lib $(ZLIB_NAME)
  3778.  
  3779. zlibd1_=infblock.$(OBJ) infcodes.$(OBJ) inffast.$(OBJ)
  3780. zlibd2_=inflate.$(OBJ) inftrees.$(OBJ) infutil.$(OBJ)
  3781. zlibd_ = $(zlibd1_) $(zlibd2_)
  3782. zlibd_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) zlibc.dev $(zlibd_)
  3783.     $(SETMOD) zlibd_0 $(zlibd1_)
  3784.     $(ADDMOD) zlibd_0 -obj $(zlibd2_)
  3785.     $(ADDMOD) zlibd_0 -include zlibc
  3786.  
  3787. infblock.$(OBJ): $(ZSRC)infblock.c $(ZDEP) zutil.h
  3788.     $(CP_) $(ZSRC)infblock.c .
  3789.     $(CCCZ) infblock.c
  3790.     $(RM_) infblock.c
  3791.  
  3792. infcodes.$(OBJ): $(ZSRC)infcodes.c $(ZDEP) zutil.h
  3793.     $(CP_) $(ZSRC)infcodes.c .
  3794.     $(CCCZ) infcodes.c
  3795.     $(RM_) infcodes.c
  3796.  
  3797. inffast.$(OBJ): $(ZSRC)inffast.c $(ZDEP) zutil.h
  3798.     $(CP_) $(ZSRC)inffast.c .
  3799.     $(CCCZ) inffast.c
  3800.     $(RM_) inffast.c
  3801.  
  3802. inflate.$(OBJ): $(ZSRC)inflate.c $(ZDEP) zutil.h
  3803.     $(CP_) $(ZSRC)inflate.c .
  3804.     $(CCCZ) inflate.c
  3805.     $(RM_) inflate.c
  3806.  
  3807. inftrees.$(OBJ): $(ZSRC)inftrees.c $(ZDEP) zutil.h
  3808.     $(CP_) $(ZSRC)inftrees.c .
  3809.     $(CCCZ) inftrees.c
  3810.     $(RM_) inftrees.c
  3811.  
  3812. infutil.$(OBJ): $(ZSRC)infutil.c $(ZDEP) zutil.h
  3813.     $(CP_) $(ZSRC)infutil.c .
  3814.     $(CCCZ) infutil.c
  3815.     $(RM_) infutil.c
  3816. #    Copyright (C) 1989, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  3817. # This file is part of Aladdin Ghostscript.
  3818. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  3819. # or distributor accepts any responsibility for the consequences of using it,
  3820. # or for whether it serves any particular purpose or works at all, unless he
  3821. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  3822. # License (the "License") for full details.
  3823. # Every copy of Aladdin Ghostscript must include a copy of the License,
  3824. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  3825. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  3826. # under certain conditions described in the License.  Among other things, the
  3827. # License requires that the copyright notice and this notice be preserved on
  3828. # all copies.
  3829.  
  3830. # makefile for device drivers.
  3831.  
  3832. # Define the name of this makefile.
  3833. DEVS_MAK=devs.mak
  3834.  
  3835. ###### --------------------------- Catalog -------------------------- ######
  3836.  
  3837. # It is possible to build configurations with an arbitrary collection of
  3838. # device drivers, although some drivers are supported only on a subset
  3839. # of the target platforms.  The currently available drivers are:
  3840.  
  3841. # MS-DOS displays (note: not usable with Desqview/X):
  3842. #   MS-DOS EGA and VGA:
  3843. #    ega    EGA (640x350, 16-color)
  3844. #    vga    VGA (640x480, 16-color)
  3845. #   MS-DOS SuperVGA:
  3846. # *    ali    SuperVGA using Avance Logic Inc. chipset, 256-color modes
  3847. # *    atiw    ATI Wonder SuperVGA, 256-color modes
  3848. # *    s3vga    SuperVGA using S3 86C911 chip (e.g., Diamond Stealth board)
  3849. #    svga16    Generic SuperVGA in 800x600, 16-color mode
  3850. # *    tseng    SuperVGA using Tseng Labs ET3000/4000 chips, 256-color modes
  3851. # *    tvga    SuperVGA using Trident chipset, 256-color modes
  3852. #   ****** NOTE: The vesa device does not work with the Watcom (32-bit MS-DOS)
  3853. #   ****** compiler or executable.
  3854. #    vesa    SuperVGA with VESA standard API driver
  3855. #   MS-DOS other:
  3856. #    bgi    Borland Graphics Interface (CGA)  [MS-DOS only]
  3857. # *    herc    Hercules Graphics display   [MS-DOS only]
  3858. # *    pe    Private Eye display
  3859. # Other displays:
  3860. #   MS Windows:
  3861. #    mswindll  Microsoft Windows 3.1 DLL  [MS Windows only]
  3862. #    mswinprn  Microsoft Windows 3.0, 3.1 DDB printer  [MS Windows only]
  3863. #    mswinpr2  Microsoft Windows 3.0, 3.1 DIB printer  [MS Windows only]
  3864. #   OS/2:
  3865. # *    os2pm    OS/2 Presentation Manager   [OS/2 only]
  3866. # *    os2dll    OS/2 DLL bitmap             [OS/2 only]
  3867. # *    os2prn    OS/2 printer                [OS/2 only]
  3868. #   Unix and VMS:
  3869. #   ****** NOTE: For direct frame buffer addressing under SCO Unix or Xenix,
  3870. #   ****** edit the definition of EGAVGA below.
  3871. # *    att3b1    AT&T 3b1/Unixpc monochrome display   [3b1 only]
  3872. # *    lvga256  Linux vgalib, 256-color VGA modes  [Linux only]
  3873. # *    sonyfb    Sony Microsystems monochrome display   [Sony only]
  3874. # *    sunview  SunView window system   [SunOS only]
  3875. # +    vgalib    Linux PC with VGALIB   [Linux only]
  3876. #    x11    X Windows version 11, release >=4   [Unix and VMS only]
  3877. #    x11alpha  X Windows masquerading as a device with alpha capability
  3878. #    x11cmyk  X Windows masquerading as a 1-bit-per-plane CMYK device
  3879. #    x11gray2  X Windows as a 2-bit gray-scale device
  3880. #    x11mono  X Windows masquerading as a black-and-white device
  3881. #   Platform-independent:
  3882. # *    sxlcrt    CRT sixels, e.g. for VT240-like terminals
  3883. # Printers:
  3884. # *    ap3250    Epson AP3250 printer
  3885. # *    appledmp  Apple Dot Matrix Printer (should also work with Imagewriter)
  3886. #    bj10e    Canon BubbleJet BJ10e
  3887. # *    bj200    Canon BubbleJet BJ200
  3888. # *    bjc600   Canon Color BubbleJet BJC-600, BJC-4000 and BJC-70
  3889. #               also good for Apple printers like the StyleWriter 2x00
  3890. # *    bjc800   Canon Color BubbleJet BJC-800
  3891. # *     ccr     CalComp Raster format
  3892. # *    cdeskjet  H-P DeskJet 500C with 1 bit/pixel color
  3893. # *    cdjcolor  H-P DeskJet 500C with 24 bit/pixel color and
  3894. #        high-quality color (Floyd-Steinberg) dithering;
  3895. #        also good for DeskJet 540C and Citizen Projet IIc (-r200x300)
  3896. # *    cdjmono  H-P DeskJet 500C printing black only;
  3897. #        also good for DeskJet 510, 520, and 540C (black only)
  3898. # *    cdj500    H-P DeskJet 500C (same as cdjcolor)
  3899. # *    cdj550    H-P DeskJet 550C/560C/660C/660Cse
  3900. # *    cp50    Mitsubishi CP50 color printer
  3901. # *    declj250  alternate DEC LJ250 driver
  3902. # +    deskjet  H-P DeskJet and DeskJet Plus
  3903. #    djet500  H-P DeskJet 500; use -r600 for DJ 600 series
  3904. # *    djet500c  H-P DeskJet 500C alternate driver
  3905. #        (does not work on 550C or 560C)
  3906. # *    dnj650c  H-P DesignJet 650C
  3907. #    epson    Epson-compatible dot matrix printers (9- or 24-pin)
  3908. # *    eps9mid  Epson-compatible 9-pin, interleaved lines
  3909. #        (intermediate resolution)
  3910. # *    eps9high  Epson-compatible 9-pin, interleaved lines
  3911. #        (triple resolution)
  3912. # *    epsonc    Epson LQ-2550 and Fujitsu 3400/2400/1200 color printers
  3913. # *    ibmpro  IBM 9-pin Proprinter
  3914. # *    imagen    Imagen ImPress printers
  3915. # *    iwhi    Apple Imagewriter in high-resolution mode
  3916. # *    iwlo    Apple Imagewriter in low-resolution mode
  3917. # *    iwlq    Apple Imagewriter LQ in 320 x 216 dpi mode
  3918. # *    jetp3852  IBM Jetprinter ink-jet color printer (Model #3852)
  3919. # +    laserjet  H-P LaserJet
  3920. # *    la50    DEC LA50 printer
  3921. # *    la70    DEC LA70 printer
  3922. # *    la70t    DEC LA70 printer with low-resolution text enhancement
  3923. # *    la75    DEC LA75 printer
  3924. # *    la75plus DEC LA75plus printer
  3925. # *    lbp8    Canon LBP-8II laser printer
  3926. # *    lips3    Canon LIPS III laser printer in English (CaPSL) mode
  3927. # *    ln03    DEC LN03 printer
  3928. # *    lj250    DEC LJ250 Companion color printer
  3929. # +    ljet2p    H-P LaserJet IId/IIp/III* with TIFF compression
  3930. # +    ljet3    H-P LaserJet III* with Delta Row compression
  3931. # +    ljet3d    H-P LaserJet IIID with duplex capability
  3932. # +    ljet4    H-P LaserJet 4 (defaults to 600 dpi)
  3933. # +    lj4dith  H-P LaserJet 4 with Floyd-Steinberg dithering
  3934. # +    ljetplus  H-P LaserJet Plus
  3935. #    lj5mono  H-P LaserJet 5 & 6 family (PCL XL), bitmap:
  3936. #        see below for restrictions & advice
  3937. #    lj5gray  H-P LaserJet 5 & 6 family, gray-scale bitmap;
  3938. #        see below for restrictions & advice
  3939. # *    lp2563    H-P 2563B line printer
  3940. # *    lp8000    Epson LP-8000 laser printer
  3941. # *     lq850   Epson LQ850 printer at 360 x 360 DPI resolution;
  3942. #               also good for Canon BJ300 with LQ850 emulation
  3943. # *    m8510    C.Itoh M8510 printer
  3944. # *    necp6    NEC P6/P6+/P60 printers at 360 x 360 DPI resolution
  3945. # *    nwp533  Sony Microsystems NWP533 laser printer   [Sony only]
  3946. # *    oce9050  OCE 9050 printer
  3947. # *    oki182    Okidata MicroLine 182
  3948. # *    okiibm    Okidata MicroLine IBM-compatible printers
  3949. # *    paintjet  alternate H-P PaintJet color printer
  3950. # *    pj    H-P PaintJet XL driver 
  3951. # *    pjetxl    alternate H-P PaintJet XL driver
  3952. # *    pjxl    H-P PaintJet XL color printer
  3953. # *    pjxl300  H-P PaintJet XL300 color printer;
  3954. #        also good for PaintJet 1200C
  3955. #    (pxlmono) H-P black-and-white PCL XL printers (LaserJet 5 and 6 family)
  3956. #    (pxlcolor) H-P color PCL XL printers (none available yet)
  3957. # *    r4081    Ricoh 4081 laser printer
  3958. # *    sj48    StarJet 48 inkjet printer
  3959. # *    sparc    SPARCprinter
  3960. # *    st800    Epson Stylus 800 printer
  3961. # *    stcolor    Epson Stylus Color
  3962. # *    t4693d2  Tektronix 4693d color printer, 2 bits per R/G/B component
  3963. # *    t4693d4  Tektronix 4693d color printer, 4 bits per R/G/B component
  3964. # *    t4693d8  Tektronix 4693d color printer, 8 bits per R/G/B component
  3965. # *    tek4696  Tektronix 4695/4696 inkjet plotter
  3966. # *    uniprint  Unified printer driver -- Configurable Color ESC/P-,
  3967. #        ESC/P2-, HP-RTL/PCL mono/color driver
  3968. # *    xes    Xerox XES printers (2700, 3700, 4045, etc.)
  3969. # Fax systems:
  3970. # *    dfaxhigh  DigiBoard, Inc.'s DigiFAX software format (high resolution)
  3971. # *    dfaxlow  DigiFAX low (normal) resolution
  3972. # Fax file format:
  3973. #   ****** NOTE: all of these drivers adjust the page size to match
  3974. #   ****** one of the three CCITT standard sizes (U.S. letter with A4 width,
  3975. #   ****** A4, or B4).
  3976. #    faxg3    Group 3 fax, with EOLs but no header or EOD
  3977. #    faxg32d  Group 3 2-D fax, with EOLs but no header or EOD
  3978. #    faxg4    Group 4 fax, with EOLs but no header or EOD
  3979. #    tiffcrle  TIFF "CCITT RLE 1-dim" (= Group 3 fax with no EOLs)
  3980. #    tiffg3    TIFF Group 3 fax (with EOLs)
  3981. #    tiffg32d  TIFF Group 3 2-D fax
  3982. #    tiffg4    TIFF Group 4 fax
  3983. # High-level file formats:
  3984. #    epswrite  EPS output (like PostScript Distillery)
  3985. #    pdfwrite  PDF output (like Adobe Acrobat Distiller)
  3986. #    pswrite  PostScript output (like PostScript Distillery)
  3987. #    pxlmono  Black-and-white PCL XL
  3988. #    pxlcolor  Color PCL XL
  3989. # Other raster file formats and devices:
  3990. #    bit    Plain bits, monochrome
  3991. #    bitrgb    Plain bits, RGB
  3992. #    bitcmyk  Plain bits, CMYK
  3993. #    bmpmono    Monochrome MS Windows .BMP file format
  3994. #    bmp16    4-bit (EGA/VGA) .BMP file format
  3995. #    bmp256    8-bit (256-color) .BMP file format
  3996. #    bmp16m    24-bit .BMP file format
  3997. #    cgmmono  Monochrome (black-and-white) CGM -- LOW LEVEL OUTPUT ONLY
  3998. #    cgm8    8-bit (256-color) CGM -- DITTO
  3999. #    cgm24    24-bit color CGM -- DITTO
  4000. # *    cif    CIF file format for VLSI
  4001. #    jpeg    JPEG format, RGB output
  4002. #    jpeggray  JPEG format, gray output
  4003. #    miff24    ImageMagick MIFF format, 24-bit direct color, RLE compressed
  4004. # *    mgrmono  1-bit monochrome MGR devices
  4005. # *    mgrgray2  2-bit gray scale MGR devices
  4006. # *    mgrgray4  4-bit gray scale MGR devices
  4007. # *    mgrgray8  8-bit gray scale MGR devices
  4008. # *    mgr4    4-bit (VGA) color MGR devices
  4009. # *    mgr8    8-bit color MGR devices
  4010. #    pcxmono    PCX file format, monochrome (1-bit black and white)
  4011. #    pcxgray    PCX file format, 8-bit gray scale
  4012. #    pcx16    PCX file format, 4-bit planar (EGA/VGA) color
  4013. #    pcx256    PCX file format, 8-bit chunky color
  4014. #    pcx24b    PCX file format, 24-bit color (3 8-bit planes)
  4015. #    pcxcmyk PCX file format, 4-bit chunky CMYK color
  4016. #    pbm    Portable Bitmap (plain format)
  4017. #    pbmraw    Portable Bitmap (raw format)
  4018. #    pgm    Portable Graymap (plain format)
  4019. #    pgmraw    Portable Graymap (raw format)
  4020. #    pgnm    Portable Graymap (plain format), optimizing to PBM if possible
  4021. #    pgnmraw    Portable Graymap (raw format), optimizing to PBM if possible
  4022. #    pnm    Portable Pixmap (plain format) (RGB), optimizing to PGM or PBM
  4023. #         if possible
  4024. #    pnmraw    Portable Pixmap (raw format) (RGB), optimizing to PGM or PBM
  4025. #         if possible
  4026. #    ppm    Portable Pixmap (plain format) (RGB)
  4027. #    ppmraw    Portable Pixmap (raw format) (RGB)
  4028. #    pkm    Portable inKmap (plain format) (4-bit CMYK => RGB)
  4029. #    pkmraw    Portable inKmap (raw format) (4-bit CMYK => RGB)
  4030. #    pngmono    Monochrome Portable Network Graphics (PNG)
  4031. #    pnggray    8-bit gray Portable Network Graphics (PNG)
  4032. #    png16    4-bit color Portable Network Graphics (PNG)
  4033. #    png256    8-bit color Portable Network Graphics (PNG)
  4034. #    png16m    24-bit color Portable Network Graphics (PNG)
  4035. #    psmono    PostScript (Level 1) monochrome image
  4036. #    psgray    PostScript (Level 1) 8-bit gray image
  4037. #    sgirgb    SGI RGB pixmap format
  4038. #    tiff12nc  TIFF 12-bit RGB, no compression
  4039. #    tiff24nc  TIFF 24-bit RGB, no compression (NeXT standard format)
  4040. #    tifflzw  TIFF LZW (tag = 5) (monochrome)
  4041. #    tiffpack  TIFF PackBits (tag = 32773) (monochrome)
  4042.  
  4043. # User-contributed drivers marked with * require hardware or software
  4044. # that is not available to Aladdin Enterprises.  Please contact the
  4045. # original contributors, not Aladdin Enterprises, if you have questions.
  4046. # Contact information appears in the driver entry below.
  4047. #
  4048. # Drivers marked with a + are maintained by Aladdin Enterprises with
  4049. # the assistance of users, since Aladdin Enterprises doesn't have access to
  4050. # the hardware for these either.
  4051.  
  4052. # If you add drivers, it would be nice if you kept each list
  4053. # in alphabetical order.
  4054.  
  4055. ###### ----------------------- End of catalog ----------------------- ######
  4056.  
  4057. # As noted in gs.mak, DEVICE_DEVS and DEVICE_DEVS1..15 select the devices
  4058. # that should be included in a given configuration.  By convention, these
  4059. # are used as follows.  Each of these must be limited to about 10 devices
  4060. # so as not to overflow the 120 character limit on MS-DOS command lines.
  4061. #    DEVICE_DEVS - the default device, and any display devices.
  4062. #    DEVICE_DEVS1 - additional display devices if needed.
  4063. #    DEVICE_DEVS2 - dot matrix printers.
  4064. #    DEVICE_DEVS3 - H-P monochrome printers.
  4065. #    DEVICE_DEVS4 - H-P color printers.
  4066. #    DEVICE_DEVS5 - additional H-P printers if needed.
  4067. #    DEVICE_DEVS6 - other ink-jet and laser printers.
  4068. #    DEVICE_DEVS7 - fax file formats.
  4069. #    DEVICE_DEVS8 - PCX file formats.
  4070. #    DEVICE_DEVS9 - PBM/PGM/PPM file formats.
  4071. #    DEVICE_DEVS10 - black-and-white TIFF file formats.
  4072. #    DEVICE_DEVS11 - BMP and color TIFF file formats.
  4073. #    DEVICE_DEVS12 - PostScript image and 'bit' file formats.
  4074. #    DEVICE_DEVS13 - PNG file formats.
  4075. #    DEVICE_DEVS14 - CGM, JPEG, and MIFF file formats.
  4076. #    DEVICE_DEVS15 - high-level (PostScript and PDF) file formats.
  4077. # Feel free to disregard this convention if it gets in your way.
  4078.  
  4079. # If you want to add a new device driver, the examples below should be
  4080. # enough of a guide to the correct form for the makefile rules.
  4081. # Note that all drivers other than displays must include page.dev in their
  4082. # dependencies and use $(SETPDEV) rather than $(SETDEV) in their rule bodies.
  4083.  
  4084. # All device drivers depend on the following:
  4085. GDEV=$(AK) $(ECHOGS_XE) $(gserrors_h) $(gx_h) $(gxdevice_h)
  4086.  
  4087. # "Printer" drivers depend on the following:
  4088. PDEVH=$(AK) $(gdevprn_h)
  4089.  
  4090. # Define the header files for device drivers.  Every header file used by
  4091. # more than one device driver family must be listed here.
  4092. gdev8bcm_h=gdev8bcm.h
  4093. gdevpccm_h=gdevpccm.h
  4094. gdevpcfb_h=gdevpcfb.h $(dos__h)
  4095. gdevpcl_h=gdevpcl.h
  4096. gdevsvga_h=gdevsvga.h
  4097. gdevx_h=gdevx.h
  4098.  
  4099. ###### ----------------------- Device support ----------------------- ######
  4100.  
  4101. # Provide a mapping between StandardEncoding and ISOLatin1Encoding.
  4102. gdevemap.$(OBJ): gdevemap.c $(AK) $(std_h)
  4103.  
  4104. # Implement dynamic color management for 8-bit mapped color displays.
  4105. gdev8bcm.$(OBJ): gdev8bcm.c $(AK) \
  4106.   $(gx_h) $(gxdevice_h) $(gdev8bcm_h)
  4107.  
  4108. ###### ------------------- MS-DOS display devices ------------------- ######
  4109.  
  4110. # There are really only three drivers: an EGA/VGA driver (4 bit-planes,
  4111. # plane-addressed), a SuperVGA driver (8 bit-planes, byte addressed),
  4112. # and a special driver for the S3 chip.
  4113.  
  4114. # PC display color mapping
  4115. gdevpccm.$(OBJ): gdevpccm.c $(AK) \
  4116.   $(gx_h) $(gsmatrix_h) $(gxdevice_h) $(gdevpccm_h)
  4117.  
  4118. ### ----------------------- EGA and VGA displays ----------------------- ###
  4119.  
  4120. # The shared MS-DOS makefile defines PCFBASM as either gdevegaa.$(OBJ)
  4121. # or an empty string.
  4122.  
  4123. gdevegaa.$(OBJ): gdevegaa.asm
  4124.  
  4125. # NOTE: for direct frame buffer addressing under SCO Unix or Xenix,
  4126. # change gdevevga to gdevsco in the following line.  Also, since
  4127. # SCO's /bin/as does not support the "out" instructions, you must build
  4128. # the gnu assembler and have it on your path as "as".
  4129. EGAVGA=gdevevga.$(OBJ) gdevpcfb.$(OBJ) gdevpccm.$(OBJ) $(PCFBASM)
  4130. #EGAVGA=gdevsco.$(OBJ) gdevpcfb.$(OBJ) gdevpccm.$(OBJ) $(PCFBASM)
  4131.  
  4132. gdevevga.$(OBJ): gdevevga.c $(GDEV) $(memory__h) $(gdevpcfb_h)
  4133.     $(CCD) gdevevga.c
  4134.  
  4135. gdevsco.$(OBJ): gdevsco.c $(GDEV) $(memory__h) $(gdevpcfb_h)
  4136.  
  4137. # Common code for MS-DOS and SCO.
  4138. gdevpcfb.$(OBJ): gdevpcfb.c $(GDEV) $(memory__h) $(gconfigv_h)\
  4139.  $(gdevpccm_h) $(gdevpcfb_h) $(gsparam_h)
  4140.     $(CCD) gdevpcfb.c
  4141.  
  4142. # The EGA/VGA family includes EGA and VGA.  Many SuperVGAs in 800x600,
  4143. # 16-color mode can share the same code; see the next section below.
  4144.  
  4145. ega.dev: $(EGAVGA)
  4146.     $(SETDEV) ega $(EGAVGA)
  4147.  
  4148. vga.dev: $(EGAVGA)
  4149.     $(SETDEV) vga $(EGAVGA)
  4150.  
  4151. ### ------------------------- SuperVGA displays ------------------------ ###
  4152.  
  4153. # SuperVGA displays in 16-color, 800x600 mode are really just slightly
  4154. # glorified VGA's, so we can handle them all with a single driver.
  4155. # The way to select them on the command line is with
  4156. #    -sDEVICE=svga16 -dDisplayMode=NNN
  4157. # where NNN is the display mode in decimal.  See use.txt for the modes
  4158. # for some popular display chipsets.
  4159.  
  4160. svga16.dev: $(EGAVGA)
  4161.     $(SETDEV) svga16 $(EGAVGA)
  4162.  
  4163. # More capable SuperVGAs have a wide variety of slightly differing
  4164. # interfaces, so we need a separate driver for each one.
  4165.  
  4166. SVGA=gdevsvga.$(OBJ) gdevpccm.$(OBJ) $(PCFBASM)
  4167.  
  4168. gdevsvga.$(OBJ): gdevsvga.c $(GDEV) $(memory__h) $(gconfigv_h)\
  4169.  $(gsparam_h) $(gxarith_h) $(gdevpccm_h) $(gdevpcfb_h) $(gdevsvga_h)
  4170.     $(CCD) gdevsvga.c
  4171.  
  4172. # The SuperVGA family includes: Avance Logic Inc., ATI Wonder, S3,
  4173. # Trident, Tseng ET3000/4000, and VESA.
  4174.  
  4175. ali.dev: $(SVGA)
  4176.     $(SETDEV) ali $(SVGA)
  4177.  
  4178. atiw.dev: $(SVGA)
  4179.     $(SETDEV) atiw $(SVGA)
  4180.  
  4181. tseng.dev: $(SVGA)
  4182.     $(SETDEV) tseng $(SVGA)
  4183.  
  4184. tvga.dev: $(SVGA)
  4185.     $(SETDEV) tvga $(SVGA)
  4186.  
  4187. vesa.dev: $(SVGA)
  4188.     $(SETDEV) vesa $(SVGA)
  4189.  
  4190. # The S3 driver doesn't share much code with the others.
  4191.  
  4192. s3vga_=gdevs3ga.$(OBJ) gdevsvga.$(OBJ) gdevpccm.$(OBJ)
  4193. s3vga.dev: $(SVGA) $(s3vga_)
  4194.     $(SETDEV) s3vga $(SVGA)
  4195.     $(ADDMOD) s3vga -obj $(s3vga_)
  4196.  
  4197. gdevs3ga.$(OBJ): gdevs3ga.c $(GDEV) $(gdevpcfb_h) $(gdevsvga_h)
  4198.     $(CCD) gdevs3ga.c
  4199.  
  4200. ### ------------ The BGI (Borland Graphics Interface) device ----------- ###
  4201.  
  4202. cgaf.$(OBJ): $(BGIDIR)\cga.bgi
  4203.     $(BGIDIR)\bgiobj /F $(BGIDIR)\cga
  4204.  
  4205. egavgaf.$(OBJ): $(BGIDIR)\egavga.bgi
  4206.     $(BGIDIR)\bgiobj /F $(BGIDIR)\egavga
  4207.  
  4208. # Include egavgaf.$(OBJ) for debugging only.
  4209. bgi_=gdevbgi.$(OBJ) cgaf.$(OBJ)
  4210. bgi.dev: $(bgi_)
  4211.     $(SETDEV) bgi $(bgi_)
  4212.     $(ADDMOD) bgi -lib $(LIBDIR)\graphics
  4213.  
  4214. gdevbgi.$(OBJ): gdevbgi.c $(GDEV) $(MAKEFILE) $(gxxfont_h)
  4215.     $(CCC) -DBGI_LIB="$(BGIDIRSTR)" gdevbgi.c
  4216.  
  4217. ### ------------------- The Hercules Graphics display ------------------- ###
  4218.  
  4219. herc_=gdevherc.$(OBJ)
  4220. herc.dev: $(herc_)
  4221.     $(SETDEV) herc $(herc_)
  4222.  
  4223. gdevherc.$(OBJ): gdevherc.c $(GDEV) $(dos__h) $(gsmatrix_h) $(gxbitmap_h)
  4224.     $(CCC) gdevherc.c
  4225.  
  4226. ### ---------------------- The Private Eye display ---------------------- ###
  4227. ### Note: this driver was contributed by a user:                          ###
  4228. ###   please contact narf@media-lab.media.mit.edu if you have questions.  ###
  4229.  
  4230. pe_=gdevpe.$(OBJ)
  4231. pe.dev: $(pe_)
  4232.     $(SETDEV) pe $(pe_)
  4233.  
  4234. gdevpe.$(OBJ): gdevpe.c $(GDEV) $(memory__h)
  4235.  
  4236. ###### ----------------------- Other displays ------------------------ ######
  4237.  
  4238. ### -------------------- The MS-Windows 3.n DLL ------------------------- ###
  4239.  
  4240. gsdll_h=gsdll.h
  4241.  
  4242. gdevmswn_h=gdevmswn.h $(GDEV)\
  4243.  $(dos__h) $(memory__h) $(string__h) $(windows__h)\
  4244.  gp_mswin.h
  4245.  
  4246. gdevmswn.$(OBJ): gdevmswn.c $(gdevmswn_h) $(gp_h) $(gpcheck_h) \
  4247.  $(gsdll_h) $(gsparam_h) $(gdevpccm_h)
  4248.  
  4249. gdevmsxf.$(OBJ): gdevmsxf.c $(ctype__h) $(math__h) $(memory__h) $(string__h)\
  4250.  $(gdevmswn_h) $(gsstruct_h) $(gsutil_h) $(gxxfont_h)
  4251.  
  4252. # An implementation using a DIB filled by an image device.
  4253. gdevwdib.$(OBJ): gdevwdib.c $(gdevmswn_h) $(gsdll_h) $(gxdevmem_h)
  4254.  
  4255. mswindll_=gdevmswn.$(OBJ) gdevmsxf.$(OBJ) gdevwdib.$(OBJ) \
  4256.   gdevemap.$(OBJ) gdevpccm.$(OBJ)
  4257. mswindll.dev: $(mswindll_)
  4258.     $(SETDEV) mswindll $(mswindll_)
  4259.  
  4260. ### -------------------- The MS-Windows DDB 3.n printer ----------------- ###
  4261.  
  4262. mswinprn_=gdevwprn.$(OBJ) gdevmsxf.$(OBJ)
  4263. mswinprn.dev: $(mswinprn_)
  4264.     $(SETDEV) mswinprn $(mswinprn_)
  4265.  
  4266. gdevwprn.$(OBJ): gdevwprn.c $(gdevmswn_h) $(gp_h)
  4267.  
  4268. ### -------------------- The MS-Windows DIB 3.n printer ----------------- ###
  4269.  
  4270. mswinpr2_=gdevwpr2.$(OBJ)
  4271. mswinpr2.dev: $(mswinpr2_) page.dev
  4272.     $(SETPDEV) mswinpr2 $(mswinpr2_)
  4273.  
  4274. gdevwpr2.$(OBJ): gdevwpr2.c $(PDEVH) $(windows__h)\
  4275.  $(gdevpccm_h) $(gp_h) gp_mswin.h
  4276.  
  4277. ### ------------------ OS/2 Presentation Manager device ----------------- ###
  4278.  
  4279. os2pm_=gdevpm.$(OBJ) gdevpccm.$(OBJ)
  4280. os2pm.dev: $(os2pm_)
  4281.     $(SETDEV) os2pm $(os2pm_)
  4282.  
  4283. os2dll_=gdevpm.$(OBJ) gdevpccm.$(OBJ)
  4284. os2dll.dev: $(os2dll_)
  4285.     $(SETDEV) os2dll $(os2dll_)
  4286.  
  4287. gdevpm.$(OBJ): gdevpm.c $(string__h)\
  4288.  $(gp_h) $(gpcheck_h)\
  4289.  $(gsdll_h) $(gserrors_h) $(gsexit_h) $(gsparam_h)\
  4290.  $(gx_h) $(gxdevice_h) $(gxdevmem_h)\
  4291.  $(gdevpccm_h) gdevpm.h
  4292.  
  4293. ### --------------------------- The OS/2 printer ------------------------ ###
  4294.  
  4295. os2prn_=gdevos2p.$(OBJ)
  4296. os2prn.dev: $(os2prn_) page.dev
  4297.     $(SETPDEV) os2prn $(os2prn_)
  4298.  
  4299. os2prn.$(OBJ): os2prn.c $(gp_h)
  4300.  
  4301. ### -------------- The AT&T 3b1 Unixpc monochrome display --------------- ###
  4302. ### Note: this driver was contributed by a user: please contact           ###
  4303. ###       Andy Fyfe (andy@cs.caltech.edu) if you have questions.          ###
  4304.  
  4305. att3b1_=gdev3b1.$(OBJ)
  4306. att3b1.dev: $(att3b1_)
  4307.     $(SETDEV) att3b1 $(att3b1_)
  4308.  
  4309. gdev3b1.$(OBJ): gdev3b1.c $(GDEV)
  4310.  
  4311. ### ---------------------- Linux PC with vgalib ------------------------- ###
  4312. ### Note: these drivers were contributed by users.                        ###
  4313. ### For questions about the lvga256 driver, please contact                ###
  4314. ###       Ludger Kunz (ludger.kunz@fernuni-hagen.de).                     ###
  4315. ### For questions about the vgalib driver, please contact                 ###
  4316. ###       Erik Talvola (talvola@gnu.ai.mit.edu).                          ###
  4317.  
  4318. lvga256_=gdevl256.$(OBJ)
  4319. lvga256.dev: $(lvga256_)
  4320.     $(SETDEV) lvga256 $(lvga256_)
  4321.     $(ADDMOD) lvga256 -lib vga vgagl
  4322.  
  4323. gdevl256.$(OBJ): gdevl256.c $(GDEV)
  4324.  
  4325. vgalib_=gdevvglb.$(OBJ) gdevpccm.$(OBJ)
  4326. vgalib.dev: $(vgalib_)
  4327.     $(SETDEV) vgalib $(vgalib_)
  4328.     $(ADDMOD) vgalib -lib vga
  4329.  
  4330. gdevvglb.$(OBJ): gdevvglb.c $(GDEV) $(gdevpccm_h) $(gsparam_h)
  4331.  
  4332. ### ------------------- Sony NeWS frame buffer device ------------------ ###
  4333. ### Note: this driver was contributed by a user: please contact          ###
  4334. ###       Mike Smolenski (mike@intertech.com) if you have questions.     ###
  4335.  
  4336. # This is implemented as a 'printer' device.
  4337. sonyfb_=gdevsnfb.$(OBJ)
  4338. sonyfb.dev: $(sonyfb_) page.dev
  4339.     $(SETPDEV) sonyfb $(sonyfb_)
  4340.  
  4341. gdevsnfb.$(OBJ): gdevsnfb.c $(PDEVH)
  4342.  
  4343. ### ------------------------ The SunView device ------------------------ ###
  4344. ### Note: this driver is maintained by a user: if you have questions,    ###
  4345. ###       please contact Andreas Stolcke (stolcke@icsi.berkeley.edu).    ###
  4346.  
  4347. sunview_=gdevsun.$(OBJ)
  4348. sunview.dev: $(sunview_)
  4349.     $(SETDEV) sunview $(sunview_)
  4350.     $(ADDMOD) sunview -lib suntool sunwindow pixrect
  4351.  
  4352. gdevsun.$(OBJ): gdevsun.c $(GDEV) $(malloc__h)\
  4353.  $(gscdefs_h) $(gserrors_h) $(gsmatrix_h)
  4354.  
  4355. ### -------------------------- The X11 device -------------------------- ###
  4356.  
  4357. # Aladdin Enterprises does not support Ghostview.  For more information
  4358. # about Ghostview, please contact Tim Theisen (ghostview@cs.wisc.edu).
  4359.  
  4360. # See the main makefile for the definition of XLIBS.
  4361. x11_=gdevx.$(OBJ) gdevxini.$(OBJ) gdevxxf.$(OBJ) gdevemap.$(OBJ)
  4362. x11.dev: $(x11_)
  4363.     $(SETDEV) x11 $(x11_)
  4364.     $(ADDMOD) x11 -lib $(XLIBS)
  4365.  
  4366. # See the main makefile for the definition of XINCLUDE.
  4367. GDEVX=$(GDEV) x_.h gdevx.h $(MAKEFILE)
  4368. gdevx.$(OBJ): gdevx.c $(GDEVX) $(math__h) $(memory__h) $(gsparam_h)
  4369.     $(CCC) $(XINCLUDE) gdevx.c
  4370.  
  4371. gdevxini.$(OBJ): gdevxini.c $(GDEVX) $(math__h) $(memory__h) $(gserrors_h)
  4372.     $(CCC) $(XINCLUDE) gdevxini.c
  4373.  
  4374. gdevxxf.$(OBJ): gdevxxf.c $(GDEVX) $(math__h) $(memory__h)\
  4375.  $(gsstruct_h) $(gsutil_h) $(gxxfont_h)
  4376.     $(CCC) $(XINCLUDE) gdevxxf.c
  4377.  
  4378. # Alternate X11-based devices to help debug other drivers.
  4379. # x11alpha pretends to have 4 bits of alpha channel.
  4380. # x11cmyk pretends to be a CMYK device with 1 bit each of C,M,Y,K.
  4381. # x11gray2 pretends to be a 2-bit gray-scale device.
  4382. # x11mono pretends to be a black-and-white device.
  4383. x11alt_=$(x11_) gdevxalt.$(OBJ)
  4384. x11alpha.dev: $(x11alt_)
  4385.     $(SETDEV) x11alpha $(x11alt_)
  4386.     $(ADDMOD) x11alpha -lib $(XLIBS)
  4387.  
  4388. x11cmyk.dev: $(x11alt_)
  4389.     $(SETDEV) x11cmyk $(x11alt_)
  4390.     $(ADDMOD) x11cmyk -lib $(XLIBS)
  4391.  
  4392. x11gray2.dev: $(x11alt_)
  4393.     $(SETDEV) x11gray2 $(x11alt_)
  4394.     $(ADDMOD) x11gray2 -lib $(XLIBS)
  4395.  
  4396. x11mono.dev: $(x11alt_)
  4397.     $(SETDEV) x11mono $(x11alt_)
  4398.     $(ADDMOD) x11mono -lib $(XLIBS)
  4399.  
  4400. gdevxalt.$(OBJ): gdevxalt.c $(GDEVX) $(math__h) $(memory__h) $(gsparam_h)
  4401.     $(CCC) $(XINCLUDE) gdevxalt.c
  4402.  
  4403. ### ------------------------- DEC sixel displays ------------------------ ###
  4404. ### Note: this driver was contributed by a user: please contact           ###
  4405. ###   Phil Keegstra (keegstra@tonga.gsfc.nasa.gov) if you have questions. ###
  4406.  
  4407. # This is a "printer" device, but it probably shouldn't be.
  4408. # I don't know why the implementor chose to do it this way.
  4409. sxlcrt_=gdevln03.$(OBJ)
  4410. sxlcrt.dev: $(sxlcrt_) page.dev
  4411.     $(SETPDEV) sxlcrt $(sxlcrt_)
  4412.  
  4413. ###### --------------- Memory-buffered printer devices --------------- ######
  4414.  
  4415. ### --------------------- The Apple printer devices --------------------- ###
  4416. ### Note: these drivers were contributed by users.                        ###
  4417. ###   If you have questions about the DMP driver, please contact          ###
  4418. ###    Mark Wedel (master@cats.ucsc.edu).                                ###
  4419. ###   If you have questions about the Imagewriter drivers, please contact ###
  4420. ###    Jonathan Luckey (luckey@rtfm.mlb.fl.us).                          ###
  4421. ###   If you have questions about the Imagewriter LQ driver, please       ###
  4422. ###    contact Scott Barker (barkers@cuug.ab.ca).                        ###
  4423.  
  4424. appledmp_=gdevadmp.$(OBJ)
  4425.  
  4426. gdevadmp.$(OBJ): gdevadmp.c $(PDEVH)
  4427.  
  4428. appledmp.dev: $(appledmp_) page.dev
  4429.     $(SETPDEV) appledmp $(appledmp_)
  4430.  
  4431. iwhi.dev: $(appledmp_) page.dev
  4432.     $(SETPDEV) iwhi $(appledmp_)
  4433.  
  4434. iwlo.dev: $(appledmp_) page.dev
  4435.     $(SETPDEV) iwlo $(appledmp_)
  4436.  
  4437. iwlq.dev: $(appledmp_) page.dev
  4438.     $(SETPDEV) iwlq $(appledmp_)
  4439.  
  4440. ### ------------ The Canon BubbleJet BJ10e and BJ200 devices ------------ ###
  4441.  
  4442. bj10e_=gdevbj10.$(OBJ)
  4443.  
  4444. bj10e.dev: $(bj10e_) page.dev
  4445.     $(SETPDEV) bj10e $(bj10e_)
  4446.  
  4447. bj200.dev: $(bj10e_) page.dev
  4448.     $(SETPDEV) bj200 $(bj10e_)
  4449.  
  4450. gdevbj10.$(OBJ): gdevbj10.c $(PDEVH)
  4451.  
  4452. ### ------------- The CalComp Raster Format ----------------------------- ###
  4453. ### Note: this driver was contributed by a user: please contact           ###
  4454. ###       Ernst Muellner (ernst.muellner@oenzl.siemens.de) if you have    ###
  4455. ###       questions.                                                      ###
  4456.  
  4457. ccr_=gdevccr.$(OBJ)
  4458. ccr.dev: $(ccr_) page.dev
  4459.     $(SETPDEV) ccr $(ccr_)
  4460.  
  4461. gdevccr.$(OBJ): gdevccr.c $(PDEVH)
  4462.  
  4463. ### ----------- The H-P DeskJet and LaserJet printer devices ----------- ###
  4464.  
  4465. ### These are essentially the same device.
  4466. ### NOTE: printing at full resolution (300 DPI) requires a printer
  4467. ###   with at least 1.5 Mb of memory.  150 DPI only requires .5 Mb.
  4468. ### Note that the lj4dith driver is included with the H-P color printer
  4469. ###   drivers below.
  4470.  
  4471. HPPCL=gdevpcl.$(OBJ)
  4472. HPMONO=gdevdjet.$(OBJ) $(HPPCL)
  4473.  
  4474. gdevpcl.$(OBJ): gdevpcl.c $(PDEVH) $(gdevpcl_h)
  4475.  
  4476. gdevdjet.$(OBJ): gdevdjet.c $(PDEVH) $(gdevpcl_h)
  4477.  
  4478. deskjet.dev: $(HPMONO) page.dev
  4479.     $(SETPDEV) deskjet $(HPMONO)
  4480.  
  4481. djet500.dev: $(HPMONO) page.dev
  4482.     $(SETPDEV) djet500 $(HPMONO)
  4483.  
  4484. laserjet.dev: $(HPMONO) page.dev
  4485.     $(SETPDEV) laserjet $(HPMONO)
  4486.  
  4487. ljetplus.dev: $(HPMONO) page.dev
  4488.     $(SETPDEV) ljetplus $(HPMONO)
  4489.  
  4490. ### Selecting ljet2p provides TIFF (mode 2) compression on LaserJet III,
  4491. ### IIIp, IIId, IIIsi, IId, and IIp. 
  4492.  
  4493. ljet2p.dev: $(HPMONO) page.dev
  4494.     $(SETPDEV) ljet2p $(HPMONO)
  4495.  
  4496. ### Selecting ljet3 provides Delta Row (mode 3) compression on LaserJet III,
  4497. ### IIIp, IIId, IIIsi.
  4498.  
  4499. ljet3.dev: $(HPMONO) page.dev
  4500.     $(SETPDEV) ljet3 $(HPMONO)
  4501.  
  4502. ### Selecting ljet3d also provides duplex printing capability.
  4503.  
  4504. ljet3d.dev: $(HPMONO) page.dev
  4505.     $(SETPDEV) ljet3d $(HPMONO)
  4506.  
  4507. ### Selecting ljet4 also provides Delta Row compression on LaserJet IV series.
  4508.  
  4509. ljet4.dev: $(HPMONO) page.dev
  4510.     $(SETPDEV) ljet4 $(HPMONO)
  4511.  
  4512. lp2563.dev: $(HPMONO) page.dev
  4513.     $(SETPDEV) lp2563 $(HPMONO)
  4514.  
  4515. oce9050.dev: $(HPMONO) page.dev
  4516.     $(SETPDEV) oce9050 $(HPMONO)
  4517.  
  4518. ### ------------------ The H-P LaserJet 5 and 6 devices ----------------- ###
  4519.  
  4520. ### These drivers use H-P's new PCL XL printer language, like H-P's
  4521. ### LaserJet 5 Enhanced driver for MS Windows.  We don't recommend using
  4522. ### them:
  4523. ###    - If you have a LJ 5L or 5P, which isn't a "real" LaserJet 5,
  4524. ###    use the ljet4 driver instead.  (The lj5 drivers won't work.)
  4525. ###    - If you have any other model of LJ 5 or 6, use the pxlmono
  4526. ###    driver, which often produces much more compact output.
  4527.  
  4528. gdevpxat_h=gdevpxat.h
  4529. gdevpxen_h=gdevpxen.h
  4530. gdevpxop_h=gdevpxop.h
  4531.  
  4532. ljet5_=gdevlj56.$(OBJ) $(HPPCL)
  4533. lj5mono.dev: $(ljet5_) page.dev
  4534.     $(SETPDEV) lj5mono $(ljet5_)
  4535.  
  4536. lj5gray.dev: $(ljet5_) page.dev
  4537.     $(SETPDEV) lj5gray $(ljet5_)
  4538.  
  4539. gdevlj56.$(OBJ): gdevlj56.c $(PDEVH) $(gdevpcl_h)\
  4540.  $(gdevpxat_h) $(gdevpxen_h) $(gdevpxop_h)
  4541.  
  4542. ### The H-P DeskJet, PaintJet, and DesignJet family color printer devices.###
  4543. ### Note: there are two different 500C drivers, both contributed by users.###
  4544. ###   If you have questions about the djet500c driver,                    ###
  4545. ###       please contact AKayser@et.tudelft.nl.                           ###
  4546. ###   If you have questions about the cdj* drivers,                       ###
  4547. ###       please contact g.cameron@biomed.abdn.ac.uk.                     ###
  4548. ###   If you have questions about the dnj560c driver,                     ###
  4549. ###       please contact koert@zen.cais.com.                              ###
  4550. ###   If you have questions about the lj4dith driver,                     ###
  4551. ###       please contact Eckhard.Rueggeberg@ts.go.dlr.de.                 ###
  4552. ###   If you have questions about the BJC600/BJC4000, BJC800, or ESCP     ###
  4553. ###       drivers, please contact Yves.Arrouye@imag.fr.                   ###
  4554.  
  4555. cdeskjet_=gdevcdj.$(OBJ) $(HPPCL)
  4556.  
  4557. cdeskjet.dev: $(cdeskjet_) page.dev
  4558.     $(SETPDEV) cdeskjet $(cdeskjet_)
  4559.  
  4560. cdjcolor.dev: $(cdeskjet_) page.dev
  4561.     $(SETPDEV) cdjcolor $(cdeskjet_)
  4562.  
  4563. cdjmono.dev: $(cdeskjet_) page.dev
  4564.     $(SETPDEV) cdjmono $(cdeskjet_)
  4565.  
  4566. cdj500.dev: $(cdeskjet_) page.dev
  4567.     $(SETPDEV) cdj500 $(cdeskjet_)
  4568.  
  4569. cdj550.dev: $(cdeskjet_) page.dev
  4570.     $(SETPDEV) cdj550 $(cdeskjet_)
  4571.  
  4572. declj250.dev: $(cdeskjet_) page.dev
  4573.     $(SETPDEV) declj250 $(cdeskjet_)
  4574.  
  4575. dnj650c.dev: $(cdeskjet_) page.dev
  4576.     $(SETPDEV) dnj650c $(cdeskjet_)
  4577.  
  4578. lj4dith.dev: $(cdeskjet_) page.dev
  4579.     $(SETPDEV) lj4dith $(cdeskjet_)
  4580.  
  4581. pj.dev: $(cdeskjet_) page.dev
  4582.     $(SETPDEV) pj $(cdeskjet_)
  4583.  
  4584. pjxl.dev: $(cdeskjet_) page.dev
  4585.     $(SETPDEV) pjxl $(cdeskjet_)
  4586.  
  4587. pjxl300.dev: $(cdeskjet_) page.dev
  4588.     $(SETPDEV) pjxl300 $(cdeskjet_)
  4589.  
  4590. # Note: the BJC600 driver also works for the BJC4000.
  4591. bjc600.dev: $(cdeskjet_) page.dev
  4592.     $(SETPDEV) bjc600 $(cdeskjet_)
  4593.  
  4594. bjc800.dev: $(cdeskjet_) page.dev
  4595.     $(SETPDEV) bjc800 $(cdeskjet_)
  4596.  
  4597. escp.dev: $(cdeskjet_) page.dev
  4598.     $(SETPDEV) escp $(cdeskjet_)
  4599.  
  4600. # NB: you can also customise the build if required, using
  4601. # -DBitsPerPixel=<number> if you wish the default to be other than 24
  4602. # for the generic drivers (cdj500, cdj550, pjxl300, pjtest, pjxltest).
  4603. gdevcdj.$(OBJ): gdevcdj.c $(std_h) $(PDEVH) gdevbjc.h\
  4604.  $(gsparam_h) $(gsstate_h) $(gxlum_h)\
  4605.  $(gdevpcl_h)
  4606.  
  4607. djet500c_=gdevdjtc.$(OBJ) $(HPPCL)
  4608. djet500c.dev: $(djet500c_) page.dev
  4609.     $(SETPDEV) djet500c $(djet500c_)
  4610.  
  4611. gdevdjtc.$(OBJ): gdevdjtc.c $(PDEVH) $(malloc__h) $(gdevpcl_h)
  4612.  
  4613. ### -------------------- The Mitsubishi CP50 printer -------------------- ###
  4614. ### Note: this driver was contributed by a user: please contact           ###
  4615. ###       Michael Hu (michael@ximage.com) if you have questions.          ###
  4616.  
  4617. cp50_=gdevcp50.$(OBJ)
  4618. cp50.dev: $(cp50_) page.dev
  4619.     $(SETPDEV) cp50 $(cp50_)
  4620.  
  4621. gdevcp50.$(OBJ): gdevcp50.c $(PDEVH)
  4622.  
  4623. ### ----------------- The generic Epson printer device ----------------- ###
  4624. ### Note: most of this code was contributed by users.  Please contact    ###
  4625. ###       the following people if you have questions:                    ###
  4626. ###   eps9mid - Guenther Thomsen (thomsen@cs.tu-berlin.de)               ###
  4627. ###   eps9high - David Wexelblat (dwex@mtgzfs3.att.com)                  ###
  4628. ###   ibmpro - James W. Birdsall (jwbirdsa@picarefy.picarefy.com)        ###
  4629.  
  4630. epson_=gdevepsn.$(OBJ)
  4631.  
  4632. epson.dev: $(epson_) page.dev
  4633.     $(SETPDEV) epson $(epson_)
  4634.  
  4635. eps9mid.dev: $(epson_) page.dev
  4636.     $(SETPDEV) eps9mid $(epson_)
  4637.  
  4638. eps9high.dev: $(epson_) page.dev
  4639.     $(SETPDEV) eps9high $(epson_)
  4640.  
  4641. gdevepsn.$(OBJ): gdevepsn.c $(PDEVH)
  4642.  
  4643. ### ----------------- The IBM Proprinter printer device ---------------- ###
  4644.  
  4645. ibmpro.dev: $(epson_) page.dev
  4646.     $(SETPDEV) ibmpro $(epson_)
  4647.  
  4648. ### -------------- The Epson LQ-2550 color printer device -------------- ###
  4649. ### Note: this driver was contributed by users: please contact           ###
  4650. ###       Dave St. Clair (dave@exlog.com) if you have questions.         ###
  4651.  
  4652. epsonc_=gdevepsc.$(OBJ)
  4653. epsonc.dev: $(epsonc_) page.dev
  4654.     $(SETPDEV) epsonc $(epsonc_)
  4655.  
  4656. gdevepsc.$(OBJ): gdevepsc.c $(PDEVH)
  4657.  
  4658. ### ------------- The Epson ESC/P 2 language printer devices ------------- ###
  4659. ### Note: these drivers were contributed by users.                         ###
  4660. ### For questions about the Stylus 800 and AP3250 drivers, please contact  ###
  4661. ###        Richard Brown (rab@tauon.ph.unimelb.edu.au).                    ###
  4662. ### For questions about the Stylus Color drivers, please contact           ###
  4663. ###        Gunther Hess (gunther@elmos.de).                                ###
  4664.  
  4665. ESCP2=gdevescp.$(OBJ)
  4666.  
  4667. gdevescp.$(OBJ): gdevescp.c $(PDEVH)
  4668.  
  4669. ap3250.dev: $(ESCP2) page.dev
  4670.     $(SETPDEV) ap3250 $(ESCP2)
  4671.  
  4672. st800.dev: $(ESCP2) page.dev
  4673.     $(SETPDEV) st800 $(ESCP2)
  4674.  
  4675. stcolor1_=gdevstc.$(OBJ) gdevstc1.$(OBJ) gdevstc2.$(OBJ)
  4676. stcolor2_=gdevstc3.$(OBJ) gdevstc4.$(OBJ)
  4677. stcolor.dev: $(stcolor1_) $(stcolor2_) page.dev
  4678.     $(SETPDEV) stcolor $(stcolor1_)
  4679.     $(ADDMOD) stcolor -obj $(stcolor2_)
  4680.  
  4681. gdevstc.$(OBJ): gdevstc.c gdevstc.h $(PDEVH)
  4682.  
  4683. gdevstc1.$(OBJ): gdevstc1.c gdevstc.h $(PDEVH)
  4684.  
  4685. gdevstc2.$(OBJ): gdevstc2.c gdevstc.h $(PDEVH)
  4686.  
  4687. gdevstc3.$(OBJ): gdevstc3.c gdevstc.h $(PDEVH)
  4688.  
  4689. gdevstc4.$(OBJ): gdevstc4.c gdevstc.h $(PDEVH)
  4690.  
  4691. ### --------------- Ugly/Update -> Unified Printer Driver ---------------- ###
  4692. ### For questions about this driver, please contact:                       ###
  4693. ###        Gunther Hess (gunther@elmos.de)                                 ###
  4694.  
  4695. uniprint_=gdevupd.$(OBJ)
  4696. uniprint.dev: $(uniprint_) page.dev
  4697.     $(SETPDEV) uniprint $(uniprint_)
  4698.  
  4699. gdevupd.$(OBJ): gdevupd.c $(PDEVH) $(gsparam_h)
  4700.  
  4701. ### -------------- cdj850 - HP 850c Driver under development ------------- ###
  4702. ### Since this driver is in the development-phase it is not distributed    ###
  4703. ### with ghostscript, but it is available via anonymous ftp from:          ###
  4704. ###                        ftp://bonk.ethz.ch                              ###
  4705. ### For questions about this driver, please contact:                       ###
  4706. ###       Uli Wortmann (E-Mail address inside the driver-package)          ###
  4707.  
  4708. cdeskjet8_=gdevcd8.$(OBJ) $(HPPCL)
  4709.  
  4710. cdj850.dev: $(cdeskjet8_) page.dev
  4711.     $(SETPDEV) cdj850 $(cdeskjet8_)
  4712.  
  4713. ### ------------ The H-P PaintJet color printer device ----------------- ###
  4714. ### Note: this driver also supports the DEC LJ250 color printer, which   ###
  4715. ###       has a PaintJet-compatible mode, and the PaintJet XL.           ###
  4716. ### If you have questions about the XL, please contact Rob Reiss         ###
  4717. ###       (rob@moray.berkeley.edu).                                      ###
  4718.  
  4719. PJET=gdevpjet.$(OBJ) $(HPPCL)
  4720.  
  4721. gdevpjet.$(OBJ): gdevpjet.c $(PDEVH) $(gdevpcl_h)
  4722.  
  4723. lj250.dev: $(PJET) page.dev
  4724.     $(SETPDEV) lj250 $(PJET)
  4725.  
  4726. paintjet.dev: $(PJET) page.dev
  4727.     $(SETPDEV) paintjet $(PJET)
  4728.  
  4729. pjetxl.dev: $(PJET) page.dev
  4730.     $(SETPDEV) pjetxl $(PJET)
  4731.  
  4732. ### -------------- Imagen ImPress Laser Printer device ----------------- ###
  4733. ### Note: this driver was contributed by a user: please contact          ###
  4734. ###       Alan Millar (AMillar@bolis.sf-bay.org) if you have questions.  ###
  4735. ### Set USE_BYTE_STREAM if using parallel interface;                     ###
  4736. ### Don't set it if using 'ipr' spooler (default).                       ###
  4737. ### You may also add -DA4 if needed for A4 paper.             ###
  4738.  
  4739. imagen_=gdevimgn.$(OBJ)
  4740. imagen.dev: $(imagen_) page.dev
  4741.     $(SETPDEV) imagen $(imagen_)
  4742.  
  4743. gdevimgn.$(OBJ): gdevimgn.c $(PDEVH)
  4744.     $(CCC) gdevimgn.c            # for ipr spooler
  4745. #    $(CCC) -DUSE_BYTE_STREAM gdevimgn.c    # for parallel
  4746.  
  4747. ### ------- The IBM 3852 JetPrinter color inkjet printer device -------- ###
  4748. ### Note: this driver was contributed by users: please contact           ###
  4749. ###       Kevin Gift (kgift@draper.com) if you have questions.           ###
  4750. ### Note that the paper size that can be addressed by the graphics mode  ###
  4751. ###   used in this driver is fixed at 7-1/2 inches wide (the printable   ###
  4752. ###   width of the jetprinter itself.)                                   ###
  4753.  
  4754. jetp3852_=gdev3852.$(OBJ)
  4755. jetp3852.dev: $(jetp3852_) page.dev
  4756.     $(SETPDEV) jetp3852 $(jetp3852_)
  4757.  
  4758. gdev3852.$(OBJ): gdev3852.c $(PDEVH) $(gdevpcl_h)
  4759.  
  4760. ### ---------- The Canon LBP-8II and LIPS III printer devices ---------- ###
  4761. ### Note: these drivers were contributed by users.                       ###
  4762. ### For questions about these drivers, please contact                    ###
  4763. ###       Lauri Paatero, lauri.paatero@paatero.pp.fi                     ###
  4764.  
  4765. lbp8_=gdevlbp8.$(OBJ)
  4766. lbp8.dev: $(lbp8_) page.dev
  4767.     $(SETPDEV) lbp8 $(lbp8_)
  4768.  
  4769. lips3.dev: $(lbp8_) page.dev
  4770.     $(SETPDEV) lips3 $(lbp8_)
  4771.  
  4772. gdevlbp8.$(OBJ): gdevlbp8.c $(PDEVH)
  4773.  
  4774. ### ----------- The DEC LN03/LA50/LA70/LA75 printer devices ------------ ###
  4775. ### Note: this driver was contributed by users: please contact           ###
  4776. ###       Ulrich Mueller (ulm@vsnhd1.cern.ch) if you have questions.     ###
  4777. ### For questions about LA50 and LA75, please contact                    ###
  4778. ###       Ian MacPhedran (macphed@dvinci.USask.CA).                      ###
  4779. ### For questions about the LA70, please contact                         ###
  4780. ###       Bruce Lowekamp (lowekamp@csugrad.cs.vt.edu).                   ###
  4781. ### For questions about the LA75plus, please contact                     ###
  4782. ###       Andre' Beck (Andre_Beck@IRS.Inf.TU-Dresden.de).                ###
  4783.  
  4784. ln03_=gdevln03.$(OBJ)
  4785. ln03.dev: $(ln03_) page.dev
  4786.     $(SETPDEV) ln03 $(ln03_)
  4787.  
  4788. la50.dev: $(ln03_) page.dev
  4789.     $(SETPDEV) la50 $(ln03_)
  4790.  
  4791. la70.dev: $(ln03_) page.dev
  4792.     $(SETPDEV) la70 $(ln03_)
  4793.  
  4794. la75.dev: $(ln03_) page.dev
  4795.     $(SETPDEV) la75 $(ln03_)
  4796.  
  4797. la75plus.dev: $(ln03_) page.dev
  4798.     $(SETPDEV) la75plus $(ln03_)
  4799.  
  4800. gdevln03.$(OBJ): gdevln03.c $(PDEVH)
  4801.  
  4802. # LA70 driver with low-resolution text enhancement.
  4803.  
  4804. la70t_=gdevla7t.$(OBJ)
  4805. la70t.dev: $(la70t_) page.dev
  4806.     $(SETPDEV) la70t $(la70t_)
  4807.  
  4808. gdevla7t.$(OBJ): gdevla7t.c $(PDEVH)
  4809.  
  4810. ### -------------- The Epson LP-8000 laser printer device -------------- ###
  4811. ### Note: this driver was contributed by a user: please contact Oleg     ###
  4812. ###       Oleg Fat'yanov <faty1@rlem.titech.ac.jp> if you have questions.###
  4813.  
  4814. lp8000_=gdevlp8k.$(OBJ)
  4815. lp8000.dev: $(lp8000_) page.dev
  4816.     $(SETPDEV) lp8000 $(lp8000_)
  4817.  
  4818. gdevlp8k.$(OBJ): gdevlp8k.c $(PDEVH)
  4819.  
  4820. ### -------------- The C.Itoh M8510 printer device --------------------- ###
  4821. ### Note: this driver was contributed by a user: please contact Bob      ###
  4822. ###       Smith <bob@snuffy.penfield.ny.us> if you have questions.       ###
  4823.  
  4824. m8510_=gdev8510.$(OBJ)
  4825. m8510.dev: $(m8510_) page.dev
  4826.     $(SETPDEV) m8510 $(m8510_)
  4827.  
  4828. gdev8510.$(OBJ): gdev8510.c $(PDEVH)
  4829.  
  4830. ### -------------- 24pin Dot-matrix printer with 360DPI ---------------- ###
  4831. ### Note: this driver was contributed by users.  Please contact:         ###
  4832. ###    Andreas Schwab (schwab@ls5.informatik.uni-dortmund.de) for        ###
  4833. ###      questions about the NEC P6;                                     ###
  4834. ###    Christian Felsch (felsch@tu-harburg.d400.de) for                  ###
  4835. ###      questions about the Epson LQ850.                                ###
  4836.  
  4837. dm24_=gdevdm24.$(OBJ)
  4838. gdevdm24.$(OBJ): gdevdm24.c $(PDEVH)
  4839.  
  4840. necp6.dev: $(dm24_) page.dev
  4841.     $(SETPDEV) necp6 $(dm24_)
  4842.  
  4843. lq850.dev: $(dm24_) page.dev
  4844.     $(SETPDEV) lq850 $(dm24_)
  4845.  
  4846. ### ----------------- The Okidata MicroLine 182 device ----------------- ###
  4847. ### Note: this driver was contributed by a user: please contact          ###
  4848. ###       Maarten Koning (smeg@bnr.ca) if you have questions.            ###
  4849.  
  4850. oki182_=gdevo182.$(OBJ)
  4851. oki182.dev: $(oki182_) page.dev
  4852.     $(SETPDEV) oki182 $(oki182_)
  4853.  
  4854. gdevo182.$(OBJ): gdevo182.c $(PDEVH)
  4855.  
  4856. ### ------------- The Okidata IBM compatible printer device ------------ ###
  4857. ### Note: this driver was contributed by a user: please contact          ###
  4858. ###       Charles Mack (chasm@netcom.com) if you have questions.         ###
  4859.  
  4860. okiibm_=gdevokii.$(OBJ)
  4861. okiibm.dev: $(okiibm_) page.dev
  4862.     $(SETPDEV) okiibm $(okiibm_)
  4863.  
  4864. gdevokii.$(OBJ): gdevokii.c $(PDEVH)
  4865.  
  4866. ### ------------- The Ricoh 4081 laser printer device ------------------ ###
  4867. ### Note: this driver was contributed by users:                          ###
  4868. ###       please contact kdw@oasis.icl.co.uk if you have questions.      ###
  4869.  
  4870. r4081_=gdev4081.$(OBJ)
  4871. r4081.dev: $(r4081_) page.dev
  4872.     $(SETPDEV) r4081 $(r4081_)
  4873.  
  4874.  
  4875. gdev4081.$(OBJ): gdev4081.c $(PDEVH)
  4876.  
  4877. ### -------------------- Sony NWP533 printer device -------------------- ###
  4878. ### Note: this driver was contributed by a user: please contact Tero     ###
  4879. ###       Kivinen (kivinen@joker.cs.hut.fi) if you have questions.       ###
  4880.  
  4881. nwp533_=gdevn533.$(OBJ)
  4882. nwp533.dev: $(nwp533_) page.dev
  4883.     $(SETPDEV) nwp533 $(nwp533_)
  4884.  
  4885. gdevn533.$(OBJ): gdevn533.c $(PDEVH)
  4886.  
  4887. ### ------------------------- The SPARCprinter ------------------------- ###
  4888. ### Note: this driver was contributed by users: please contact Martin    ###
  4889. ###       Schulte (schulte@thp.uni-koeln.de) if you have questions.      ###
  4890. ###       He would also like to hear from anyone using the driver.       ###
  4891. ### Please consult the source code for additional documentation.         ###
  4892.  
  4893. sparc_=gdevsppr.$(OBJ)
  4894. sparc.dev: $(sparc_) page.dev
  4895.     $(SETPDEV) sparc $(sparc_)
  4896.  
  4897. gdevsppr.$(OBJ): gdevsppr.c $(PDEVH)
  4898.  
  4899. ### ----------------- The StarJet SJ48 device -------------------------- ###
  4900. ### Note: this driver was contributed by a user: if you have questions,  ###
  4901. ###                          .                                          ###
  4902. ###       please contact Mats Akerblom (f86ma@dd.chalmers.se).           ###
  4903.  
  4904. sj48_=gdevsj48.$(OBJ)
  4905. sj48.dev: $(sj48_) page.dev
  4906.     $(SETPDEV) sj48 $(sj48_)
  4907.  
  4908. gdevsj48.$(OBJ): gdevsj48.c $(PDEVH)
  4909.  
  4910. ### ----------------- Tektronix 4396d color printer -------------------- ###
  4911. ### Note: this driver was contributed by a user: please contact          ###
  4912. ###       Karl Hakimian (hakimian@haney.eecs.wsu.edu)                    ###
  4913. ###       if you have questions.                                         ###
  4914.  
  4915. t4693d_=gdev4693.$(OBJ)
  4916. t4693d2.dev: $(t4693d_) page.dev
  4917.     $(SETPDEV) t4693d2 $(t4693d_)
  4918.  
  4919. t4693d4.dev: $(t4693d_) page.dev
  4920.     $(SETPDEV) t4693d4 $(t4693d_)
  4921.  
  4922. t4693d8.dev: $(t4693d_) page.dev
  4923.     $(SETPDEV) t4693d8 $(t4693d_)
  4924.  
  4925. gdev4693.$(OBJ): gdev4693.c $(PDEVH)
  4926.  
  4927. ### -------------------- Tektronix ink-jet printers -------------------- ###
  4928. ### Note: this driver was contributed by a user: please contact          ###
  4929. ###       Karsten Spang (spang@nbivax.nbi.dk) if you have questions.     ###
  4930.  
  4931. tek4696_=gdevtknk.$(OBJ)
  4932. tek4696.dev: $(tek4696_) page.dev
  4933.     $(SETPDEV) tek4696 $(tek4696_)
  4934.  
  4935. gdevtknk.$(OBJ): gdevtknk.c $(PDEVH) $(malloc__h)
  4936.  
  4937. ### ----------------- The Xerox XES printer device --------------------- ###
  4938. ### Note: this driver was contributed by users: please contact           ###
  4939. ###       Peter Flass (flass@lbdrscs.bitnet) if you have questions.      ###
  4940.  
  4941. xes_=gdevxes.$(OBJ)
  4942. xes.dev: $(xes_) page.dev
  4943.     $(SETPDEV) xes $(xes_)
  4944.  
  4945. gdevxes.$(OBJ): gdevxes.c $(PDEVH)
  4946.  
  4947. ###### ------------------------- Fax devices ------------------------- ######
  4948.  
  4949. ### --------------- Generic PostScript system compatible fax ------------ ###
  4950.  
  4951. # This code doesn't work yet.  Don't even think about using it.
  4952.  
  4953. PSFAX=gdevpfax.$(OBJ)
  4954.  
  4955. psfax_=$(PSFAX)
  4956. psfax.dev: $(psfax_) page.dev
  4957.     $(SETPDEV) psfax $(psfax_)
  4958.     $(ADDMOD) psfax -iodev Fax
  4959.  
  4960. gdevpfax.$(OBJ): gdevpfax.c $(PDEVH) $(gsparam_h) $(gxiodev_h)
  4961.  
  4962. ### ------------------------- The DigiFAX device ------------------------ ###
  4963. ###    This driver outputs images in a format suitable for use with       ###
  4964. ###    DigiBoard, Inc.'s DigiFAX software.  Use -sDEVICE=dfaxhigh for     ###
  4965. ###    high resolution output, -sDEVICE=dfaxlow for normal output.        ###
  4966. ### Note: this driver was contributed by a user: please contact           ###
  4967. ###       Rick Richardson (rick@digibd.com) if you have questions.        ###
  4968.  
  4969. dfax_=gdevdfax.$(OBJ) gdevtfax.$(OBJ)
  4970.  
  4971. dfaxlow.dev: $(dfax_) page.dev
  4972.     $(SETPDEV) dfaxlow $(dfax_)
  4973.     $(ADDMOD) dfaxlow -include cfe
  4974.  
  4975. dfaxhigh.dev: $(dfax_) page.dev
  4976.     $(SETPDEV) dfaxhigh $(dfax_)
  4977.     $(ADDMOD) dfaxhigh -include cfe
  4978.  
  4979. gdevdfax.$(OBJ): gdevdfax.c $(PDEVH) $(scfx_h) $(strimpl_h)
  4980.  
  4981. ### --------------See under TIFF below for fax-format TIFF -------------- ###
  4982.  
  4983. ###### ------------------- High-level file formats ------------------- ######
  4984.  
  4985. # Support for PostScript and PDF
  4986.  
  4987. gdevpsdf_h=gdevpsdf.h $(gdevvec_h) $(strimpl_h)
  4988. gdevpstr_h=gdevpstr.h
  4989.  
  4990. gdevpsdf.$(OBJ): gdevpsdf.c $(stdio__h) $(string__h)\
  4991.  $(gserror_h) $(gserrors_h) $(gsmemory_h) $(gsparam_h) $(gstypes_h)\
  4992.  $(gxdevice_h)\
  4993.  $(scfx_h) $(slzwx_h) $(srlx_h) $(strimpl_h)\
  4994.  $(gdevpsdf_h) $(gdevpstr_h)
  4995.  
  4996. gdevpstr.$(OBJ): gdevpstr.c $(math__h) $(stdio__h) $(string__h)\
  4997.  $(gdevpstr_h) $(stream_h)
  4998.  
  4999. # PostScript and EPS writers
  5000.  
  5001. pswrite1_=gdevps.$(OBJ) gdevpsdf.$(OBJ) gdevpstr.$(OBJ)
  5002. pswrite2_=scantab.$(OBJ) sfilter2.$(OBJ)
  5003. pswrite_=$(pswrite1_) $(pswrite2_)
  5004. epswrite.dev: $(ECHOGS_XE) $(pswrite_) vector.dev
  5005.     $(SETDEV) epswrite $(pswrite1_)
  5006.     $(ADDMOD) epswrite $(pswrite2_)
  5007.     $(ADDMOD) epswrite -include vector
  5008.  
  5009. pswrite.dev: $(ECHOGS_XE) $(pswrite_) vector.dev
  5010.     $(SETDEV) pswrite $(pswrite1_)
  5011.     $(ADDMOD) pswrite $(pswrite2_)
  5012.     $(ADDMOD) pswrite -include vector
  5013.  
  5014. gdevps.$(OBJ): gdevps.c $(GDEV) $(math__h) $(time__h)\
  5015.  $(gscdefs_h) $(gscspace_h) $(gsparam_h) $(gsiparam_h) $(gsmatrix_h)\
  5016.  $(gxdcolor_h)\
  5017.  $(sa85x_h) $(strimpl_h)\
  5018.  $(gdevpsdf_h) $(gdevpstr_h)
  5019.  
  5020. # PDF writer
  5021. # Note that gs_pdfwr.ps will only actually be loaded if the configuration
  5022. # includes a PostScript interpreter.
  5023.  
  5024. pdfwrite1_=gdevpdf.$(OBJ) gdevpdfd.$(OBJ) gdevpdfi.$(OBJ) gdevpdfm.$(OBJ)
  5025. pdfwrite2_=gdevpdfp.$(OBJ) gdevpdft.$(OBJ) gdevpsdf.$(OBJ) gdevpstr.$(OBJ)
  5026. pdfwrite3_=gsflip.$(OBJ) scantab.$(OBJ) sfilter2.$(OBJ) sstring.$(OBJ)
  5027. pdfwrite_=$(pdfwrite1_) $(pdfwrite2_) $(pdfwrite3_)
  5028. pdfwrite.dev: $(ECHOGS_XE) $(pdfwrite_) \
  5029.   cmyklib.dev cfe.dev dcte.dev lzwe.dev rle.dev vector.dev
  5030.     $(SETDEV) pdfwrite $(pdfwrite1_)
  5031.     $(ADDMOD) pdfwrite $(pdfwrite2_)
  5032.     $(ADDMOD) pdfwrite $(pdfwrite3_)
  5033.     $(ADDMOD) pdfwrite -ps gs_pdfwr
  5034.     $(ADDMOD) pdfwrite -include cmyklib cfe dcte lzwe rle vector
  5035.  
  5036. gdevpdfx_h=gdevpdfx.h $(gsparam_h) $(gxdevice_h) $(gxline_h) $(stream_h)\
  5037.  $(gdevpsdf_h) $(gdevpstr_h)
  5038.  
  5039. gdevpdf.$(OBJ): gdevpdf.c $(math__h) $(memory__h) $(string__h) $(time__h)\
  5040.  $(gp_h)\
  5041.  $(gdevpdfx_h) $(gscdefs_h) $(gserrors_h)\
  5042.  $(gx_h) $(gxdevice_h) $(gxfixed_h) $(gxistate_h) $(gxpaint_h)\
  5043.  $(gzcpath_h) $(gzpath_h)\
  5044.  $(scanchar_h) $(scfx_h) $(slzwx_h) $(sstring_h) $(strimpl_h) $(szlibx_h)
  5045.     $(CCCZ) gdevpdf.c
  5046.  
  5047. gdevpdfd.$(OBJ): gdevpdfd.c $(math__h)\
  5048.  $(gdevpdfx_h)\
  5049.  $(gx_h) $(gxdevice_h) $(gxfixed_h) $(gxistate_h) $(gxpaint_h)\
  5050.  $(gzcpath_h) $(gzpath_h)
  5051.  
  5052. gdevpdfi.$(OBJ): gdevpdfi.c $(math__h) $(memory__h) $(gx_h) \
  5053.   $(gdevpdfx_h) $(gscie_h) $(gscolor2_h) $(gserrors_h) $(gsflip_h)\
  5054.   $(gxcspace_h) $(gxistate_h) \
  5055.   $(sa85x_h) $(scfx_h) $(srlx_h) $(strimpl_h)
  5056.  
  5057. gdevpdfm.$(OBJ): gdevpdfm.c $(memory__h) $(string__h) $(gx_h) \
  5058.   $(gdevpdfx_h) $(gserrors_h) $(gsutil_h) $(scanchar_h)
  5059.  
  5060. gdevpdfp.$(OBJ): gdevpdfp.c $(gx_h)\
  5061.  $(gdevpdfx_h) $(gserrors_h)
  5062.  
  5063. gdevpdft.$(OBJ): gdevpdft.c $(math__h) $(memory__h) $(string__h) $(gx_h)\
  5064.  $(gdevpdfx_h) $(gserrors_h) $(gsutil_h)\
  5065.  $(scommon_h)
  5066.  
  5067. # High-level PCL XL writer
  5068.  
  5069. pxl_=gdevpx.$(OBJ)
  5070. pxlmono.dev: $(pxl_) $(GDEV) vector.dev
  5071.     $(SETDEV) pxlmono $(pxl_)
  5072.     $(ADDMOD) pxlmono -include vector
  5073.  
  5074. pxlcolor.dev: $(pxl_) $(GDEV) vector.dev
  5075.     $(SETDEV) pxlcolor $(pxl_)
  5076.     $(ADDMOD) pxlcolor -include vector
  5077.  
  5078. gdevpx.$(OBJ): gdevpx.c $(math__h) $(memory__h) $(string__h)\
  5079.  $(gx_h) $(gsccolor_h) $(gsdcolor_h) $(gserrors_h)\
  5080.  $(gxcspace_h) $(gxdevice_h) $(gxpath_h)\
  5081.  $(gdevpxat_h) $(gdevpxen_h) $(gdevpxop_h) $(gdevvec_h)\
  5082.  $(srlx_h) $(strimpl_h)
  5083.  
  5084. ###### --------------------- Raster file formats --------------------- ######
  5085.  
  5086. ### --------------------- The "plain bits" devices ---------------------- ###
  5087.  
  5088. bit_=gdevbit.$(OBJ)
  5089.  
  5090. bit.dev: $(bit_) page.dev
  5091.     $(SETPDEV) bit $(bit_)
  5092.  
  5093. bitrgb.dev: $(bit_) page.dev
  5094.     $(SETPDEV) bitrgb $(bit_)
  5095.  
  5096. bitcmyk.dev: $(bit_) page.dev
  5097.     $(SETPDEV) bitcmyk $(bit_)
  5098.  
  5099. gdevbit.$(OBJ): gdevbit.c $(PDEVH) $(gsparam_h) $(gxlum_h)
  5100.  
  5101. ### ------------------------- .BMP file formats ------------------------- ###
  5102.  
  5103. bmp_=gdevbmp.$(OBJ) gdevpccm.$(OBJ)
  5104.  
  5105. gdevbmp.$(OBJ): gdevbmp.c $(PDEVH) $(gdevpccm_h)
  5106.  
  5107. bmpmono.dev: $(bmp_) page.dev
  5108.     $(SETPDEV) bmpmono $(bmp_)
  5109.  
  5110. bmp16.dev: $(bmp_) page.dev
  5111.     $(SETPDEV) bmp16 $(bmp_)
  5112.  
  5113. bmp256.dev: $(bmp_) page.dev
  5114.     $(SETPDEV) bmp256 $(bmp_)
  5115.  
  5116. bmp16m.dev: $(bmp_) page.dev
  5117.     $(SETPDEV) bmp16m $(bmp_)
  5118.  
  5119. ### -------------------------- CGM file format ------------------------- ###
  5120. ### This driver is under development.  Use at your own risk.             ###
  5121. ### The output is very low-level, consisting only of rectangles and      ###
  5122. ### cell arrays.                                                         ###
  5123.  
  5124. cgm_=gdevcgm.$(OBJ) gdevcgml.$(OBJ)
  5125.  
  5126. gdevcgml_h=gdevcgml.h
  5127. gdevcgmx_h=gdevcgmx.h $(gdevcgml_h)
  5128.  
  5129. gdevcgm.$(OBJ): gdevcgm.c $(GDEV) $(memory__h)\
  5130.  $(gsparam_h) $(gdevpccm_h) $(gdevcgml_h)
  5131.  
  5132. gdevcgml.$(OBJ): gdevcgml.c $(memory__h) $(stdio__h)\
  5133.  $(gdevcgmx_h)
  5134.  
  5135. cgmmono.dev: $(cgm_)
  5136.     $(SETDEV) cgmmono $(cgm_)
  5137.  
  5138. cgm8.dev: $(cgm_)
  5139.     $(SETDEV) cgm8 $(cgm_)
  5140.  
  5141. cgm24.dev: $(cgm_)
  5142.     $(SETDEV) cgm24 $(cgm_)
  5143.  
  5144. ### -------------------- The CIF file format for VLSI ------------------ ###
  5145. ### Note: this driver was contributed by a user: please contact          ###
  5146. ###       Frederic Petrot (petrot@masi.ibp.fr) if you have questions.    ###
  5147.  
  5148. cif_=gdevcif.$(OBJ)
  5149. cif.dev: $(cif_) page.dev
  5150.     $(SETPDEV) cif $(cif_)
  5151.  
  5152. gdevcif.$(OBJ): gdevcif.c $(PDEVH)
  5153.  
  5154. ### ------------------------- JPEG file format ------------------------- ###
  5155.  
  5156. jpeg_=gdevjpeg.$(OBJ)
  5157.  
  5158. # RGB output
  5159. jpeg.dev: $(jpeg_) sdcte.dev page.dev
  5160.     $(SETPDEV) jpeg $(jpeg_)
  5161.     $(ADDMOD) jpeg -include sdcte
  5162.  
  5163. # Gray output
  5164. jpeggray.dev: $(jpeg_) sdcte.dev page.dev
  5165.     $(SETPDEV) jpeggray $(jpeg_)
  5166.     $(ADDMOD) jpeggray -include sdcte
  5167.  
  5168. gdevjpeg.$(OBJ): gdevjpeg.c $(stdio__h) $(PDEVH)\
  5169.  $(sdct_h) $(sjpeg_h) $(stream_h) $(strimpl_h) jpeglib.h
  5170.  
  5171. ### ------------------------- MIFF file format ------------------------- ###
  5172. ### Right now we support only 24-bit direct color, but we might add more ###
  5173. ### formats in the future.                                               ###
  5174.  
  5175. miff_=gdevmiff.$(OBJ)
  5176.  
  5177. miff24.dev: $(miff_) page.dev
  5178.     $(SETPDEV) miff24 $(miff_)
  5179.  
  5180. gdevmiff.$(OBJ): gdevmiff.c $(PDEVH)
  5181.  
  5182. ### --------------------------- MGR devices ---------------------------- ###
  5183. ### Note: these drivers were contributed by a user: please contact       ###
  5184. ###       Carsten Emde (carsten@ce.pr.net.ch) if you have questions.     ###
  5185.  
  5186. MGR=gdevmgr.$(OBJ) gdevpccm.$(OBJ)
  5187.  
  5188. gdevmgr.$(OBJ): gdevmgr.c $(PDEVH) $(gdevpccm_h) gdevmgr.h
  5189.  
  5190. mgrmono.dev: $(MGR) page.dev
  5191.     $(SETPDEV) mgrmono $(MGR)
  5192.  
  5193. mgrgray2.dev: $(MGR) page.dev
  5194.     $(SETPDEV) mgrgray2 $(MGR)
  5195.  
  5196. mgrgray4.dev: $(MGR) page.dev
  5197.     $(SETPDEV) mgrgray4 $(MGR)
  5198.  
  5199. mgrgray8.dev: $(MGR) page.dev
  5200.     $(SETPDEV) mgrgray8 $(MGR)
  5201.  
  5202. mgr4.dev: $(MGR) page.dev
  5203.     $(SETPDEV) mgr4 $(MGR)
  5204.  
  5205. mgr8.dev: $(MGR) page.dev
  5206.     $(SETPDEV) mgr8 $(MGR)
  5207.  
  5208. ### ------------------------- PCX file formats ------------------------- ###
  5209.  
  5210. pcx_=gdevpcx.$(OBJ) gdevpccm.$(OBJ)
  5211.  
  5212. gdevpcx.$(OBJ): gdevpcx.c $(PDEVH) $(gdevpccm_h) $(gxlum_h)
  5213.  
  5214. pcxmono.dev: $(pcx_) page.dev
  5215.     $(SETPDEV) pcxmono $(pcx_)
  5216.  
  5217. pcxgray.dev: $(pcx_) page.dev
  5218.     $(SETPDEV) pcxgray $(pcx_)
  5219.  
  5220. pcx16.dev: $(pcx_) page.dev
  5221.     $(SETPDEV) pcx16 $(pcx_)
  5222.  
  5223. pcx256.dev: $(pcx_) page.dev
  5224.     $(SETPDEV) pcx256 $(pcx_)
  5225.  
  5226. pcx24b.dev: $(pcx_) page.dev
  5227.     $(SETPDEV) pcx24b $(pcx_)
  5228.  
  5229. pcxcmyk.dev: $(pcx_) page.dev
  5230.     $(SETPDEV) pcxcmyk $(pcx_)
  5231.  
  5232. # The 2-up PCX device is here only as an example, and for testing.
  5233. pcx2up.dev: $(LIB_MAK) $(ECHOGS_XE) gdevp2up.$(OBJ) page.dev pcx256.dev
  5234.     $(SETPDEV) pcx2up gdevp2up.$(OBJ)
  5235.     $(ADDMOD) pcx2up -include pcx256
  5236.  
  5237. gdevp2up.$(OBJ): gdevp2up.c $(AK)\
  5238.  $(gdevpccm_h) $(gdevprn_h) $(gxclpage_h)
  5239.  
  5240. ### ------------------- Portable Bitmap file formats ------------------- ###
  5241. ### For more information, see the pbm(5), pgm(5), and ppm(5) man pages.  ###
  5242.  
  5243. pxm_=gdevpbm.$(OBJ)
  5244.  
  5245. gdevpbm.$(OBJ): gdevpbm.c $(PDEVH) $(gscdefs_h) $(gxlum_h)
  5246.  
  5247. ### Portable Bitmap (PBM, plain or raw format, magic numbers "P1" or "P4")
  5248.  
  5249. pbm.dev: $(pxm_) page.dev
  5250.     $(SETPDEV) pbm $(pxm_)
  5251.  
  5252. pbmraw.dev: $(pxm_) page.dev
  5253.     $(SETPDEV) pbmraw $(pxm_)
  5254.  
  5255. ### Portable Graymap (PGM, plain or raw format, magic numbers "P2" or "P5")
  5256.  
  5257. pgm.dev: $(pxm_) page.dev
  5258.     $(SETPDEV) pgm $(pxm_)
  5259.  
  5260. pgmraw.dev: $(pxm_) page.dev
  5261.     $(SETPDEV) pgmraw $(pxm_)
  5262.  
  5263. # PGM with automatic optimization to PBM if this is possible.
  5264.  
  5265. pgnm.dev: $(pxm_) page.dev
  5266.     $(SETPDEV) pgnm $(pxm_)
  5267.  
  5268. pgnmraw.dev: $(pxm_) page.dev
  5269.     $(SETPDEV) pgnmraw $(pxm_)
  5270.  
  5271. ### Portable Pixmap (PPM, plain or raw format, magic numbers "P3" or "P6")
  5272.  
  5273. ppm.dev: $(pxm_) page.dev
  5274.     $(SETPDEV) ppm $(pxm_)
  5275.  
  5276. ppmraw.dev: $(pxm_) page.dev
  5277.     $(SETPDEV) ppmraw $(pxm_)
  5278.  
  5279. # PPM with automatic optimization to PGM or PBM if possible.
  5280.  
  5281. pnm.dev: $(pxm_) page.dev
  5282.     $(SETPDEV) pnm $(pxm_)
  5283.  
  5284. pnmraw.dev: $(pxm_) page.dev
  5285.     $(SETPDEV) pnmraw $(pxm_)
  5286.  
  5287. ### Portable inKmap (CMYK internally, converted to PPM=RGB at output time)
  5288.  
  5289. pkm.dev: $(pxm_) page.dev
  5290.     $(SETPDEV) pkm $(pxm_)
  5291.  
  5292. pkmraw.dev: $(pxm_) page.dev
  5293.     $(SETPDEV) pkmraw $(pxm_)
  5294.  
  5295. ### --------------- Portable Network Graphics file format --------------- ###
  5296. ### Requires libpng 0.81 and zlib 0.95 (or more recent versions).         ###
  5297. ### See libpng.mak and zlib.mak for more details.                         ###
  5298.  
  5299. png_=gdevpng.$(OBJ) gdevpccm.$(OBJ)
  5300.  
  5301. gdevpng.$(OBJ): gdevpng.c $(gdevprn_h) $(gdevpccm_h) $(gscdefs_h) $(PSRC)png.h
  5302.     $(CCCP) gdevpng.c
  5303.  
  5304. pngmono.dev: libpng.dev $(png_) page.dev
  5305.     $(SETPDEV) pngmono  $(png_)
  5306.     $(ADDMOD) pngmono  -include libpng
  5307.  
  5308. pnggray.dev: libpng.dev $(png_) page.dev
  5309.     $(SETPDEV) pnggray  $(png_)
  5310.     $(ADDMOD) pnggray  -include libpng
  5311.  
  5312. png16.dev: libpng.dev $(png_) page.dev
  5313.     $(SETPDEV) png16  $(png_)
  5314.     $(ADDMOD) png16  -include libpng
  5315.  
  5316. png256.dev: libpng.dev $(png_) page.dev
  5317.     $(SETPDEV) png256  $(png_)
  5318.     $(ADDMOD) png256  -include libpng
  5319.  
  5320. png16m.dev: libpng.dev $(png_) page.dev
  5321.     $(SETPDEV) png16m  $(png_)
  5322.     $(ADDMOD) png16m  -include libpng
  5323.  
  5324. ### ---------------------- PostScript image format ---------------------- ###
  5325. ### These devices make it possible to print Level 2 files on a Level 1    ###
  5326. ###   printer, by converting them to a bitmap in PostScript format.       ###
  5327.  
  5328. ps_=gdevpsim.$(OBJ)
  5329.  
  5330. gdevpsim.$(OBJ): gdevpsim.c $(PDEVH)
  5331.  
  5332. psmono.dev: $(ps_) page.dev
  5333.     $(SETPDEV) psmono $(ps_)
  5334.  
  5335. psgray.dev: $(ps_) page.dev
  5336.     $(SETPDEV) psgray $(ps_)
  5337.  
  5338. # Someday there will be RGB and CMYK variants....
  5339.  
  5340. ### -------------------------- SGI RGB pixmaps -------------------------- ###
  5341.  
  5342. sgirgb_=gdevsgi.$(OBJ)
  5343.  
  5344. gdevsgi.$(OBJ): gdevsgi.c $(PDEVH) gdevsgi.h
  5345.  
  5346. sgirgb.dev: $(sgirgb_) page.dev
  5347.     $(SETPDEV) sgirgb $(sgirgb_)
  5348.  
  5349. ### -------------------- Plain or TIFF fax encoding --------------------- ###
  5350. ###    Use -sDEVICE=tiffg3 or tiffg4 and                  ###
  5351. ###      -r204x98 for low resolution output, or              ###
  5352. ###      -r204x196 for high resolution output                  ###
  5353. ###    These drivers recognize 3 page sizes: letter, A4, and B4.      ###
  5354.  
  5355. gdevtifs_h=gdevtifs.h
  5356.  
  5357. tfax_=gdevtfax.$(OBJ)
  5358. tfax.dev: $(tfax_) cfe.dev lzwe.dev rle.dev tiffs.dev
  5359.     $(SETMOD) tfax $(tfax_)
  5360.     $(ADDMOD) tfax -include cfe lzwe rle tiffs
  5361.  
  5362. gdevtfax.$(OBJ): gdevtfax.c $(PDEVH)\
  5363.  $(gdevtifs_h) $(scfx_h) $(slzwx_h) $(srlx_h) $(strimpl_h)
  5364.  
  5365. ### Plain G3/G4 fax with no header
  5366.  
  5367. faxg3.dev: tfax.dev
  5368.     $(SETDEV) faxg3 -include tfax
  5369.  
  5370. faxg32d.dev: tfax.dev
  5371.     $(SETDEV) faxg32d -include tfax
  5372.  
  5373. faxg4.dev: tfax.dev
  5374.     $(SETDEV) faxg4 -include tfax
  5375.  
  5376. ### ---------------------------- TIFF formats --------------------------- ###
  5377.  
  5378. tiffs_=gdevtifs.$(OBJ)
  5379. tiffs.dev: $(tiffs_) page.dev
  5380.     $(SETMOD) tiffs $(tiffs_)
  5381.     $(ADDMOD) tiffs -include page
  5382.  
  5383. gdevtifs.$(OBJ): gdevtifs.c $(PDEVH) $(stdio__h) $(time__h) \
  5384.  $(gdevtifs_h) $(gscdefs_h) $(gstypes_h)
  5385.  
  5386. # Black & white, G3/G4 fax
  5387.  
  5388. tiffcrle.dev: tfax.dev
  5389.     $(SETDEV) tiffcrle -include tfax
  5390.  
  5391. tiffg3.dev: tfax.dev
  5392.     $(SETDEV) tiffg3 -include tfax
  5393.  
  5394. tiffg32d.dev: tfax.dev
  5395.     $(SETDEV) tiffg32d -include tfax
  5396.  
  5397. tiffg4.dev: tfax.dev
  5398.     $(SETDEV) tiffg4 -include tfax
  5399.  
  5400. # Black & white, LZW compression
  5401.  
  5402. tifflzw.dev: tfax.dev
  5403.     $(SETDEV) tifflzw -include tfax
  5404.  
  5405. # Black & white, PackBits compression
  5406.  
  5407. tiffpack.dev: tfax.dev
  5408.     $(SETDEV) tiffpack -include tfax
  5409.  
  5410. # RGB, no compression
  5411.  
  5412. tiffrgb_=gdevtfnx.$(OBJ)
  5413.  
  5414. tiff12nc.dev: $(tiffrgb_) tiffs.dev
  5415.     $(SETPDEV) tiff12nc $(tiffrgb_)
  5416.     $(ADDMOD) tiff12nc -include tiffs
  5417.  
  5418. tiff24nc.dev: $(tiffrgb_) tiffs.dev
  5419.     $(SETPDEV) tiff24nc $(tiffrgb_)
  5420.     $(ADDMOD) tiff24nc -include tiffs
  5421.  
  5422. gdevtfnx.$(OBJ): gdevtfnx.c $(PDEVH) $(gdevtifs_h)
  5423. #    Copyright (C) 1990, 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  5424. # This file is part of Aladdin Ghostscript.
  5425. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  5426. # or distributor accepts any responsibility for the consequences of using it,
  5427. # or for whether it serves any particular purpose or works at all, unless he
  5428. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  5429. # License (the "License") for full details.
  5430. # Every copy of Aladdin Ghostscript must include a copy of the License,
  5431. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  5432. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  5433. # under certain conditions described in the License.  Among other things, the
  5434. # License requires that the copyright notice and this notice be preserved on
  5435. # all copies.
  5436.  
  5437. # Partial makefile common to all Unix configurations.
  5438.  
  5439. # This is the last part of the makefile for Unix configurations.
  5440. # Since Unix make doesn't have an 'include' facility, we concatenate
  5441. # the various parts of the makefile together by brute force (in tar_cat).
  5442.  
  5443. # Define the name of this makefile.
  5444. UNIXTAIL_MAK=unixtail.mak
  5445.  
  5446. # The following prevents GNU make from constructing argument lists that
  5447. # include all environment variables, which can easily be longer than
  5448. # brain-damaged system V allows.
  5449.  
  5450. .NOEXPORT:
  5451.  
  5452. # -------------------------------- Library -------------------------------- #
  5453.  
  5454. ## The Unix platforms
  5455.  
  5456. # We have to include a test for the existence of sys/time.h,
  5457. # because some System V platforms don't have it.
  5458.  
  5459. # Define pipes as a separable feature.
  5460.  
  5461. pipe_=gdevpipe.$(OBJ)
  5462. pipe.dev: $(UNIXTAIL_MAK) $(ECHOGS_XE) $(pipe_)
  5463.     $(SETMOD) pipe $(pipe_)
  5464.     $(ADDMOD) pipe -iodev pipe
  5465.  
  5466. gdevpipe.$(OBJ): gdevpipe.c $(AK) $(errno__h) $(stdio__h) $(string__h) \
  5467.   $(gserror_h) $(gsmemory_h) $(gstypes_h) $(gxiodev_h) $(stream_h)
  5468.  
  5469. # Unix platforms other than System V, and also System V Release 4
  5470. # (SVR4) platforms.
  5471. unix__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gp_unifs.$(OBJ) gp_unifn.$(OBJ)
  5472. unix_.dev: $(unix__)
  5473.     $(SETMOD) unix_ $(unix__)
  5474.  
  5475. gp_unix.$(OBJ): gp_unix.c $(AK) $(string__h) $(gx_h) $(gsexit_h) $(gp_h) \
  5476.   $(time__h)
  5477.  
  5478. # System V platforms other than SVR4, which lack some system calls,
  5479. # but have pipes.
  5480. sysv__=gp_nofb.$(OBJ) gp_unix.$(OBJ) gp_unifs.$(OBJ) gp_unifn.$(OBJ) gp_sysv.$(OBJ)
  5481. sysv_.dev: $(sysv__)
  5482.     $(SETMOD) sysv_ $(sysv__)
  5483.  
  5484. gp_sysv.$(OBJ): gp_sysv.c $(stdio__h) $(time__h) $(AK)
  5485.  
  5486. # -------------------------- Auxiliary programs --------------------------- #
  5487.  
  5488. $(ANSI2KNR_XE): ansi2knr.c
  5489.     $(CCA2K) $(O)$(ANSI2KNR_XE) ansi2knr.c
  5490.  
  5491. $(ECHOGS_XE): echogs.c $(AK)
  5492.     $(CCAUX) $(O)$(ECHOGS_XE) echogs.c
  5493.  
  5494. # On the RS/6000 (at least), compiling genarch.c with gcc with -O
  5495. # produces a buggy executable.
  5496. $(GENARCH_XE): genarch.c $(AK) $(stdpre_h)
  5497.     $(CCAUX) $(O)$(GENARCH_XE) genarch.c
  5498.  
  5499. $(GENCONF_XE): genconf.c $(AK) $(stdpre_h)
  5500.     $(CCAUX) $(O)$(GENCONF_XE) genconf.c
  5501.  
  5502. $(GENINIT_XE): geninit.c $(AK) $(stdio__h) $(string__h)
  5503.     $(CCAUX) $(O)$(GENINIT_XE) geninit.c
  5504.  
  5505. # Query the environment to construct gconfig_.h.
  5506. # The "else true; is required because Ultrix's implementation of sh -e
  5507. # terminates execution of a command if any error occurs, even if the command
  5508. # traps the error with ||.
  5509. INCLUDE=/usr/include
  5510. gconfig_.h: $(UNIXTAIL_MAK) $(ECHOGS_XE)
  5511.     ./echogs -w gconfig_.h -x 2f2a -s This file was generated automatically. -s -x 2a2f
  5512.     if ( test -f $(INCLUDE)/dirent.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_DIRENT_H; else true; fi
  5513.     if ( test -f $(INCLUDE)/ndir.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_NDIR_H; else true; fi
  5514.     if ( test -f $(INCLUDE)/sys/dir.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_DIR_H; else true; fi
  5515.     if ( test -f $(INCLUDE)/sys/ndir.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_NDIR_H; else true; fi
  5516.     if ( test -f $(INCLUDE)/sys/time.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_TIME_H; else true; fi
  5517.     if ( test -f $(INCLUDE)/sys/times.h ); then ./echogs -a gconfig_.h -x 23 define HAVE_SYS_TIMES_H; else true; fi
  5518.  
  5519. # ----------------------------- Main program ------------------------------ #
  5520.  
  5521. ### Library files and archive
  5522.  
  5523. LIB_ARCHIVE_ALL=$(LIB_ALL) $(DEVS_ALL)\
  5524.  gsnogc.$(OBJ) gconfig.$(OBJ) gscdefs.$(OBJ)
  5525.  
  5526. # Build an archive for the library only.
  5527. # This is not used in a standard build.
  5528. GSLIB_A=$(GS)lib.a
  5529. $(GSLIB_A): $(LIB_ARCHIVE_ALL)
  5530.     rm -f $(GSLIB_A)
  5531.     $(AR) $(ARFLAGS) $(GSLIB_A) $(LIB_ARCHIVE_ALL)
  5532.     $(RANLIB) $(GSLIB_A)
  5533.  
  5534. ### Interpreter main program
  5535.  
  5536. INT_ARCHIVE_ALL=imainarg.$(OBJ) imain.$(OBJ) $(INT_ALL) $(DEVS_ALL)\
  5537.  gconfig.$(OBJ) gscdefs.$(OBJ)
  5538. XE_ALL=gs.$(OBJ) $(INT_ARCHIVE_ALL)
  5539.  
  5540. # Build a library archive for the entire interpreter.
  5541. # This is not used in a standard build.
  5542. GS_A=$(GS).a
  5543. $(GS_A): $(INT_ARCHIVE_ALL)
  5544.     rm -f $(GS_A)
  5545.     $(AR) $(ARFLAGS) $(GS_A) $(INT_ARCHIVE_ALL)
  5546.     $(RANLIB) $(GS_A)
  5547.  
  5548. # Here is the final link step.  The stuff with LD_RUN_PATH is for SVR4
  5549. # systems with dynamic library loading; I believe it's harmless elsewhere.
  5550. # The resetting of the environment variables to empty strings is for SCO Unix,
  5551. # which has limited environment space.
  5552. $(GS_XE): ld.tr echogs $(XE_ALL)
  5553.     ./echogs -w ldt.tr -n - $(CCLD) $(LDFLAGS) $(XLIBDIRS) -o $(GS_XE)
  5554.     ./echogs -a ldt.tr -n -s gs.$(OBJ) -s
  5555.     cat ld.tr >>ldt.tr
  5556.     ./echogs -a ldt.tr -s - $(EXTRALIBS) -lm
  5557.     LD_RUN_PATH=$(XLIBDIR); export LD_RUN_PATH; \
  5558.     XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
  5559.     FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
  5560.     DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
  5561.     DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
  5562.     DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= \
  5563.     $(SH) <ldt.tr
  5564. #    Copyright (C) 1994, 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
  5565. # This file is part of Aladdin Ghostscript.
  5566. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  5567. # or distributor accepts any responsibility for the consequences of using it,
  5568. # or for whether it serves any particular purpose or works at all, unless he
  5569. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  5570. # License (the "License") for full details.
  5571. # Every copy of Aladdin Ghostscript must include a copy of the License,
  5572. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  5573. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  5574. # under certain conditions described in the License.  Among other things, the
  5575. # License requires that the copyright notice and this notice be preserved on
  5576. # all copies.
  5577.  
  5578. # Partial makefile common to all Unix and Desqview/X configurations.
  5579.  
  5580. # This is the very last part of the makefile for these configurations.
  5581. # Since Unix make doesn't have an 'include' facility, we concatenate
  5582. # the various parts of the makefile together by brute force (in tar_cat).
  5583.  
  5584. # Define a rule for building profiling configurations.
  5585. pg:
  5586.     make GENOPT='' CFLAGS='-pg -O $(GCFLAGS) $(XCFLAGS)' LDFLAGS='$(XLDFLAGS) -pg' XLIBS='Xt SM ICE Xext X11' CCLEAF='$(CCC)'
  5587.  
  5588. # Define a rule for building debugging configurations.
  5589. debug:
  5590.     make GENOPT='-DDEBUG' CFLAGS='-g -O $(GCFLAGS) $(XCFLAGS)'
  5591.  
  5592. # The rule for gconfigv.h is here because it is shared between Unix and
  5593. # DV/X environments.
  5594. gconfigv.h: unix-end.mak $(MAKEFILE) $(ECHOGS_XE)
  5595.     $(EXP)echogs -w gconfigv.h -x 23 define USE_ASM -x 2028 -q $(USE_ASM)-0 -x 29
  5596.     $(EXP)echogs -a gconfigv.h -x 23 define USE_FPU -x 2028 -q $(FPU_TYPE)-0 -x 29
  5597.     $(EXP)echogs -a gconfigv.h -x 23 define EXTEND_NAMES 0$(EXTEND_NAMES)
  5598.  
  5599. # The following rules are equivalent to what tar_cat does.
  5600. # The rm -f is so that we don't overwrite a file that `make'
  5601. # may currently be reading from.
  5602. GENERIC_MAK_LIST=$(GS_MAK) $(LIB_MAK) $(INT_MAK) $(JPEG_MAK) $(LIBPNG_MAK) $(ZLIB_MAK) $(DEVS_MAK)
  5603. UNIX_MAK_LIST=dvx-gcc.mak unixansi.mak unix-cc.mak unix-gcc.mak
  5604.  
  5605. unix.mak: $(UNIX_MAK_LIST)
  5606.  
  5607. DVX_GCC_MAK=$(VERSION_MAK) dgc-head.mak dvx-head.mak $(GENERIC_MAK_LIST) dvx-tail.mak unix-end.mak
  5608. dvx-gcc.mak: $(DVX_GCC_MAK)
  5609.     rm -f dvx-gcc.mak
  5610.     $(CAT) $(DVX_GCC_MAK) >dvx-gcc.mak
  5611.  
  5612. UNIXANSI_MAK=$(VERSION_MAK) ansihead.mak unixhead.mak $(GENERIC_MAK_LIST) unixtail.mak unix-end.mak
  5613. unixansi.mak: $(UNIXANSI_MAK)
  5614.     rm -f unixansi.mak
  5615.     $(CAT) $(UNIXANSI_MAK) >unixansi.mak
  5616.  
  5617. UNIX_CC_MAK=$(VERSION_MAK) cc-head.mak unixhead.mak $(GENERIC_MAK_LIST) unixtail.mak unix-end.mak
  5618. unix-cc.mak: $(UNIX_CC_MAK)
  5619.     rm -f unix-cc.mak
  5620.     $(CAT) $(UNIX_CC_MAK) >unix-cc.mak
  5621.  
  5622. UNIX_GCC_MAK=$(VERSION_MAK) gcc-head.mak unixhead.mak $(GENERIC_MAK_LIST) unixtail.mak unix-end.mak
  5623. unix-gcc.mak: $(UNIX_GCC_MAK)
  5624.     rm -f unix-gcc.mak
  5625.     $(CAT) $(UNIX_GCC_MAK) >unix-gcc.mak
  5626.  
  5627. # Installation
  5628.  
  5629. TAGS:
  5630.     etags -t *.c *.h
  5631.  
  5632. install: install-exec install-scripts install-data
  5633.  
  5634. # The sh -c in the rules below is required because Ultrix's implementation
  5635. # of sh -e terminates execution of a command if any error occurs, even if
  5636. # the command traps the error with ||.
  5637.  
  5638. install-exec: $(GS)
  5639.     -mkdir $(bindir)
  5640.     $(INSTALL_PROGRAM) $(GS) $(bindir)/$(GS)
  5641.  
  5642. install-scripts: gsnd
  5643.     -mkdir $(scriptdir)
  5644.     sh -c 'for f in gsbj gsdj gsdj500 gslj gslp gsnd bdftops font2c \
  5645. pdf2dsc pdf2ps printafm ps2ascii ps2epsi ps2pdf wftopfa ;\
  5646.     do if ( test -f $$f ); then $(INSTALL_PROGRAM) $$f $(scriptdir)/$$f; fi;\
  5647.     done'
  5648.  
  5649. MAN1_PAGES=gs pdf2dsc pdf2ps ps2ascii ps2epsi ps2pdf
  5650. install-data: gs.1
  5651.     -mkdir $(mandir)
  5652.     -mkdir $(man1dir)
  5653.     sh -c 'for f in $(MAN1_PAGES) ;\
  5654.     do if ( test -f $$f.1 ); then $(INSTALL_DATA) $$f.1 $(man1dir)/$$f.$(man1ext); fi;\
  5655.     done'
  5656.     -mkdir $(datadir)
  5657.     -mkdir $(gsdir)
  5658.     -mkdir $(gsdatadir)
  5659.     sh -c 'for f in Fontmap \
  5660. cbjc600.ppd cbjc800.ppd *.upp \
  5661. gs_init.ps gs_btokn.ps gs_ccfnt.ps gs_cff.ps gs_cidfn.ps gs_cmap.ps \
  5662. gs_diskf.ps gs_dpnxt.ps gs_dps.ps gs_dps1.ps gs_dps2.ps gs_epsf.ps \
  5663. gs_fonts.ps gs_kanji.ps gs_lev2.ps \
  5664. gs_pfile.ps gs_res.ps gs_setpd.ps gs_statd.ps \
  5665. gs_ttf.ps gs_typ42.ps gs_type1.ps \
  5666. gs_dbt_e.ps gs_iso_e.ps gs_ksb_e.ps gs_std_e.ps gs_sym_e.ps \
  5667. acctest.ps align.ps bdftops.ps caption.ps decrypt.ps docie.ps \
  5668. font2c.ps gslp.ps impath.ps landscap.ps level1.ps lines.ps \
  5669. markhint.ps markpath.ps \
  5670. packfile.ps pcharstr.ps pfbtogs.ps ppath.ps prfont.ps printafm.ps \
  5671. ps2ai.ps ps2ascii.ps ps2epsi.ps ps2image.ps \
  5672. quit.ps showchar.ps showpage.ps stcinfo.ps stcolor.ps \
  5673. traceimg.ps traceop.ps type1enc.ps type1ops.ps uninfo.ps unprot.ps \
  5674. viewcmyk.ps viewgif.ps viewjpeg.ps viewpcx.ps viewpbm.ps viewps2a.ps \
  5675. winmaps.ps wftopfa.ps wrfont.ps zeroline.ps \
  5676. gs_l2img.ps gs_pdf.ps \
  5677. pdf2dsc.ps \
  5678. pdf_base.ps pdf_draw.ps pdf_font.ps pdf_main.ps pdf_sec.ps pdf_2ps.ps \
  5679. gs_mex_e.ps gs_mro_e.ps gs_pdf_e.ps gs_wan_e.ps \
  5680. gs_pdfwr.ps ;\
  5681.     do if ( test -f $$f ); then $(INSTALL_DATA) $$f $(gsdatadir)/$$f; fi;\
  5682.     done'
  5683.     -mkdir $(docdir)
  5684.     sh -c 'for f in COPYING NEWS PUBLIC README \
  5685. bug-form.txt c-style.txt current.txt devices.txt drivers.txt fonts.txt \
  5686. helpers.txt hershey.txt history1.txt history2.txt history3.txt humor.txt \
  5687. install.txt language.txt lib.txt make.txt new-user.txt \
  5688. ps2epsi.txt ps2pdf.txt psfiles.txt public.txt \
  5689. unix-lpr.txt use.txt xfonts.txt ;\
  5690.     do if ( test -f $$f ); then $(INSTALL_DATA) $$f $(docdir)/$$f; fi;\
  5691.     done'
  5692.     -mkdir $(exdir)
  5693.     for f in alphabet.ps chess.ps cheq.ps colorcir.ps escher.ps golfer.ps \
  5694. grayalph.ps snowflak.ps tiger.ps waterfal.ps \
  5695. ridt91.eps ;\
  5696.     do $(INSTALL_DATA) $$f $(exdir)/$$f ;\
  5697.     done
  5698.