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