diff -uNr espgs-7.05.5.org\Makefile espgs-7.05.5\Makefile
--- espgs-7.05.5.org\Makefile	Thu Jan 01 01:00:00 1970
+++ espgs-7.05.5\Makefile	Sat Jan 04 01:50:18 2003
@@ -0,0 +1,472 @@
+#    Copyright (C) 1997-2002 artofcode LLC. All rights reserved.
+# 
+# This software is provided AS-IS with no warranty, either express or
+# implied.
+# 
+# This software is distributed under license and may not be copied,
+# modified or distributed except as expressly authorized under the terms
+# of the license contained in the file LICENSE in this distribution.
+# 
+# For more information about licensing, please refer to
+# http://www.ghostscript.com/licensing/. For information on
+# commercial licensing, go to http://www.artifex.com/licensing/ or
+# contact Artifex Software, Inc., 101 Lucas Valley Road #110,
+# San Rafael, CA  94903, U.S.A., +1(415)492-9861.
+
+# $Id: Makefile.in,v 1.13 2002/07/18 22:19:50 tillkamppeter Exp $
+# makefile template for/from the autoconf build.
+# Makefile.  Generated from Makefile.in by configure.
+
+# ------------------------------- Options ------------------------------- #
+
+####### The following are the only parts of the file you should need to edit.
+
+# Define the directory for the final executable, and the
+# source, generated intermediate file, and object directories
+# for the graphics library (GL) and the PostScript/PDF interpreter (PS).
+
+BINDIR=.\bin
+GLSRCDIR=.\src
+GLGENDIR=.\obj
+GLOBJDIR=.\obj
+PSSRCDIR=.\src
+PSLIBDIR=.\lib
+PSGENDIR=.\obj
+PSOBJDIR=.\obj
+
+# Do not edit the next group of lines.
+
+include $(GLSRCDIR)/version.mak
+DD=$(GLGENDIR)/
+GLD=$(GLGENDIR)/
+PSD=$(PSGENDIR)/
+
+# ------ Generic options ------ #
+
+# Define the installation commands and target directories for
+# executables and files.  The commands are only relevant to `make install';
+# the directories also define the default search path for the
+# initialization files (gs_*.ps) and the fonts.
+
+INSTALL = $(GLSRCDIR)\instcopy -c
+INSTALL_PROGRAM = $(INSTALL) -m 755
+INSTALL_DATA = $(INSTALL) -m 644
+
+prefix = C:\\djgpp\\contrib
+exec_prefix = ${prefix}
+bindir = ${exec_prefix}\\bin
+scriptdir = $(bindir)
+libdir = ${exec_prefix}\\lib
+mandir = ${prefix}\\man
+man1ext = 1
+datadir = ${prefix}\\share
+gsdir = $(datadir)\\gs
+gsdatadir = $(gsdir)\\$(GS_DOT_VERSION)
+
+docdir=$(gsdatadir)\\doc
+exdir=$(gsdatadir)\\examples
+GS_DOCDIR=$(docdir)
+
+# Define the default directory/ies for the runtime
+# initialization and font files.  Separate multiple directories with a :.
+
+GS_LIB_DEFAULT=$(gsdatadir)\\lib:$(gsdir)\\fonts:${prefix}\\share\\fonts\\default\\gs:${prefix}\\share\fonts\\default\\Type1:${prefix}\\share\\fonts\\default\\TrueType
+
+# Define whether or not searching for initialization files should always
+# look in the current directory first.  This leads to well-known security
+# and confusion problems, but users insist on it.
+# NOTE: this also affects searching for files named on the command line:
+# see the "File searching" section of Use.htm for full details.
+# Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.
+
+SEARCH_HERE_FIRST=1
+
+# Define the name of the interpreter initialization file.
+# (There is no reason to change this.)
+
+GS_INIT=gs_init.ps
+
+# Choose generic configuration options.
+
+# -DDEBUG
+#	includes debugging features (-Z switch) in the code.
+#	  Code runs substantially slower even if no debugging switches
+#	  are set.
+# -DNOPRIVATE
+#	makes private (static) procedures and variables public,
+#	  so they are visible to the debugger and profiler.
+#	  No execution time or space penalty.
+
+GENOPT=
+
+# Choose capability options.
+
+# -DHAVE_MKSTEMP
+#	uses mkstemp instead of mktemp
+#		This gets rid of several security warnings that look
+#		ominous.  Enable this if you wish to get rid of them.
+
+CAPOPT= 
+
+# Define the name of the executable file.
+
+GS=gs
+
+# Define the name of a pre-built executable that can be invoked at build
+# time.  Currently, this is only needed for compiled fonts.  The usual
+# alternatives are:
+#   - the standard name of Ghostscript on your system (typically `gs'):
+BUILD_TIME_GS=gs
+#   - the name of the executable you are building now.  If you choose this
+# option, then you must build the executable first without compiled fonts,
+# and then again with compiled fonts.
+#BUILD_TIME_GS=$(BINDIR)/$(GS) -I$(PSLIBDIR)
+
+# Define the directories for debugging and profiling binaries, relative to
+# the standard binaries.
+
+DEBUGRELDIR=../debugobj
+PGRELDIR=../pgobj
+
+# Define the directory where the IJG JPEG library sources are stored,
+# and the major version of the library that is stored there.
+# You may need to change this if the IJG library version changes.
+# See jpeg.mak for more information.
+
+JSRCDIR=jpeg
+JVERSION=6
+
+# Note: if a shared library is used, it may not contain the
+# D_MAX_BLOCKS_IN_MCU patch, and thus may not be able to read
+# some older JPEG streams that violate the standard. If the JPEG
+# library built from local sources, the patch will be applied.
+
+SHARE_JPEG=0
+JPEG_NAME=jpeg
+
+# Define the directory where the PNG library sources are stored,
+# and the version of the library that is stored there.
+# You may need to change this if the libpng version changes.
+# See libpng.mak for more information.
+
+SHARE_LIBPNG=0
+PSRCDIR=libpng
+LIBPNG_NAME=png
+
+# Define the directory where the zlib sources are stored.
+# See zlib.mak for more information.
+
+SHARE_ZLIB=0
+ZSRCDIR=zlib
+#ZLIB_NAME=gz
+ZLIB_NAME=z
+
+# Define the directory where the icclib source are stored.
+# See icclib.mak for more information
+
+ICCSRCDIR=icclib
+
+# Define the directory where the ijs source is stored,
+# and the process forking method to use for the server.
+# See ijs.mak for more information.
+ 
+IJSSRCDIR=ijs
+IJSEXECTYPE=unix
+
+# Define library names for the Gimp-Print (stp) driver
+
+STPLIB=gimpprint
+
+# Define how to build the library archives.  (These are not used in any
+# standard configuration.)
+
+AR=ar
+ARFLAGS=qc
+RANLIB=ranlib
+
+# ------ Platform-specific options ------ #
+
+# Define the name of the C compiler.
+
+CC=gcc
+
+# Define the name of the linker for the final link step.
+# Normally this is the same as the C compiler.
+
+CCLD=$(CC)
+
+# Define the general cc flags, warnings and such.
+GCFLAGS= -Iobj -I. -Wall -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Wcast-qual -Wwrite-strings -fno-builtin -fno-common
+
+# Define the added flags for standard, debugging, profiling 
+# and shared object builds.
+
+CFLAGS_STANDARD=-O2
+CFLAGS_DEBUG=-g -O
+CFLAGS_PROFILE=-pg -O2
+CFLAGS_SO=-fPIC
+
+# Define the other compilation flags.  Add at most one of the following:
+#	-DBSD4_2 for 4.2bsd systems.
+#	-DSYSV for System V or DG/UX.
+# 	-DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
+#	   or any System III Unix, or System V release 3-or-older Unix.
+#	-DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
+#	-DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
+# XCFLAGS can be set from the command line.
+# We don't include -ansi, because this gets in the way of the platform-
+#   specific stuff that <math.h> typically needs; nevertheless, we expect
+#   gcc to accept ANSI-style function prototypes and function definitions.
+XCFLAGS=
+
+# defines from autoconf...
+ACDEFS=-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DHAVE_DIRENT_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_LIMITS_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LIBM=1 -DHAVE_UNISTD_H=1 -Dvfork=fork -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_DUP2=1 -DHAVE_FLOOR=1 -DHAVE_MEMCHR=1 -DHAVE_MEMMOVE=1 -DHAVE_MEMSET=1 -DHAVE_MKDIR=1 -DHAVE_MODF=1 -DHAVE_POW=1 -DHAVE_PUTENV=1 -DHAVE_RINT=1 -DHAVE_SQRT=1 -DHAVE_STRCHR=1 -DHAVE_STRERROR=1 -DHAVE_STRRCHR=1 -DHAVE_STRSPN=1 -DHAVE_STRSTR=1 -DGS_REVISION=1 -DGS_DOCDIR=\"$(GS_DOCDIR)\" -DGS_LIB_DEFAULT=\"$(GS_LIB_DEFAULT)\" -DGS_INIT=\"$(GS_INIT)\" -DSEARCH_HERE_FIRST=$(SEARCH_HERE_FIRST)
+
+
+CFLAGS=-g -O2 $(GCFLAGS) $(XCFLAGS) $(ACDEFS)
+
+# Define platform flags for ld.
+# SunOS 4.n may need -Bstatic.
+# Solaris 2.6 (and possibly some other versions) with any of the SHARE_
+# parameters set to 1 may need
+#	-R /usr/local/xxx/lib:/usr/local/lib
+# giving the full path names of the shared library directories.
+# XLDFLAGS can be set from the command line.
+XLDFLAGS=
+
+LDFLAGS= $(XLDFLAGS)
+
+# Define any extra libraries to link into the executable.
+# ISC Unix 2.2 wants -linet.
+# SCO Unix needs -lsocket if you aren't including the X11 driver.
+# SVR4 may need -lnsl.
+# Solaris may need -lnsl -lsocket -lposix4.
+# (Libraries required by individual drivers are handled automatically.)
+
+EXTRALIBS=-lm 
+
+# Define the standard libraries to search at the end of linking.
+# Most platforms require -lpthread for the POSIX threads library;
+# on FreeBSD, change -lpthread to -lc_r; BSDI and perhaps some others
+# include pthreads in libc and don't require any additional library.
+# All reasonable platforms require -lm, but Rhapsody and perhaps one or
+# two others fold libm into libc and don't require any additional library.
+
+#STDLIBS=-lpthread -lm
+
+# Since the default build is for nosync, don't include pthread lib
+STDLIBS=-lm
+
+# Define the include switch(es) for the X11 header files.
+# This can be null if handled in some other way (e.g., the files are
+# in /usr/include, or the directory is supplied by an environment variable)
+
+XINCLUDE=
+
+# Define the directory/ies and library names for the X11 library files.
+# XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
+# (dynamic libraries on SVR4) and should not include -L.
+# Newer SVR4 systems can use -R in XLIBDIRS rather than setting XLIBDIR.
+# Both can be null if these files are in the default linker search path.
+
+# Solaris and other SVR4 systems with dynamic linking probably want
+#XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
+# X11R6 (on any platform) may need
+#XLIBS=Xt SM ICE Xext X11
+
+# We use the autoconf macro AC_PATH_XTRA which defines X_LIBS with
+# the -L (or whatever). It also defines X_EXTRA_LIBS which
+# should be slotted into XLIBS below and X_PRE_LIBS which should go
+# before -lX11. We do not handle these and should, but they are empty
+# on most modern platforms.
+XLIBDIRS=
+XLIBDIR=
+XLIBS=Xt Xext X11
+
+# Define whether this platform has floating point hardware:
+#	FPU_TYPE=2 means floating point is faster than fixed point.
+# (This is the case on some RISCs with multiple instruction dispatch.)
+#	FPU_TYPE=1 means floating point is at worst only slightly slower
+# than fixed point.
+#	FPU_TYPE=0 means that floating point may be considerably slower.
+#	FPU_TYPE=-1 means that floating point is always much slower than
+# fixed point.
+
+FPU_TYPE=1
+
+# Define the .dev module that implements thread and synchronization
+# primitives for this platform.
+
+# If POSIX sync primitives are used, also change the STDLIBS to include
+# the pthread library.
+#SYNC=posync
+
+# Default is No sync primitives since some platforms don't have it (HP-UX)
+SYNC=nosync
+
+# ------ Devices and features ------ #
+
+# Choose the language feature(s) to include.  See gs.mak for details.
+
+FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)epsf.dev $(GLD)pipe.dev
+#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev
+#FEATURE_DEVS=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(GLD)pipe.dev
+# The following is strictly for testing.
+FEATURE_DEVS_ALL=$(PSD)psl3.dev $(PSD)pdf.dev $(PSD)dpsnext.dev $(PSD)ttfont.dev $(PSD)rasterop.dev $(PSD)double.dev $(PSD)trapping.dev $(PSD)stocht.dev $(GLD)pipe.dev
+#FEATURE_DEVS=$(FEATURE_DEVS_ALL)
+
+# Choose whether to compile the .ps initialization files into the executable.
+# See gs.mak for details.
+
+COMPILE_INITS=0
+
+# Choose whether to store band lists on files or in memory.
+# The choices are 'file' or 'memory'.
+
+BAND_LIST_STORAGE=file
+
+# Choose which compression method to use when storing band lists in memory.
+# The choices are 'lzw' or 'zlib'.  lzw is not recommended, because the
+# LZW-compatible code in Ghostscript doesn't actually compress its input.
+
+BAND_LIST_COMPRESSOR=zlib
+
+# Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
+# See gs.mak and sfxfd.c for more details.
+
+FILE_IMPLEMENTATION=stdio
+
+# Choose the implementation of stdio: '' for file I/O and 'c' for callouts
+# See gs.mak and ziodevs.c/ziodevsc.c for more details.
+
+STDIO_IMPLEMENTATION=c
+
+# Override the default device.  This is set to 'display' by 
+# unix-dll.mak when building a shared object.
+DISPLAY_DEV=
+
+# Define the name table capacity size of 2^(16+n).
+# Setting this to a non-zero value will slow down the interpreter.
+
+EXTEND_NAMES=0
+
+# Choose the device(s) to include.  See devs.mak for details,
+# devs.mak and contrib.mak for the list of available devices.
+
+#DEVICE_DEVS=$(DISPLAY_DEV) $(DD)x11.dev $(DD)x11alpha.dev $(DD)x11cmyk.dev $(DD)x11gray2.dev $(DD)x11gray4.dev $(DD)x11mono.dev
+DEVICE_DEVS=$(DISPLAY_DEV) 
+DEVICE_DEVS1=$(DD)bbox.dev $(DD)bff.dev $(DD)bit.dev $(DD)bitcmyk.dev $(DD)bitrgb.dev $(DD)bmp16.dev $(DD)bmp16m.dev $(DD)bmp256.dev $(DD)bmp32b.dev $(DD)bmpa16.dev $(DD)bmpa16m.dev $(DD)bmpa256.dev $(DD)bmpa32b.dev $(DD)bmpamono.dev $(DD)bmpasep1.dev $(DD)bmpasep8.dev $(DD)bmpgray.dev $(DD)bmpmono.dev $(DD)bmpsep1.dev $(DD)bmpsep8.dev $(DD)ccr.dev $(DD)cfax.dev $(DD)cgm24.dev $(DD)cgm8.dev $(DD)cgmmono.dev $(DD)cif.dev $(DD)dfaxhigh.dev $(DD)dfaxlow.dev $(DD)epswrite.dev $(DD)fax.dev $(DD)faxg3.dev $(DD)faxg32d.dev $(DD)faxg4.dev $(DD)inferno.dev $(DD)jpeg.dev $(DD)jpeggray.dev $(DD)mag16.dev $(DD)mag256.dev $(DD)mgr4.dev $(DD)mgr8.dev $(DD)mgrgray2.dev $(DD)mgrgray4.dev $(DD)mgrgray8.dev $(DD)mgrmono.dev $(DD)miff24.dev $(DD)pbm.dev $(DD)pbmraw.dev $(DD)pcx16.dev $(DD)pcx24b.dev $(DD)pcx256.dev $(DD)pcx2up.dev $(DD)pcxcmyk.dev $(DD)pcxgray.dev $(DD)pcxmono.dev $(DD)pdfwrite.dev $(DD)pgm.dev $(DD)pgmraw.dev $(DD)pgnm.dev $(DD)pgnmraw.dev $(DD)pkm.dev $(DD)pkmraw.dev $(DD)pksm.dev $(DD)pksmraw.dev $(DD)plan9bm.dev $(DD)png16.dev $(DD)png16m.dev $(DD)png256.dev $(DD)pnggray.dev $(DD)pngmono.dev $(DD)pnm.dev $(DD)pnmraw.dev $(DD)ppm.dev $(DD)ppmraw.dev $(DD)psdf.dev $(DD)psgray.dev $(DD)psmono.dev $(DD)psrgb.dev $(DD)pswrite.dev $(DD)sgirgb.dev $(DD)sunhmono.dev $(DD)sxlcrt.dev $(DD)tfax.dev $(DD)tiff12nc.dev $(DD)tiff24nc.dev $(DD)tiffcrle.dev $(DD)tiffg3.dev $(DD)tiffg32d.dev $(DD)tiffg4.dev $(DD)tifflzw.dev $(DD)tiffpack.dev $(DD)tiffs.dev 
+DEVICE_DEVS2=$(DD)alc2000.dev $(DD)alc4000.dev $(DD)alc8500.dev $(DD)alc8600.dev $(DD)ap3250.dev $(DD)appledmp.dev $(DD)atx23.dev $(DD)atx24.dev $(DD)atx38.dev $(DD)bj10e.dev $(DD)bj10v.dev $(DD)bj10vh.dev $(DD)bj200.dev $(DD)bjc600.dev $(DD)bjc800.dev $(DD)bjc880j.dev $(DD)bjccmyk.dev $(DD)bjccolor.dev $(DD)bjcgray.dev $(DD)bjcmono.dev $(DD)cdeskjet.dev $(DD)cdj1600.dev $(DD)cdj500.dev $(DD)cdj550.dev $(DD)cdj670.dev $(DD)cdj850.dev $(DD)cdj880.dev $(DD)cdj890.dev $(DD)cdj970.dev $(DD)cdjcolor.dev $(DD)cdjmono.dev $(DD)chp2200.dev $(DD)cljet5.dev $(DD)cljet5c.dev $(DD)cljet5pr.dev $(DD)coslw2p.dev $(DD)coslwxl.dev $(DD)cp50.dev $(DD)declj250.dev $(DD)deskjet.dev $(DD)dj505j.dev $(DD)djet500.dev $(DD)djet500c.dev $(DD)djet820c.dev $(DD)dl2100.dev $(DD)dmprt.dev $(DD)dnj650c.dev $(DD)epl2050.dev $(DD)epl2050p.dev $(DD)epl2120.dev $(DD)epl5800.dev $(DD)epl5900.dev $(DD)epl6100.dev $(DD)eps9high.dev $(DD)eps9mid.dev $(DD)epson.dev $(DD)epsonc.dev $(DD)escp.dev $(DD)escpage.dev $(DD)escpc.dev $(DD)fmlbp.dev $(DD)fmpr.dev $(DD)fs600.dev $(DD)gdi.dev $(DD)hl1240.dev $(DD)hl1250.dev $(DD)hl7x0.dev $(DD)hpdj1120c.dev $(DD)hpdj310.dev $(DD)hpdj320.dev $(DD)hpdj340.dev $(DD)hpdj400.dev $(DD)hpdj500.dev $(DD)hpdj500c.dev $(DD)hpdj510.dev $(DD)hpdj520.dev $(DD)hpdj540.dev $(DD)hpdj550c.dev $(DD)hpdj560c.dev $(DD)hpdj600.dev $(DD)hpdj660c.dev $(DD)hpdj670c.dev $(DD)hpdj680c.dev $(DD)hpdj690c.dev $(DD)hpdj850c.dev $(DD)hpdj855c.dev $(DD)hpdj870c.dev $(DD)hpdj890c.dev $(DD)hpdjplus.dev $(DD)hpdjportable.dev $(DD)ibmpro.dev $(DD)imagen.dev $(DD)iwhi.dev $(DD)iwlo.dev $(DD)iwlq.dev $(DD)jetp3852.dev $(DD)jj100.dev $(DD)la50.dev $(DD)la70.dev $(DD)la75.dev $(DD)la75plus.dev $(DD)laserjet.dev $(DD)lbp310.dev $(DD)lbp320.dev $(DD)lbp8.dev $(DD)lex2050.dev $(DD)lex3200.dev $(DD)lex5700.dev $(DD)lex7000.dev $(DD)lips2p.dev $(DD)lips3.dev $(DD)lips4.dev $(DD)lips4v.dev $(DD)lj250.dev $(DD)lj3100sw.dev $(DD)lj4dith.dev $(DD)lj4dithp.dev $(DD)lj5gray.dev $(DD)lj5mono.dev $(DD)ljet2p.dev $(DD)ljet3.dev $(DD)ljet3d.dev $(DD)ljet4.dev $(DD)ljet4d.dev $(DD)ljet4pjl.dev $(DD)ljetplus.dev $(DD)ln03.dev $(DD)lp1800.dev $(DD)lp1900.dev $(DD)lp2000.dev $(DD)lp2200.dev $(DD)lp2563.dev $(DD)lp3000c.dev $(DD)lp7700.dev $(DD)lp8000.dev $(DD)lp8000c.dev $(DD)lp8100.dev $(DD)lp8200c.dev $(DD)lp8300c.dev $(DD)lp8300f.dev $(DD)lp8400f.dev $(DD)lp8500c.dev $(DD)lp8600.dev $(DD)lp8600f.dev $(DD)lp8700.dev $(DD)lp8800c.dev $(DD)lp8900.dev $(DD)lp9300.dev $(DD)lp9400.dev $(DD)lp9600.dev $(DD)lp9600s.dev $(DD)lq850.dev $(DD)lx5000.dev $(DD)lxm3200.dev $(DD)lxm5700m.dev $(DD)m8510.dev $(DD)md1xMono.dev $(DD)md2k.dev $(DD)md50Eco.dev $(DD)md50Mono.dev $(DD)md5k.dev $(DD)mj500c.dev $(DD)mj6000c.dev $(DD)mj700v2c.dev $(DD)mj8000c.dev $(DD)ml600.dev $(DD)necp6.dev $(DD)npdl.dev $(DD)oce9050.dev $(DD)oki182.dev $(DD)oki4w.dev $(DD)okiibm.dev $(DD)paintjet.dev $(DD)pcl3.dev $(DD)photoex.dev $(DD)picty180.dev $(DD)pj.dev $(DD)pjetxl.dev $(DD)pjxl.dev $(DD)pjxl300.dev $(DD)pr1000.dev $(DD)pr1000_4.dev $(DD)pr150.dev $(DD)pr201.dev $(DD)pxlcolor.dev $(DD)pxlmono.dev $(DD)r4081.dev $(DD)samsunggdi.dev $(DD)sj48.dev $(DD)st800.dev $(DD)stcolor.dev $(DD)t4693d2.dev $(DD)t4693d4.dev $(DD)t4693d8.dev $(DD)tek4696.dev $(DD)uniprint.dev $(DD)xes.dev 
+DEVICE_DEVS3=
+DEVICE_DEVS4=$(DD)ijs.dev
+DEVICE_DEVS5=
+DEVICE_DEVS6=
+DEVICE_DEVS7=
+DEVICE_DEVS8=
+DEVICE_DEVS9=
+DEVICE_DEVS10=
+DEVICE_DEVS11=
+DEVICE_DEVS12=
+DEVICE_DEVS13=
+DEVICE_DEVS14=
+DEVICE_DEVS15=
+DEVICE_DEVS16=
+DEVICE_DEVS17=
+DEVICE_DEVS18=
+DEVICE_DEVS19=
+DEVICE_DEVS20=
+
+# ---------------------------- End of options --------------------------- #
+
+# Define the name of the partial makefile that specifies options --
+# used in dependencies.
+
+MAKEFILE=Makefile
+TOP_MAKEFILES=$(MAKEFILE) $(GLSRCDIR)/unixhead.mak
+
+# This defines the ANSI-to-K&R dependency. No longer supported.
+AK=
+
+# Define the compilation rules and flags.
+
+CCFLAGS=$(GENOPT) $(CAPOPT) $(CFLAGS)
+CC_=$(CC) $(CCFLAGS)
+CCAUX=$(CC)
+CC_LEAF=$(CC_)
+# note gcc can't use -fomit-frame-pointer with -pg.
+CC_LEAF_PG=$(CC_)
+# These are the specific warnings we have to turn off to compile those
+# specific few files that need this.  We may turn off others in the future.
+CC_NO_WARN=$(CC_)
+
+# ---------------- End of platform-specific section ---------------- #
+PLATFORM=djgpp_
+
+#include $(GLSRCDIR)/dvx-head.mak
+
+# Work around the fact that some `make' programs drop trailing spaces
+# or interpret == as a special definition operator.
+NULL=
+
+CMD=.bat
+C_=-c
+
+D_=-D
+_D_=$(NULL)=
+_D=
+I_=-I
+II=-I
+_I=
+NO_OP=@:
+O_=-o $(NULL)
+OBJ=o
+Q=
+XE=.exe
+XEAUX=.exe
+
+# Define the current directory prefix and command invocations.
+
+CAT=type
+D=\\
+EXP=
+SHELL=
+SH=
+
+# Define generic commands.
+
+CP_=cp.exe
+RM_=erase 
+
+# Define the arguments for genconf.
+
+CONFILES=-p -pl &-l%%s
+CONFLDTR=-ol
+
+# Define the compilation rules and flags.
+
+CC_D=$(CC_)
+CC_INT=$(CC_)
+
+# Patch a couple of PC-specific things that aren't relevant to DV/X builds,
+# but that cause `make' to produce warnings.
+
+PCFBASM=
+
+
+include $(GLSRCDIR)/gs.mak
+include $(GLSRCDIR)/lib.mak
+include $(PSSRCDIR)/int.mak
+include $(PSSRCDIR)/cfonts.mak
+include $(GLSRCDIR)/jpeg.mak
+# zlib.mak must precede libpng.mak
+include $(GLSRCDIR)/zlib.mak
+include $(GLSRCDIR)/libpng.mak
+include $(GLSRCDIR)/icclib.mak
+include $(GLSRCDIR)/ijs.mak
+include $(GLSRCDIR)/devs.mak
+include $(GLSRCDIR)/contrib.mak
+include $(GLSRCDIR)/dj-tail.mak
+include $(GLSRCDIR)/unix-end.mak
+include $(GLSRCDIR)/unixinst.mak
+include $(GLSRCDIR)/gnudevs.mak
+
diff -uNr espgs-7.05.5.org\src\devs.mak espgs-7.05.5\src\devs.mak
--- espgs-7.05.5.org\src\devs.mak	Sat Jan 04 13:00:52 2003
+++ espgs-7.05.5\src\devs.mak	Sat Jan 04 00:38:16 2003
@@ -633,7 +633,7 @@
 ijs_=$(GLOBJ)gdevijs.$(OBJ) $(IJSOBJ)ijs.$(OBJ) $(IJSOBJ)ijs_client.$(OBJ) \
  $(IJSOBJ)ijs_exec_$(IJSEXECTYPE).$(OBJ)
 
