home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / wp_dtp / ghostscr.lha / gs252 / amiga-gcc.mak next >
Makefile  |  1993-01-21  |  58KB  |  1,679 lines

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