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