-$(DD)ijs.dev : $(ijs_) $(GLD)page.dev $(DD)ijslib.dev
+$(DD)ijs.dev : $(ijs_) $(GLD)page.dev $(IJSOBJ)ijslib.dev
 	$(SETPDEV) $(DD)ijs $(ijs_)
 
 $(GLOBJ)gdevijs.$(OBJ) : $(GLSRC)gdevijs.c $(PDEVH) \
diff -uNr espgs-7.05.5.org\src\dj-tail.mak espgs-7.05.5\src\dj-tail.mak
--- espgs-7.05.5.org\src\dj-tail.mak	Thu Jan 01 01:00:00 1970
+++ espgs-7.05.5\src\dj-tail.mak	Sat Jan 04 12:54:36 2003
@@ -0,0 +1,83 @@
+#    Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000 Aladdin Enterprises.  All rights reserved.
+# 
+# This software is provided AS-IS with no warranty, either express or
+# implied.
+# 
+# This software is distributed under license and may not be copied,
+# modified or distributed except as expressly authorized under the terms
+# of the license contained in the file LICENSE in this distribution.
+# 
+# For more information about licensing, please refer to
+# http://www.ghostscript.com/licensing/. For information on
+# commercial licensing, go to http://www.artifex.com/licensing/ or
+# contact Artifex Software, Inc., 101 Lucas Valley Road #110,
+# San Rafael, CA  94903, U.S.A., +1(415)492-9861.
+
+# $Id: dvx-tail.mak,v 1.3 2002/04/23 11:58:38 easysw Exp $
+# Partial makefile, common to all Desqview/X configurations.
+# This is the last part of the makefile for Desqview/X configurations.
+
+# The following prevents GNU make from constructing argument lists that
+# include all environment variables, which can easily be longer than
+# brain-damaged system V allows.
+
+.NOEXPORT:
+
+# -------------------------------- Library -------------------------------- #
+
+## The Desqview/X platform
+
+dvx__=$(GLOBJ)gp_getnv.$(OBJ) $(GLOBJ)gp_dvx.$(OBJ) $(GLOBJ)gp_unifs.$(OBJ) $(GLOBJ)gp_dosfs.$(OBJ) $(GLOBJ)gp_stdin.$(OBJ)
+$(GLGEN)djgpp_.dev: $(dvx__) $(GLD)nosync.dev
+	$(SETMOD) $(GLGEN)djgpp_ $(dvx__) -include $(GLD)nosync
+
+$(GLOBJ)gp_dvx.$(OBJ): $(GLSRC)gp_dvx.c $(AK) $(string__h) $(gx_h) $(gsexit_h) $(gp_h) \
+  $(time__h) $(dos__h)
+	$(CC_) -D__DVX__ -c $(GLSRC)gp_dvx.c -o $(GLOBJ)gp_dvx.$(OBJ)
+
+$(GLOBJ)gp_stdin.$(OBJ): $(GLSRC)gp_stdin.c $(AK) $(stdio__h) $(gx_h) $(gp_h)
+	$(GLCC) $(GLO_)gp_stdin.$(OBJ) $(C_) $(GLSRC)gp_stdin.c
+
+# -------------------------- Auxiliary programs --------------------------- #
+
+$(ANSI2KNR_XE): $(GLSRC)ansi2knr.c
+	$(CCA2K) $(O_)$(ANSI2KNR_XE) $(GLSRC)ansi2knr.c
+
+$(ECHOGS_XE): $(GLSRC)echogs.c $(AK) $(stdpre_h)
+	$(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(ECHOGS_XE) $(GLSRC)echogs.c
+
+# On the RS/6000 (at least), compiling genarch.c with gcc with -O
+# produces a buggy executable.
+$(GENARCH_XE): $(GLSRC)genarch.c $(AK) $(GENARCH_DEPS)
+	$(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENARCH_XE) $(GLSRC)genarch.c
+
+$(GENCONF_XE): $(GLSRC)genconf.c $(AK) $(GENCONF_DEPS)
+	$(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENCONF_XE) $(GLSRC)genconf.c
+
+$(GENDEV_XE): $(GLSRC)gendev.c $(AK) $(GENDEV_DEPS)
+	$(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENDEV_XE) $(GLSRC)gendev.c
+
+$(GENHT_XE): $(GLSRC)genht.c $(AK) $(GENHT_DEPS)
+	$(CCAUX) $(GENHT_CFLAGS) $(O_)$(GENHT_XE) $(GLSRC)genht.c
+
+$(GENINIT_XE): $(GLSRC)geninit.c $(AK) $(GENINIT_DEPS)
+	$(CCAUX) $(I_)$(GLSRCDIR)$(_I) $(O_)$(GENINIT_XE) $(GLSRC)geninit.c
+
+# Construct $(gconfig__h) to reflect the environment.
+INCLUDE=/djgpp/include
+$(gconfig__h): $(GLSRCDIR)/dvx-tail.mak $(ECHOGS_XE)
+	$(ECHOGS_XE) -w (gconfig__h) -x 2f2a -s This file was generated automatically. -s -x 2a2f
+	$(ECHOGS_XE) -a $(gconfig__h) -x 23 
+	$(ECHOGS_XE) -a $(gconfig__h) -x 23 
+
+# ----------------------------- Main program ------------------------------ #
+
+# Interpreter main program
+
+$(GS_XE): $(ld_tr) $(GLOBJ)gs.$(OBJ) $(INT_ALL) $(LIB_ALL) $(DEVS_ALL)
+	$(CP_) $(ld_tr) _temp_
+	echo $(EXTRALIBS) $(STDLIBS) >>_temp_
+	$(CC) $(LDFLAGS) -o $(GS_XE) $(GLOBJ)gs.$(OBJ) @_temp_
+	strip $(GS_XE)
+	$(RM) _temp_
+
diff -uNr espgs-7.05.5.org\src\gp_dvx.c espgs-7.05.5\src\gp_dvx.c
--- espgs-7.05.5.org\src\gp_dvx.c	Sat Jan 04 13:00:52 2003
+++ espgs-7.05.5\src\gp_dvx.c	Sat Jan 04 12:54:16 2003
@@ -22,6 +22,10 @@
 #include "gp.h"
 #include "time_.h"
 
+#ifdef DJGPP
+#define _IOWRT 00002 
+#endif
+
 /* Do platform-dependent initialization. */
 void
 gp_init(void)
diff -uNr espgs-7.05.5.org\src\gp_unifs.c espgs-7.05.5\src\gp_unifs.c
--- espgs-7.05.5.org\src\gp_unifs.c	Sat Jan 04 13:00:52 2003
+++ espgs-7.05.5\src\gp_unifs.c	Sat Jan 04 01:17:58 2003
@@ -103,12 +103,14 @@
     return fopen(fname, mode);
 }
 
