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