+#ifndef DJGPP
 /* Set a file into binary or text mode. */
 int
 gp_setmode_binary(FILE * pfile, bool mode)
 {
     return 0;			/* Noop under Unix */
 }
+#endif
 
 /* ------ File enumeration ------ */
 
diff -uNr espgs-7.05.5.org\src\gs.mak espgs-7.05.5\src\gs.mak
--- espgs-7.05.5.org\src\gs.mak	Sat Jan 04 13:00:52 2003
+++ espgs-7.05.5\src\gs.mak	Sat Jan 04 00:43:32 2003
@@ -401,7 +401,7 @@
 
 ld_tr=$(GLGENDIR)$(D)ld.tr
 $(gconfig_h) $(ld_tr) $(GLGENDIR)$(D)lib.tr : \
-  $(GS_MAK) $(TOP_MAKEFILES) $(GLSRCDIR)$(D)version.mak $(GENCONF_XE) $(ECHOGS_XE) $(devs_tr) $(DEVS_ALL) $(GLGENDIR)$(D)libcore.dev
+  $(GS_MAK) $(TOP_MAKEFILES) $(GLSRCDIR)$(D)version.mak $(GENCONF_XE) $(ECHOGS_XE) $(devs_tr) $(DEVS_ALL) $(GLD)libcore.dev
 	$(EXP)$(GENCONF_XE) $(devs_tr) -h $(gconfig_h) $(CONFILES) $(CONFLDTR) $(ld_tr)
 	$(EXP)$(ECHOGS_XE) -a $(gconfig_h) -x 23 define -s -u GS_LIB_DEFAULT -x 2022 $(GS_LIB_DEFAULT) -x 22
 	$(EXP)$(ECHOGS_XE) -a $(gconfig_h) -x 23 define -s -u SEARCH_HERE_FIRST -s $(SEARCH_HERE_FIRST)