summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipsk/pc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2006-01-17 21:41:51 +0000
committerKarl Berry <karl@freefriends.org>2006-01-17 21:41:51 +0000
commit487ca4806cc046076293cf6cc5fbba0db282bac7 (patch)
tree847b412ab5158dd7bdd7ed7e5a4cc3fbca94be32 /Build/source/texk/dvipsk/pc
parenta3d3111bfe26b8e5f5bc6049dfb2a4ca2edc7881 (diff)
texk 1
git-svn-id: svn://tug.org/texlive/trunk@1485 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipsk/pc')
-rw-r--r--Build/source/texk/dvipsk/pc/README.pc152
-rw-r--r--Build/source/texk/dvipsk/pc/afm2tfm.def3
-rw-r--r--Build/source/texk/dvipsk/pc/config.ps65
-rw-r--r--Build/source/texk/dvipsk/pc/dvips16.def3
-rw-r--r--Build/source/texk/dvipsk/pc/dvipswin.def6
-rw-r--r--Build/source/texk/dvipsk/pc/makefile.emx373
-rw-r--r--Build/source/texk/dvipsk/pc/makefile.msc313
-rw-r--r--Build/source/texk/dvipsk/pc/makefile.tc282
-rw-r--r--Build/source/texk/dvipsk/pc/makefile.wat310
-rw-r--r--Build/source/texk/dvipsk/pc/makefile.wt2304
-rw-r--r--Build/source/texk/dvipsk/pc/maketexp.bat52
-rw-r--r--Build/source/texk/dvipsk/pc/maketexp.cmd56
-rw-r--r--Build/source/texk/dvipsk/pc/squeeze.def3
-rw-r--r--Build/source/texk/dvipsk/pc/wat.h10
-rw-r--r--Build/source/texk/dvipsk/pc/winmain.c89
15 files changed, 2021 insertions, 0 deletions
diff --git a/Build/source/texk/dvipsk/pc/README.pc b/Build/source/texk/dvipsk/pc/README.pc
new file mode 100644
index 00000000000..3af7a60d267
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/README.pc
@@ -0,0 +1,152 @@
+Some notes on installing dvips 5.5 on MS-DOS and OS/2
+by Russell Lang <rjl@monu1.cc.monash.edu.au> 17th February 1994
+
+These notes are not by Tomas Rokicki.
+Tomas Rokicki does not use MS-DOS ( smart person :-) and so will be
+unable to answer questions about MS-DOS problems.
+
+=========
+ZIP files
+=========
+If you have ZIP files, one should contain the sources of dvips
+(same as labrea.stanford.edu:pub/dvips55?.tar.Z) and the other
+should contain dvips ready to run with the following compiled
+versions of dvips:
+ dvips.exe MS-DOS 8086
+ dvipswin.exe MS-Windows 3.1
+ dvips32.exe OS/2 32 bit or MS-DOS with EMX DOS extender
+The following may or may not be in the ZIP file.
+ dvips16.exe OS/2 16 bit and MS-DOS (MSC6).
+
+To install this in the emTeX directories on drive C:, use
+ unzip dvips55? c:\
+
+=======
+General
+=======
+If you want to use a different directory arrangement, modify the
+paths in c:\emtex\ps\config.ps. If you want to store config.ps or
+psfonts.map in a different place, either recompile dvips or use the
+environment variable TEXCONFIG.
+
+The LaTeX and TeX input files supplied with dvips (e.g. epsf.sty, epsf.tex)
+are now put in c:\emtex\texinput\dvips and not in their old location
+c:\emtex\texinput. This means that you need emTeX beta 11 and you will
+need to enable emTeX's subdirectory searching with
+set TEXINPUT=c:\emtex\texinput!
+
+The MSDOS and OS/2 versions of dvips differ from the Unix version
+described in dvips.tex in the following ways:
+- path separators are ';' not ':'
+- directory separators are '\' not '/'
+- The user's initialization file is "dvips.ini" not ".dvipsrc".
+- Printer configuration files are called <printer-name>.cfg,
+ not config.<printer-name>.
+- Pipes to printers are not supported by MS-DOS. Output must go to a file.
+ OS/2 supports pipes.
+- MakeTeXPk is a batch or command file.
+ Since MS-DOS has insufficient memory to run both dvips and metafont
+ at the same time, this batch or command file will typically write out
+ a set of commands for running metafont later.
+ The maketexp.bat supplied writes out an mfjob file for em\TeX.
+ OS/2 has more memory so the maketexp.cmd supplied writes out an
+ mfjob file for emTeX and calls mfjob.
+ The emTeX betatest mfjob 1.1l package is required.
+- To automatically make fonts under MS-DOS, use emTeX's dvidrv as follows:
+ dvidrv dvips file.dvi
+ dvidrv is part of the emTeX betatest dvidrv 1.4s package.
+ dvidrv sets an option -pj=mfjobfile for dvips, where mfjobfile
+ is the name of a temporary mfjob file.
+ If there are missing fonts, dvips will write this mfjob file
+ and then ask:
+ Exit to make missing fonts now (y/n)?
+ If you answer yes, dvips exits with errorlevel 8 which tells
+ dvidrv to call mfjob to make the fonts, and then to call dvips again.
+ For this to work, dvidrv, dvips, mfjob and mf must be located in
+ the PATH, and the environment variables for mfjob and mf set
+ correctly. A font mode must be set with the 'M' option in config.ps.
+ If the -pj option is set, dvips will not call MakeTeXPk.bat
+- limited emTeX specials. The following ones are supported:
+ \special{em:message xxx}
+ \special{em:point n}
+ \special{em:line a[h|v|p],b[h|v|p] [,width]}
+ \special{em:linewidth width}
+ \special{em:moveto}
+ \special{em:lineto}
+ \special{em:graph xxx[,width[,height]]}
+ The line cut parameters [h|v|p] of the \special{em:line ...} command
+ are ignored. Lines are ended with a rounded cap.
+ A maximum of 1613 different point numbers are permitted on each page.
+ The \special{em:graph xxx} should work with PCX, MSP1, MSP2 and
+ BMP files. Compressed BMP files have not been tested.
+ The graph file may be scaled by giving an optional width and
+ height (expressed in the same way as TeX dimensions).
+ An example: \special{em:graph scrdump.pcx,100mm,75mm}
+
+The program dvips can use emTeX font libraries created with the
+fontlib /2 option. PXL fonts within font libraries will be ignored.
+
+If you run out of memory running dvips, try using the `-Z0 -a' or
+just the `-a' command line options. If that fails, use the 32 bit
+version.
+
+=====
+Files
+=====
+This set of MSDOS and OS/2 files for dvips contains:
+README.pc This file.
+makefile.tc Makefile for Borland C++ (MS-DOS).
+makefile.emx Makefile for nmake/ndmake and emx/gcc (OS/2 and MS-DOS).
+makefile.msc Makefile for dmake and MSC6 (OS/2).
+makefile.wat Makefile for Watcom C (untested)
+makefile.wt2 Makefile for Watcom C (untested)
+config.ps config.ps modified for MSDOS and OS/2
+maketexp.bat Batch file to make tex pk files.
+maketexp.cmd OS/2 batch file to make tex pk files.
+winmain.c WinMain() routine for Windows dvips.
+dvipswin.rc Windows Resource file containing radical eye icon.
+dvipswin.def Windows defaults file.
+afm2tfm.def OS/2 16 bit defaults file.
+dvips16.def OS/2 16 bit defaults file.
+squeeze.def OS/2 16 bit defaults file.
+
+=========
+Compiling
+=========
+If you have the Unix tar file, the steps involved in making
+dvips on a PC are:
+- On Unix, in the dvips directory, give the following commands:
+ make texc.lpro
+ nroff -man dvips.1 > pc/dvips.doc
+ nroff -man afm2tfm.1 > pc/afm2tfm.doc
+- Copy dvips/* and dvips/pc/* directories to the PC.
+- copy PStfms/*.tfm to C:\EMTEX\TFM on the PC
+ (then optionally delete pst*.tfm, rpst*.tfm, pop*.tfm rpop*.tfm,
+ pad*.tfm rpad*.tfm)
+- copy PSvfs/*.vf to C:\TEXFONTS\VF on the PC
+ (then optionally delete pst*.vf, pop*.vf, pad*.vf)
+- edit dvipsmac.tex and replace the line
+ \generictrue
+ with
+ %\generictrue
+
+For Borland C++:
+- edit paths and directories in pc/makefile.tc and pc/config.ps.
+- 'make -fpc/makefile.tc'
+ Borland C++ gives a large number of 'possible incorrect assignment'
+ warnings.
+- if that works, try 'make -fpc/makefile.tc install'.
+- change to another directory (to avoid using the Unix config.ps)
+ and then try to run dvips!
+
+For emx/gcc:
+- edit paths and directories in pc/makefile.emx and pc/config.ps.
+- If using HPFS, type 'nmake -fpc\makefile.emx fixup'
+- If using ndmake under msdos, PKPATH will need to be changed to
+ using single % not %%.
+- 'nmake -f pc\makefile.emx'
+- if that works, try 'nmake -f pc\makefile.emx install'.
+- change to another directory (to avoid using the Unix config.ps)
+ and then try to run dvips32!
+- dvips32.exe will run under OS/2 and MSDOS.
+- See the EMX documentation for the EMX DOS extender.
diff --git a/Build/source/texk/dvipsk/pc/afm2tfm.def b/Build/source/texk/dvipsk/pc/afm2tfm.def
new file mode 100644
index 00000000000..6faa068fab3
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/afm2tfm.def
@@ -0,0 +1,3 @@
+NAME afm2tfm WINDOWCOMPAT NEWFILES
+DESCRIPTION 'Adobe afm -> TeX tfm converter for OS/2 and DOS'
+STACKSIZE 0x2000
diff --git a/Build/source/texk/dvipsk/pc/config.ps b/Build/source/texk/dvipsk/pc/config.ps
new file mode 100644
index 00000000000..4c1e85899dd
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/config.ps
@@ -0,0 +1,65 @@
+* Claim 180kbytes memory
+m 180000
+* Default resolution.
+D 300
+* Default metafont mode (defined in emTeX's local.mf)
+M hplaser
+* Paths (uncomment and edit if you need these)
+*T c:\emtex\tfm
+*V c:\texfonts\vf
+*P c:\texfonts\pixel.lj\%ddpi\%f.%p
+*L c:\texfonts\;lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5a;lj_5b;lj_sli
+*S .;c:\emtex\texinput
+*H .;c:\emtex\ps
+* Compress fonts
+Z
+*
+* Paper size information. First definition is the default.
+*
+* If your default is a4 uncomment the following definition
+* and comment out the letterSize definition.
+*@ a4size 210mm 297mm
+*@+ %%PaperSize: A4
+
+@ letterSize 8.5in 11in
+@+ %%PaperSize: Letter
+
+@ letter 8.5in 11in
+@+ %%BeginPaperSize: Letter
+@+ letter
+@+ %%EndPaperSize
+
+@ legal 8.5in 14in
+@+ ! %%DocumentPaperSizes: Legal
+@+ %%BeginPaperSize: Legal
+@+ legal
+@+ %%EndPaperSize
+
+@ ledger 17in 11in
+@+ ! %%DocumentPaperSizes: Ledger
+@+ %%BeginPaperSize: Ledger
+@+ ledger
+@+ %%EndPaperSize
+
+@ tabloid 11in 17in
+@+ ! %%DocumentPaperSizes: Tabloid
+@+ %%BeginPaperSize: Tabloid
+@+ 11x17
+@+ %%EndPaperSize
+
+@ a4 210mm 297mm
+@+ ! %%DocumentPaperSizes: A4
+@+ %%BeginPaperSize: A4
+@+ a4
+@+ %%EndPaperSize
+
+@ a3 297mm 420mm
+@+ ! %%DocumentPaperSizes: a3
+@+ %%BeginPaperSize: a3
+@+ a3
+@+ %%EndPaperSize
+
+@ unknown 0in 0in
+@+ statusdict /setpageparams known { hsize vsize 0 1 statusdict begin {
+@+ setpageparams } stopped end } { true } ifelse { statusdict /setpage known
+@+ { hsize vsize statusdict begin { setpage } stopped pop end } if } if
diff --git a/Build/source/texk/dvipsk/pc/dvips16.def b/Build/source/texk/dvipsk/pc/dvips16.def
new file mode 100644
index 00000000000..071b556abaa
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/dvips16.def
@@ -0,0 +1,3 @@
+NAME dvips WINDOWCOMPAT NEWFILES
+DESCRIPTION 'TeX DVI -> PostScript converter for OS/2 and DOS'
+STACKSIZE 0x2000
diff --git a/Build/source/texk/dvipsk/pc/dvipswin.def b/Build/source/texk/dvipsk/pc/dvipswin.def
new file mode 100644
index 00000000000..527398b08ac
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/dvipswin.def
@@ -0,0 +1,6 @@
+NAME dvips
+DESCRIPTION 'TeX DVI -> PostScript converter'
+EXETYPE WINDOWS
+CODE MOVEABLE NONDISCARDABLE PRELOAD
+DATA MULTIPLE MOVEABLE PRELOAD
+STACKSIZE 16384
diff --git a/Build/source/texk/dvipsk/pc/makefile.emx b/Build/source/texk/dvipsk/pc/makefile.emx
new file mode 100644
index 00000000000..5cd9576a7cc
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/makefile.emx
@@ -0,0 +1,373 @@
+#
+# Makefile for dvips. Edit this first part of the file.
+#
+# First, the things that absolutely must be edited for your system.
+
+# modified for EMX-0.8g/GCC with NMAKE on OS/2 2.1.
+# by rjl@monu1.cc.monash.edu.au
+# 17th February 1994
+
+# If using HPFS you may need to type 'nmake fixup' to truncate names.
+# If using NDMAKE 4.5 under MS-DOS, PKPATH needs %% changed to %.
+# If using Borland MAKER under MS-DOS, all paths need \\ changed to \\\\.
+
+# compiler
+EMXPATH = e:/emx
+CC = gcc
+
+# All DIRs must use a single \ as a directory separator.
+# All PATHs must use \\ as a directory separator
+DRIVE = c:
+TEXDIR = $(DRIVE)\emtex
+TEXPATH = $(DRIVE)\\emtex
+
+# the default path to search for TFM files
+# (this usually is identical to TeX's defaultfontpath, which omits `.')
+# (private fonts are given an explicit directory, which overrides the path)
+# TFMPATH = $(TEXPATH)\\tfm
+TFMPATH = $(TEXPATH)\\tfm
+
+# the default path to search for PK files (usually omits `.')
+# Don't forget to add the directory that
+# MakeTeXPK puts the files! (In this case, /LocalLibrary/Fonts...)
+# PKPATH = $(DRIVE)\\texfonts\\pixel.lj\\%ddpi\\%f.%p
+PKPATH = $(DRIVE)\\texfonts\\pixel.lj\\%%ddpi\\%%f.%%p
+
+# the default path to search for VF files (usually omits `.')
+# VFPATH = $(DRIVE)\\texfonts\\vf
+VFPATH = $(DRIVE)\\texfonts\\vf
+
+# additional directories in which to search for subdirectories to find
+# both tfm and pk files
+FONTSUBDIRPATH =
+
+# where the config files go
+# CONFIGDIR = $(TEXDIR)\ps
+CONFIGDIR = $(TEXDIR)\ps
+
+# the default path to search for config files
+# CONFIGPATH = .;$(TEXPATH)\\ps
+CONFIGPATH = .;$(TEXPATH)\\ps
+
+# the name of your config file
+# CONFIGFILE = config.ps
+CONFIGFILE = config.ps
+
+# where the header PS files go
+# HEADERDIR = $(TEXDIR)\ps
+HEADERDIR = $(TEXDIR)\ps
+
+# the default path to search for header files
+# HEADERPATH = .;$(TEXPATH)\\ps
+HEADERPATH = .;$(TEXPATH)\\ps
+
+# where epsf.tex and rotate.tex go (usually the TeX macros directory)
+# TEXMACRODIR = $(TEXDIR)\texinput
+TEXMACROPARENTDIR = $(TEXDIR)\texinput
+TEXMACRODIR = $(TEXDIR)\texinput\dvips
+
+# the default path to search for epsf and psfiles
+# (usually the same as TeX's defaultinputpath)
+# FIGPATH = .;..;$(TEXPATH)\\texinput
+FIGPATH = .;..;$(TEXPATH)\\texinput
+
+# the default path to search for emTeX font libraries
+# FLIPATH = $(DRIVE)\\texfonts
+FLIPATH = $(DRIVE)\\texfonts
+
+# the names of emTeX font libraries
+# FLINAME = lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5a;lj_5b;lj_sli
+FLINAME = lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5a;lj_5b;lj_sli
+
+# change -DDEFRES=300 or whatever is required
+# if the default resolution is not 300 dpi,
+# add -DDEBUG to turn on debugging capability
+# add -DTPIC for tpic support
+# add -DFONTLIB to search font libraries
+# add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
+# add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
+# add -DCREATIONDATE if your system has a working time() and you want dated files
+# If you define FONTLIB, make sure to also give definitions to
+# FLIPATH and FLINAME.
+#
+DEFS= -DTPIC -DDEBUG -DFONTLIB -DDEFRES=300
+
+OPT = -O -s
+
+LINKOPT = -lm
+
+# If you are compiling dvips for suid or other privileges, you will
+# definitely want to define the following symbol; else don't.
+# SECURE = -DSECURE
+SECURE =
+
+# If you want EMTEX specials, define the following.
+EMTEX = -DEMTEX
+
+# define the c-compiler flag
+# -DOS2 for OS/2 and MS-DOS with EMX extender
+SYS = -DOS2
+
+# where the installed binary goes
+# BINDIR = c:\emtex
+BINDIR = $(TEXDIR)
+
+# where the manual page goes
+# MANDIR = c:\emtex\doc
+MANDIR = $(TEXDIR)\doc
+
+#makefile.emx sets all paths in paths.rsp
+CFLAGS = $(OPT) $(SYS) $(SECURE) $(EMTEX) $(DEFS)
+
+SRC = dospecia.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
+ download.c prescan.c scanpage.c skippage.c output.c scalewid.c \
+ dosectio.c dopage.c resident.c search.c unpack.c drawPS.c \
+ header.c makefont.c repack.c virtualf.c dpicheck.c finclude.c \
+ pprescan.c papersiz.c flib.c color.c bbox.c emspecia.c
+
+OBJ = dospecia.o dviinput.o fontdef.o loadfont.o dvips.o \
+ tfmload.o download.o prescan.o scanpage.o skippage.o \
+ output.o scalewid.o dosectio.o dopage.o resident.o \
+ search.o unpack.o drawPS.o header.o makefont.o repack.o \
+ virtualf.o dpicheck.o finclude.o \
+ pprescan.o papersiz.o flib.o color.o bbox.o emspecia.o
+
+all : afm2tfm.exe dvips32.exe tex.pro texps.pro texc.pro \
+ special.pro finclude.pro color.pro crop.pro
+
+# default rules
+
+.SUFFIXES: .o .c
+
+.c.o:
+ $(CC) -c $(CFLAGS) @paths.rsp $<
+
+dvips32.exe: $(OBJ) gcclink.rsp
+ $(CC) -o dvips32 @gcclink.rsp $(LINKOPT)
+ emxbind $(EMXPATH)/bin/emx.exe dvips32 dvips32.exe -p
+
+gcclink.rsp: pc/makefile.emx
+ echo dospecia.o>gcclink.rsp
+ echo dviinput.o>>gcclink.rsp
+ echo fontdef.o>>gcclink.rsp
+ echo loadfont.o>>gcclink.rsp
+ echo dvips.o>>gcclink.rsp
+ echo tfmload.o>>gcclink.rsp
+ echo download.o>>gcclink.rsp
+ echo prescan.o>>gcclink.rsp
+ echo scanpage.o>>gcclink.rsp
+ echo skippage.o>>gcclink.rsp
+ echo output.o>>gcclink.rsp
+ echo scalewid.o>>gcclink.rsp
+ echo dosectio.o>>gcclink.rsp
+ echo dopage.o>>gcclink.rsp
+ echo resident.o>>gcclink.rsp
+ echo search.o>>gcclink.rsp
+ echo unpack.o>>gcclink.rsp
+ echo drawPS.o>>gcclink.rsp
+ echo header.o>>gcclink.rsp
+ echo makefont.o>>gcclink.rsp
+ echo repack.o>>gcclink.rsp
+ echo virtualf.o>>gcclink.rsp
+ echo dpicheck.o>>gcclink.rsp
+ echo finclude.o>>gcclink.rsp
+ echo pprescan.o>>gcclink.rsp
+ echo papersiz.o>>gcclink.rsp
+ echo flib.o>>gcclink.rsp
+ echo color.o>>gcclink.rsp
+ echo bbox.o>>gcclink.rsp
+ echo emspecia.o>>gcclink.rsp
+
+afm2tfm.exe: afm2tfm.c paths.rsp
+ $(CC) $(CFLAGS) @paths.rsp afm2tfm.c -o afm2tfm $(LINKOPT)
+ emxbind $(EMXPATH)/bin/emx.exe afm2tfm afm2tfm.exe
+
+paths.rsp: pc\makefile.emx
+ echo -I$(EMXPATH)/include> paths.rsp
+ echo -L$(EMXPATH)/lib>> paths.rsp
+ echo -funsigned-char>> paths.rsp
+ echo -DCREATIONDATE>> paths.rsp
+ echo -DTFMPATH="$(TFMPATH)">> paths.rsp
+ echo -DPKPATH="$(PKPATH)">> paths.rsp
+ echo -DVFPATH="$(VFPATH)">> paths.rsp
+ echo -DHEADERPATH="$(HEADERPATH)">> paths.rsp
+ echo -DCONFIGPATH="$(CONFIGPATH)">> paths.rsp
+ echo -DCONFIGFILE="$(CONFIGFILE)">> paths.rsp
+ echo -DFONTSUBDIRPATH="$(FONTSUBDIRPATH)">> paths.rsp
+ echo -DFIGPATH="$(FIGPATH)">> paths.rsp
+ echo -DFLIPATH="$(FLIPATH)">> paths.rsp
+ echo -DFLINAME="$(FLINAME)">> paths.rsp
+
+$(OBJ) : dvips.h debug.h paths.h paths.rsp
+
+squeeze.exe : squeeze.c paths.rsp
+ $(CC) $(CFLAGS) @paths.rsp squeeze.c -o squeeze
+ emxbind $(EMXPATH)/bin/emx.exe squeeze squeeze.exe
+
+tex.pro : tex.lpr squeeze.exe
+ squeeze tex.lpr tex.pro
+
+texc.pro: texc.lpr squeeze.exe
+ squeeze texc.lpr texc.pro
+
+texc.lpr: tex.lpr
+ @echo This does "texc.scr tex.lpro texc.lpro" on Unix
+ @echo For MSDOS or OS/2, copy tex.lpro to texc.lpr
+ @echo then edit texc.lpr to remove the code
+ @echo for uncompressed fonts and uncomment the
+ @echo code for unpacking compressed fonts
+
+
+texps.pro : texps.lpr squeeze.exe
+ squeeze texps.lpr texps.pro
+
+special.pro : special.lpr squeeze.exe
+ squeeze special.lpr special.pro
+
+finclude.pro: finclude.lpr squeeze.exe
+ squeeze finclude.lpr finclude.pro
+
+color.pro: color.lpr squeeze.exe
+ squeeze color.lpr color.pro
+
+crop.pro: crop.lpr squeeze.exe
+ squeeze crop.lpr crop.pro
+
+install : afm2tfm.exe dvips32.exe pc/maketexp.bat pc/maketexp.cmd \
+ tex.pro texc.pro texps.pro special.pro finclude.pro color.pro crop.pro \
+ pc/config.ps psfonts.map epsf.tex epsf.sty rotate.tex rotate.sty \
+ dvips.tex dvipsmac.tex colordvi.sty colordvi.tex blackdvi.sty \
+ blackdvi.tex pc/dvips.doc pc/afm2tfm.doc
+ -mkdir $(BINDIR)
+ -mkdir $(HEADERDIR)
+ -mkdir $(CONFIGDIR)
+ -mkdir $(MANDIR)
+ -mkdir $(TEXMACROPARENTDIR)
+ -mkdir $(TEXMACRODIR)
+ copy afm2tfm.exe $(BINDIR)\afm2tfm.exe
+ copy dvips32.exe $(BINDIR)\dvips32.exe
+ copy pc\maketexp.bat $(BINDIR)\maketexp.bat
+ copy pc\maketexp.cmd $(BINDIR)\maketexp.cmd
+ copy tex.pro $(HEADERDIR)
+ copy texc.pro $(HEADERDIR)
+ copy texps.pro $(HEADERDIR)
+ copy special.pro $(HEADERDIR)
+ copy finclude.pro $(HEADERDIR)
+ copy color.pro $(HEADERDIR)
+ copy crop.pro $(HEADERDIR)
+ copy pc\config.ps $(CONFIGDIR)\$(CONFIGFILE)
+ copy psfonts.map $(CONFIGDIR)
+ copy epsf.tex $(TEXMACRODIR)
+ copy epsf.sty $(TEXMACRODIR)
+ copy rotate.tex $(TEXMACRODIR)
+ copy rotate.sty $(TEXMACRODIR)
+ copy colordvi.sty $(TEXMACRODIR)
+ copy colordvi.tex $(TEXMACRODIR)
+ copy blackdvi.sty $(TEXMACRODIR)
+ copy blackdvi.tex $(TEXMACRODIR)
+ copy dvips.tex $(TEXMACRODIR)
+ copy dvipsmac.tex $(TEXMACRODIR)
+ copy pc\dvips.doc $(MANDIR)
+ copy pc\afm2tfm.doc $(MANDIR)
+
+veryclean :
+ -del *.o
+ -del dvips32.exe
+ -del dvips32
+ -del squeeze.exe
+ -del squeeze
+ -del afm2tfm.exe
+ -del afm2tfm
+ -del *.pro
+ -del paths.rsp
+ -del gcclink.rsp
+
+clean :
+ -del *.o
+ -del dvips32
+ -del squeeze.exe
+ -del squeeze
+ -del afm2tfm
+ -del paths.rsp
+ -del gcclink.rsp
+
+
+# convert long names to 8.3 names
+fixup:
+ -rename dosection.c dosectio.c
+ -rename dospecial.c dospecia.c
+ -rename emspecial.c emspecia.c
+ -rename scalewidth.c scalewid.c
+ -rename virtualfont.c virtualf.c
+ -rename tex.lpro tex.lpr
+ -rename texc.lpro texc.lpr
+ -rename texps.lpro texps.lpr
+ -rename special.lpro special.lpr
+ -rename finclude.lpro finclude.lpr
+ -rename color.lpro color.lpr
+ -rename crop.lpro crop.lpr
+ -rename ..\PSlatex\avantgarde.sty avantgar.sty
+
+# convert short 8.3 names to original long names
+long:
+ -rename dosectio.c dosection.c
+ -rename dospecia.c dospecial.c
+ -rename emspecia.c emspecia..c
+ -rename scalewid.c scalewidth.c
+ -rename virtualf.c virtualfont.c
+ -rename tex.lpr tex.lpro
+ -rename texc.lpr texc.lpro
+ -rename texps.lpr texps.lpro
+ -rename special.lpr special.lpro
+ -rename finclude.lpr finclude.lpro
+ -rename color.lpr color.lpro
+ -rename crop.lpr crop.lpro
+ -rename installa INSTALLATION
+ -rename maketexp MakeTeXPK
+ -rename config.lin config.lino
+ -rename config.pos config.post3x3
+ -rename rotsampl.tex rotsample.tex
+ -rename ..\PSlatex\avantgar.sty avantgarde.sty
+
+# used for creating zip file
+zip:
+ copy ..\PSlatex\*.* $(TEXMACRODIR)
+ -mkdir $(TEXDIR)\tfm
+ copy ..\PStfms\*.* $(TEXDIR)\tfm
+ -mkdir $(DRIVE)\texfonts
+ -mkdir $(DRIVE)\texfonts\vf
+ copy ..\PSvfs\*.* $(DRIVE)\texfonts\vf
+ copy pc\README.pc $(DRIVE)\
+ $(DRIVE)
+ cd \
+ dir /f /s /l emtex > emtex.lst
+ dir /f /s /l texfonts >> emtex.lst
+ remove -w emtex\remove\dvips.rem emtex.lst
+ -del dvipsexe.zip
+ zip -r dvipsexe README.pc emtex texfonts
+
+# used for converting Unix EOL to OS/2 EOL
+# when dvips.tar has been extracted under OS/2.
+eol:
+ -flip -m *.*
+ cd contrib
+ -flip -m *.*
+ cd bbfig
+ -flip -m *.*
+ cd ..\psfig
+ -flip -m *.*
+ cd ..\psfntmac
+ -flip -m *.*
+ cd ..\pspic
+ -flip -m *.*
+ cd ..\..\mvs
+ -flip -m *.*
+ cd ..\pc
+ -flip -m *.*
+ cd ..\reencode
+ -flip -m *.*
+ cd ..\vmcms
+ -flip -m *.*
+ cd ..\vms
+ -flip -m *.*
+ cd ..
diff --git a/Build/source/texk/dvipsk/pc/makefile.msc b/Build/source/texk/dvipsk/pc/makefile.msc
new file mode 100644
index 00000000000..4b04d166233
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/makefile.msc
@@ -0,0 +1,313 @@
+#
+# Makefile for dvips. Edit this first part of the file.
+#
+# First, the things that absolutely must be edited for your system.
+
+# modified for MSC 6.00A with dmake on OS/2.
+# by hankedr@mail.auburn.edu
+# 17th February 1994
+# from makefile.emx
+# by rjl@monu1.cc.monash.edu.au
+
+# If using HPFS you may need to type 'nmake fixup' to truncate names.
+# If using NDMAKE 4.5 under MS-DOS, PKPATH needs %% changed to %.
+# If using Borland MAKER under MS-DOS, all paths need \\ changed to \\\\.
+
+# compiler
+CC = cl -nologo -AL
+
+# Define BIND to create bound OS/2 and DOS executables
+BIND= bind $@ /n DOSMAKEPIPE DOSCWAIT
+
+# Utility programs for "make install"
+CP = cp
+RM = rm
+
+# All DIRs must use a single \ as a directory separator.
+# All PATHs must use \\ as a directory separator
+DRIVE = c:
+TEXDIR = $(DRIVE)\emtex
+TEXPATH = $(DRIVE)\\emtex
+
+
+# the default path to search for TFM files
+# (this usually is identical to TeX's defaultfontpath, which omits `.')
+# (private fonts are given an explicit directory, which overrides the path)
+# TFMPATH = c:\\emtex\\tfm
+TFMPATH = $(TEXPATH)\\tfm
+
+# the default path to search for PK files (usually omits `.')
+# Don't forget to add the directory that
+# MakeTeXPK puts the files! (In this case, /LocalLibrary/Fonts...)
+# PKPATH = c:\\texfonts\\pixel.lj\\%ddpi\\%f.%p
+#PKPATH = $(DRIVE)\\texfonts\\pixel.lj\\%ddpi\\%f.%p
+PKPATH = $(DRIVE)\\texfonts\\pixel.lj\\%%ddpi\\%%f.%%p
+
+# the default path to search for VF files (usually omits `.')
+# VFPATH = c:\\texfonts\\vf
+VFPATH = $(DRIVE)\\texfonts\\vf
+
+# additional directories in which to search for subdirectories to find
+# both tfm and pk files
+FONTSUBDIRPATH =
+
+# where the config files go
+# CONFIGDIR = c:\emtex\ps
+CONFIGDIR = $(TEXDIR)\ps
+
+# the default path to search for config files
+# CONFIGPATH = .;c:\\emtex\\ps
+CONFIGPATH = .;$(TEXPATH)\\ps
+
+# the name of your config file
+# CONFIGFILE = config.ps
+CONFIGFILE = config.ps
+
+# where the header PS files go
+# HEADERDIR = c:\emtex\ps
+HEADERDIR = $(TEXDIR)\ps
+
+# the default path to search for header files
+# HEADERPATH = .;c:\\emtex\\ps
+HEADERPATH = .;$(TEXPATH)\\ps
+
+# where epsf.tex and rotate.tex go (usually the TeX macros directory)
+# TEXMACRODIR = c:\emtex\texinput
+TEXMACROPARENTDIR = $(TEXDIR)\texinput
+TEXMACRODIR = $(TEXDIR)\texinput\dvips
+
+# the default path to search for epsf and psfiles
+# (usually the same as TeX's defaultinputpath)
+# FIGPATH = .;..;c:\\emtex\\texinput
+FIGPATH = .;..;$(TEXPATH)\\texinput
+
+# the default path to search for emTeX font libraries
+# FLIPATH = c:\\texfonts
+FLIPATH = c:\\texfonts
+
+# the names of emTeX font libraries
+# FLINAME = lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5a;lj_5b;lj_sli
+FLINAME = lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5a;lj_5b;lj_sli
+
+# change -DDEFRES=300 or whatever is required
+# if the default resolution is not 300 dpi,
+# add -DDEBUG to turn on debugging capability
+# add -DTPIC for tpic support
+# add -DFONTLIB to search font libraries
+# add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
+# add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
+# add -DCREATIONDATE if your system has a working time() and you want dated files
+# If you define FONTLIB, make sure to also give definitions to
+# FLIPATH and FLINAME.
+#
+DEFS= -DTPIC -DDEBUG -DFONTLIB -DDEFRES=300 -DHAVE_GETCWD
+
+# OPT = -J -W2 -Zi
+OPT = -J
+
+# LFLAGS = -Lp -Zi -Od
+LFLAGS = -Lp setargv$O -link /NOE
+
+# If you are compiling dvips for suid or other privileges, you will
+# definitely want to define the following symbol; else don't.
+# SECURE = -DSECURE
+SECURE =
+
+# If you want EMTEX specials, define the following.
+EMTEX = -DEMTEX
+
+# define the c-compiler flag
+# -DOS2 for OS/2 and MS-DOS with EMX extender or MSC
+SYS = -DOS2 -UMSDOS
+
+# where the installed binary goes
+# BINDIR = c:\emtex
+BINDIR = $(TEXDIR)
+
+# where the manual page goes
+# MANDIR = c:\emtex\doc
+MANDIR = $(TEXDIR)\doc
+
+PATHS = -DCREATIONDATE \
+ -DTFMPATH=\"$(TFMPATH)\" \
+ -DPKPATH=\"$(PKPATH)\" \
+ -DVFPATH=\"$(VFPATH)\" \
+ -DHEADERPATH=\"$(HEADERPATH)\" \
+ -DCONFIGPATH=\"$(CONFIGPATH)\" \
+ -DCONFIGFILE=\"$(CONFIGFILE)\" \
+ -DFONTSUBDIRPATH=\"$(FONTSUBDIRPATH)\" \
+ -DFIGPATH=\"$(FIGPATH)\" \
+ -DFLIPATH=\"$(FLIPATH)\" \
+ -DFLINAME=\"$(FLINAME)\"
+
+CFLAGS = $(OPT) $(SYS) $(SECURE) $(EMTEX) $(DEFS)
+
+SRC = dospecia.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
+ download.c prescan.c scanpage.c skippage.c output.c scalewid.c \
+ dosectio.c dopage.c resident.c search.c unpack.c drawPS.c \
+ header.c makefont.c repack.c virtualf.c dpicheck.c finclude.c \
+ pprescan.c papersiz.c flib.c color.c bbox.c emspecia.c
+
+OBJ = dospecia$O dviinput$O fontdef$O loadfont$O dvips$O \
+ tfmload$O download$O prescan$O scanpage$O skippage$O \
+ output$O scalewid$O dosectio$O dopage$O resident$O \
+ search$O unpack$O drawPS$O header$O makefont$O repack$O \
+ virtualf$O dpicheck$O finclude$O \
+ pprescan$O papersiz$O flib$O color$O bbox$O emspecia$O
+
+all : afm2tfm.exe dvips16.exe tex.pro texps.pro texc.pro \
+ special.pro finclude.pro color.pro crop.pro
+
+# default rules
+
+O = .obj
+
+.SUFFIXES: $O .c
+
+.c$O:
+ $(CC) -c $(CFLAGS) $(PATHS) $<
+
+dvips16.exe: $(OBJ)
+ $(CC) -o $@ $(OBJ) pc\dvips16.def $(LFLAGS)
+ $(BIND)
+
+
+# The following may be useful in adapting this makefile to DOS
+# LINK = link
+# LINKOPT = /NOE /NOD:llibce.lib llibcep.lib, pc\dvips16.def
+#
+# link.rsp: pc/makefile.msc
+# echo dospecia$O + > link.rsp
+# echo dviinput$O + >>link.rsp
+# echo fontdef$O + >>link.rsp
+# echo loadfont$O + >>link.rsp
+# echo dvips$O + >>link.rsp
+# echo tfmload$O + >>link.rsp
+# echo download$O + >>link.rsp
+# echo prescan$O + >>link.rsp
+# echo scanpage$O + >>link.rsp
+# echo skippage$O + >>link.rsp
+# echo output$O + >>link.rsp
+# echo scalewid$O + >>link.rsp
+# echo dosectio$O + >>link.rsp
+# echo dopage$O + >>link.rsp
+# echo resident$O + >>link.rsp
+# echo search$O + >>link.rsp
+# echo unpack$O + >>link.rsp
+# echo drawPS$O + >>link.rsp
+# echo header$O + >>link.rsp
+# echo makefont$O + >>link.rsp
+# echo repack$O + >>link.rsp
+# echo virtualf$O + >>link.rsp
+# echo dpicheck$O + >>link.rsp
+# echo finclude$O + >>link.rsp
+# echo pprescan$O + >>link.rsp
+# echo papersiz$O + >>link.rsp
+# echo flib$O + >>link.rsp
+# echo color$O + >>link.rsp
+# echo bbox$O + >>link.rsp
+# echo emspecia$O + >>link.rsp
+# echo setargv$O, dvips16.exe,, + >>link.rsp
+# echo $(LINKOPT) >>link.rsp
+
+afm2tfm.exe: afm2tfm.c
+ $(CC) $(CFLAGS) afm2tfm.c -o $@ pc\afm2tfm.def $(LFLAGS)
+ $(BIND)
+
+$(OBJ) : dvips.h debug.h paths.h
+
+squeeze.exe : squeeze.c
+ $(CC) $(CFLAGS) squeeze.c -o $@ pc\squeeze.def $(LFLAGS)
+ $(BIND)
+
+tex.pro : tex.lpr squeeze.exe
+ squeeze tex.lpr tex.pro
+
+texc.pro: texc.lpr squeeze.exe
+ squeeze texc.lpr texc.pro
+
+texc.lpr: tex.lpr
+ @echo This does "texc.scr tex.lpro texc.lpro" on Unix
+ @echo For MSDOS or OS/2, copy tex.lpro to texc.lpr
+ @echo then edit texc.lpr to remove the code
+ @echo for uncompressed fonts and uncomment the
+ @echo code for unpacking compressed fonts
+
+
+texps.pro : texps.lpr squeeze.exe
+ squeeze texps.lpr texps.pro
+
+special.pro : special.lpr squeeze.exe
+ squeeze special.lpr special.pro
+
+finclude.pro: finclude.lpr squeeze.exe
+ squeeze finclude.lpr finclude.pro
+
+color.pro: color.lpr squeeze.exe
+ squeeze color.lpr color.pro
+
+crop.pro: crop.lpr squeeze.exe
+ squeeze crop.lpr crop.pro
+
+install : afm2tfm.exe dvips16.exe pc/maketexp.bat pc/maketexp.cmd \
+ tex.pro texc.pro texps.pro special.pro finclude.pro color.pro crop.pro \
+ pc/config.ps psfonts.map epsf.tex epsf.sty rotate.tex rotate.sty \
+ dvips.tex dvipsmac.tex colordvi.sty colordvi.tex blackdvi.sty \
+ blackdvi.tex pc/dvips.doc pc/afm2tfm.doc
+ -mkdir $(BINDIR)
+ -mkdir $(HEADERDIR)
+ -mkdir $(CONFIGDIR)
+ -mkdir $(MANDIR)
+ -mkdir $(TEXMACROPARENTDIR)
+ -mkdir $(TEXMACRODIR)
+ $(CP) afm2tfm.exe $(BINDIR)\afm2tfm.exe
+ $(CP) dvips16.exe $(BINDIR)\dvips16.exe
+ $(CP) pc\maketexp.bat $(BINDIR)\maketexp.bat
+ $(CP) pc\maketexp.cmd $(BINDIR)\maketexp.cmd
+ $(CP) tex.pro $(HEADERDIR)
+ $(CP) texc.pro $(HEADERDIR)
+ $(CP) texps.pro $(HEADERDIR)
+ $(CP) special.pro $(HEADERDIR)
+ $(CP) finclude.pro $(HEADERDIR)
+ $(CP) color.pro $(HEADERDIR)
+ $(CP) crop.pro $(HEADERDIR)
+ $(CP) pc\config.ps $(CONFIGDIR)\$(CONFIGFILE)
+ $(CP) psfonts.map $(CONFIGDIR)
+ $(CP) epsf.tex $(TEXMACRODIR)
+ $(CP) epsf.sty $(TEXMACRODIR)
+ $(CP) rotate.tex $(TEXMACRODIR)
+ $(CP) rotate.sty $(TEXMACRODIR)
+ $(CP) colordvi.sty $(TEXMACRODIR)
+ $(CP) colordvi.tex $(TEXMACRODIR)
+ $(CP) blackdvi.sty $(TEXMACRODIR)
+ $(CP) blackdvi.tex $(TEXMACRODIR)
+ $(CP) dvips.tex $(TEXMACRODIR)
+ $(CP) dvipsmac.tex $(TEXMACRODIR)
+ $(CP) pc\dvips.doc $(MANDIR)
+ $(CP) pc\afm2tfm.doc $(MANDIR)
+
+veryclean :
+ -$(RM) *.obj
+ -$(RM) dvips16.exe
+ -$(RM) squeeze.exe
+ -$(RM) afm2tfm.exe
+ -$(RM) *.pro
+
+clean :
+ -$(RM) *.obj
+ -$(RM) squeeze.exe
+
+
+fixup:
+ -rename dosection.c dosectio.c
+ -rename dospecial.c dospecia.c
+ -rename emspecial.c emspecia.c
+ -rename scalewidth.c scalewid.c
+ -rename virtualfont.c virtualf.c
+ -rename tex.lpro tex.lpr
+ -rename texc.lpro texc.lpr
+ -rename texps.lpro texps.lpr
+ -rename special.lpro special.lpr
+ -rename finclude.lpro finclude.lpr
+ -rename color.lpro color.lpr
+ -rename crop.lpro crop.lpr
diff --git a/Build/source/texk/dvipsk/pc/makefile.tc b/Build/source/texk/dvipsk/pc/makefile.tc
new file mode 100644
index 00000000000..df0051e0055
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/makefile.tc
@@ -0,0 +1,282 @@
+#
+# Makefile for dvips. Edit this first part of the file.
+#
+# First, the things that absolutely must be edited for your system.
+
+# modified for Borland C 3.1 on MS-DOS by rjl@monu1.cc.monash.edu.au
+# 17th February 1994
+
+# compiler directory
+CCDIR = c:\borlandc
+# compiler and linker
+CC = $(CCDIR)\bin\bcc
+LINK = $(CCDIR)\bin\tlink
+INCLUDE = $(CCDIR)\include
+LIB =$(CCDIR)\lib
+# For Windows application WIN = win
+# Note that printf("%f",d) didn't work on Windows 3.0, BCC 3.0, 286 & 287
+# and is fixed in BCC 3.1.
+#WIN = win
+
+
+# All DIRs must use a single \ as a directory separator.
+# All PATHs must use \\\\ as a directory separator and must use \; not ;
+DRIVE = c:
+TEXDIR = $(DRIVE)\emtex
+TEXPATH = $(DRIVE)\\\\emtex
+
+# the default path to search for TFM files
+# (this usually is identical to TeX's defaultfontpath, which omits `.')
+# (private fonts are given an explicit directory, which overrides the path)
+# TFMPATH = c:\\\\emtex\\\\tfm
+TFMPATH = $(TEXPATH)\\\\tfm
+
+# the default path to search for PK files (usually omits `.')
+# Don't forget to add the directory that
+# MakeTeXPK puts the files! (In this case, /LocalLibrary/Fonts...)
+# PKPATH = c:\\\\texfonts\\\\pixel.lj\\\\%ddpi\\\\%f.%p
+PKPATH = $(TEXPATH)\\\\pixel.lj\\\\%ddpi\\\\%f.%p
+
+# the default path to search for VF files (usually omits `.')
+# VFPATH = c:\\\\texfonts\\\\vf
+VFPATH = $(TEXPATH)\\\\vf
+
+# additional directories in which to search for subdirectories to find
+# both tfm and pk files
+FONTSUBDIRPATH =
+
+# where the config files go
+# CONFIGDIR = c:\emtex\ps
+CONFIGDIR = $(TEXDIR)\ps
+
+# the default path to search for config files
+# CONFIGPATH = .\;c:\\\\emtex\\\\ps
+CONFIGPATH = .\;$(TEXPATH)\\\\ps
+
+# the name of your config file
+# CONFIGFILE = config.ps
+CONFIGFILE = config.ps
+
+# where the header PS files go
+# HEADERDIR = c:\emtex\ps
+HEADERDIR = $(TEXDIR)\ps
+
+# the default path to search for header files
+# HEADERPATH = .\;c:\\\\emtex\\\\ps
+HEADERPATH = .\;$(TEXPATH)\\\\ps
+
+# where epsf.tex and rotate.tex go (usually the TeX macros directory)
+# TEXMACRODIR = c:\emtex\texinput
+TEXMACROPARENTDIR = $(TEXDIR)\texinput
+TEXMACRODIR = $(TEXDIR)\texinput\dvips
+
+# the default path to search for epsf and psfiles
+# (usually the same as TeX's defaultinputpath)
+# FIGPATH = .\;..\;c:\\\\emtex\\\\texinput
+FIGPATH = .\;..\;$(TEXPATH)\\\\texinput
+
+# the default path to search for emTeX font libraries
+# FLIPATH = c:\\\\texfonts
+FLIPATH = $(DRIVE)\\\\texfonts
+
+# the names of emTeX font libraries
+# FLINAME = lj_0\;lj_h\;lj_1\;lj_2\;lj_3\;lj_4\;lj_5a\;lj_5b\;lj_sli
+FLINAME = lj_0\;lj_h\;lj_1\;lj_2\;lj_3\;lj_4\;lj_5a\;lj_5b\;lj_sli
+
+# change -DDEFRES=300 or whatever is required
+# if the default resolution is not 300 dpi,
+# add -DDEBUG to turn on debugging capability
+# add -DTPIC for tpic support
+# add -DFONTLIB to search font libraries
+# add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
+# add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
+# add -DCREATIONDATE if your system has a working time() and you want dated files
+# If you define FONTLIB, make sure to also give definitions to
+# FLIPATH and FLINAME.
+#
+DEFS= -DTPIC -DDEBUG -DDEFRES=300 -DFONTLIB -DHAVE_GETCWD -DCREATIONDATE
+
+# these options to produce debug map
+OPT = -M -y -v
+#OPT =
+
+LINKOPT = /l /m /s /v /c
+#LINKOPT = /c /x
+
+# If you are compiling dvips for suid or other privileges, you will
+# definitely want to define the following symbol; else don't.
+# SECURE = -DSECURE
+
+# If you want EMTEX specials, define the following.
+EMTEX = -DEMTEX
+
+# for SYSV (and friends which use <string.h> instead of <strings.h>)
+# define the c-compiler flag
+# -DMSDOS for MS-DOS systems
+SYS = -DMSDOS
+
+# where the installed binary goes
+# BINDIR = c:\emtex
+BINDIR = $(DRIVE)\emtex
+
+# where the manual page goes
+# MANDIR = c:\emtex\doc
+MANDIR = $(DRIVE)\emtex\doc
+
+#MSDOS sets all paths in turboc.cfg
+CFLAGS = $(DEFS) $(OPT) $(SYS) $(SECURE) $(EMTEX) $(DEFPFMT)
+
+SRC = dospecial.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
+ download.c prescan.c scanpage.c skippage.c output.c scalewidth.c \
+ dosection.c dopage.c resident.c search.c unpack.c drawPS.c \
+ header.c makefont.c repack.c virtualfont.c dpicheck.c finclude.c \
+ pprescan.c papersiz.c flib.c color.c bbox.c emspecial.c
+
+OBJ = dospecial.obj dviinput.obj fontdef.obj loadfont.obj dvips.obj \
+ tfmload.obj download.obj prescan.obj scanpage.obj skippage.obj \
+ output.obj scalewidth.obj dosection.obj dopage.obj resident.obj \
+ search.obj unpack.obj drawPS.obj header.obj makefont.obj repack.obj \
+ virtualfont.obj dpicheck.obj finclude.obj papersiz.obj flib.obj \
+ pprescan.obj color.obj bbox.obj emspecial.obj
+
+all : afm2tfm.exe dvips$(WIN).exe tex.pro texps.pro texc.pro special.pro \
+ finclude.pro color.pro crop.pro
+
+# default rules
+
+.c.obj:
+!if $d(WIN)
+ $(CC) -c -ml -w-pro -W { $< }
+!else
+ $(CC) -c -f -ml -w-pro { $< }
+!endif
+
+dvips.exe : $(OBJ)
+ $(LINK) $(LINKOPT) @&&!
+$(LIB)\C0l +
+$(OBJ) +
+,dvips ,dvips, +
+$(LIB)\emu +
+$(LIB)\mathl +
+$(LIB)\cl
+!
+
+winmain.obj: pc\winmain.c
+ $(CC) -c -ml -w-pro -W -owinmain.obj pc\winmain.c
+
+dvipswin.exe : $(OBJ) winmain.obj pc\dvipswin.rc pc\dvipswin.def
+ $(LINK) /Twe $(LINKOPT) @&&!
+$(LIB)\C0wl +
+winmain.obj +
+$(OBJ) +
+,dvipswin ,dvipswin, +
+$(LIB)\mathwl +
+$(LIB)\import +
+$(LIB)\cwl, +
+pc\dvipswin.def
+!
+ $(CCDIR)\bin\brc -30 -i$(INCLUDE) pc\dvipswin.rc dvipswin.exe
+
+afm2tfm.exe: afm2tfm.c turboc.cfg
+ $(CC) -mc -w-pro -w-pia afm2tfm.c
+
+turboc.cfg: pc\makefile.tc
+ echo -I$(INCLUDE) > turboc.cfg
+ echo -L$(LIB) >> turboc.cfg
+ echo $(CFLAGS) >> turboc.cfg
+ echo -DTFMPATH="$(TFMPATH)" >> turboc.cfg
+ echo -DPKPATH="$(PKPATH)" >> turboc.cfg
+ echo -DVFPATH="$(VFPATH)" >> turboc.cfg
+ echo -DHEADERPATH="$(HEADERPATH)" >> turboc.cfg
+ echo -DCONFIGPATH="$(CONFIGPATH)" >> turboc.cfg
+ echo -DCONFIGFILE="$(CONFIGFILE)" >> turboc.cfg
+ echo -DFONTSUBDIRPATH="$(FONTSUBDIRPATH)" >> turboc.cfg
+ echo -DFIGPATH="$(FIGPATH)" >> turboc.cfg
+ echo -DFLIPATH="$(FLIPATH)" >> turboc.cfg
+ echo -DFLINAME="$(FLINAME)" >> turboc.cfg
+
+$(OBJ) : dvips.h debug.h paths.h turboc.cfg
+
+squeeze.exe : squeeze.c turboc.cfg
+ $(CC) -mc -w-pro squeeze.c
+
+tex.pro : tex.lpr squeeze.exe
+ squeeze tex.lpro tex.pro
+
+texc.pro: texc.lpr squeeze.exe
+ squeeze texc.lpro texc.pro
+
+texc.lpr: tex.lpr
+ @echo This does "texc.scr tex.lpr texc.lpr" on Unix
+ @echo For MSDOS, copy tex.lpr to texc.lpr
+ @echo then edit texc.lpr to remove the code
+ @echo for uncompressed fonts, and uncomment the
+ @echo code for unpacking compressed fonts
+
+texps.pro : texps.lpr squeeze.exe
+ squeeze texps.lpro texps.pro
+
+special.pro : special.lpr squeeze.exe
+ squeeze special.lpr special.pro
+
+finclude.pro: finclude.lpr squeeze.exe
+ squeeze finclude.lpr finclude.pro
+
+color.pro: color.lpr squeeze.exe
+ squeeze color.lpr color.pro
+
+crop.pro: crop.lpr squeeze.exe
+ squeeze crop.lpr crop.pro
+
+install : afm2tfm.exe dvips$(WIN).exe pc/maketexp.bat \
+ tex.pro texc.pro texps.pro special.pro finclude.pro color.pro crop.pro \
+ pc/config.ps psfonts.map epsf.tex epsf.sty rotate.tex rotate.sty \
+ dvips.tex dvipsmac.tex colordvi.sty colordvi.tex blackdvi.sty \
+ blackdvi.tex pc/dvips.doc pc/afm2tfm.doc
+ mkdir $(BINDIR)
+ mkdir $(HEADERDIR)
+ mkdir $(CONFIGDIR)
+ mkdir $(MANDIR)
+ mkdir $(TEXMACROPARENTDIR)
+ mkdir $(TEXMACRODIR)
+ copy afm2tfm.exe $(BINDIR)\afm2tfm.exe
+ copy dvips$(WIN).exe $(BINDIR)\dvips$(WIN).exe
+ copy pc\maketexp.bat $(BINDIR)\maketexp.bat
+ copy tex.pro $(HEADERDIR)
+ copy texc.pro $(HEADERDIR)
+ copy texps.pro $(HEADERDIR)
+ copy special.pro $(HEADERDIR)
+ copy finclude.pro $(HEADERDIR)
+ copy color.pro $(HEADERDIR)
+ copy crop.pro $(HEADERDIR)
+ copy pc\config.ps $(CONFIGDIR)\$(CONFIGFILE)
+ copy psfonts.map $(CONFIGDIR)
+ copy epsf.tex $(TEXMACRODIR)
+ copy epsf.sty $(TEXMACRODIR)
+ copy rotate.tex $(TEXMACRODIR)
+ copy rotate.sty $(TEXMACRODIR)
+ copy colordvi.sty $(TEXMACRODIR)
+ copy colordvi.tex $(TEXMACRODIR)
+ copy blackdvi.sty $(TEXMACRODIR)
+ copy blackdvi.tex $(TEXMACRODIR)
+ copy dvips.tex $(TEXMACRODIR)
+ copy dvipsmac.tex $(TEXMACRODIR)
+ copy pc\dvips.doc $(MANDIR)
+ copy pc\afm2tfm.doc $(MANDIR)
+
+
+veryclean : clean
+ del dvips.exe
+ del dvipswin.exe
+ del afm2tfm.exe
+ del *.pro
+ del turboc.cfg
+
+clean :
+ del *.obj
+ del squeeze.exe
+ del afm2tfm.map
+ del dvips.map
+ del dvipswin.map
+ del squeeze.map
+ del turboc.cfg
diff --git a/Build/source/texk/dvipsk/pc/makefile.wat b/Build/source/texk/dvipsk/pc/makefile.wat
new file mode 100644
index 00000000000..15a35f50970
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/makefile.wat
@@ -0,0 +1,310 @@
+#
+# Makefile for dvips. Edit this first part of the file.
+#
+# First, the things that absolutely must be edited for your system.
+
+# modified for Borland MAKE 3.0 and Watcom 386 9.01 on MS-DOS
+# by js@rphnw3.ngate.uni-regensburg.de
+# 18th November 1992
+# This version of dvips HAS NOT BEEN THOROUGHLY TESTED
+
+# All DIRs must use \\ as a directory separator.
+# All PATHs must use \\\\ as a directory separator
+
+# the default path to search for TFM files
+# (this usually is identical to TeX's defaultfontpath, which omits `.')
+# (private fonts are given an explicit directory, which overrides the path)
+# overridden by the environment variable TEXFONTS
+# TFMPATH = c:\\emtex\\tfm
+TFMPATH = c:\\\\emtex\\\\tfm
+
+# the default path to search for PK files (usually omits `.')
+# Don't forget to add the directory that
+# MakeTeXPK puts the files! (In this case, /LocalLibrary/Fonts...)
+# overridden by the environment variable TEXPKS or TEXPACKED or PKFONTS
+# PKPATH = c:\\texfonts\\pixel.lj\\%ddpi\\%f.%p
+PKPATH = c:\\\\texfonts\\\\pixel.lj\\\\%ddpi\\\\%f.%p
+
+# the default path to search for VF files (usually omits `.')
+# overridden by the environment variable VFFONTS
+# VFPATH = c:\\texfonts\\vf
+VFPATH = c:\\\\emtex\\\\vf
+
+# additional directories in which to search for subdirectories to find
+# both tfm and pk files
+FONTSUBDIRPATH =
+
+# where the config files go
+# CONFIGDIR = c:\emtex\ps
+CONFIGDIR = c:\\emtex\\ps
+
+# the default path to search for config files
+# overridden by the environment variable TEXCONFIG
+# CONFIGPATH = .;c:\\emtex\\ps
+CONFIGPATH = .;c:\\\\emtex\\\\ps
+
+# the name of your config file
+# CONFIGFILE = config.ps
+CONFIGFILE = config.ps
+
+# where the header PS files go
+# HEADERDIR = c:\emtex\ps
+HEADERDIR = c:\\emtex\\ps
+
+# the default path to search for header files
+# HEADERPATH = .;c:\\emtex\\ps
+HEADERPATH = .;c:\\\\emtex\\\\ps
+
+# where epsf.tex and rotate.tex go (usually the TeX macros directory)
+# TEXMACRODIR = c:\emtex\texinput
+TEXMACROPARENTDIR = c:\\emtex\\texinput
+TEXMACRODIR = c:\\emtex\\texinput\\dvips
+
+# the default path to search for epsf and psfiles
+# (usually the same as TeX's defaultinputpath)
+# FIGPATH = .;..;c:\\emtex\\texinput
+FIGPATH = .;..;c:\\\\emtex\\\\texinput
+
+# the default path to search for emTeX font libraries
+# FLIPATH = c:\\texfonts
+FLIPATH = c:\\\\texfonts
+
+# the names of emTeX font libraries
+# FLINAME = lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5a;lj_5b;lj_sli
+FLINAME = lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5;lj_sli
+
+# change -DDEFRES=300 or whatever is required
+# if the default resolution is not 300 dpi,
+# add -DDEBUG to turn on debugging capability
+# add -DTPIC for tpic support
+# add -DFONTLIB to search font libraries
+# add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
+# add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
+# add -DIBM6000 for compiling on IBM 6000 systems
+# add -DCREATIONDATE if your system has a working time() and you want dated files
+# (for VM/CMS, see the MKDVIPS.EXEC file in the vmcms subdirectory).
+#
+# If you define FONTLIB, make sure to also give definitions to
+# FLIPATH and FLINAME.
+#
+DEFS= -DTPIC -DDEBUG -DDEFRES=300 -DFONTLIB -DHAVE_GETCWD
+
+# your compiler
+CC = wcl386
+
+# either use
+# OPT = -g -Wall -funsigned-char
+# or
+# OPT = -O -s -Wall -funsigned-char
+OPT = /fpi/om/ox/p
+
+# libraries to include (-lm -lc on most systems)
+#FLIBS= -lNeXT_s -lsys_s
+#FLIBS= -lm -lc
+FLIBS=
+
+# If you are compiling dvips for suid or other privileges, you will
+# definitely want to define the following symbol; else don't.
+# SECURE = -DSECURE
+SECURE =
+
+# If you want EMTEX specials, define the following.
+EMTEX = -DEMTEX
+
+# for SYSV (and friends which use <string.h> instead of <strings.h>)
+# define the c-compiler flag
+# add -D_POSIX_SOURCE if you are POSIX (also define SYSV) (only relevant
+# for subdir searching)
+# add -DMSDOS for MS-DOS systems
+# add -DDJGPP for MS-DOS GNU's
+SYS = -DMSDOS -DDJGPP
+
+
+# where the installed binary goes
+# BINDIR = c:\emtex
+BINDIR = c:\emtex
+
+# where the manual page goes
+# MANDIR = c:\emtex\doc
+MANDIR = c:\emtex\doc
+
+PATHS = -DTFMPATH=\"$(TFMPATH)\" \
+ -DPKPATH=\"$(PKPATH)\" \
+ -DVFPATH=\"$(VFPATH)\" \
+ -DHEADERPATH=\"$(HEADERPATH)\" \
+ -DCONFIGPATH=\"$(CONFIGPATH)\" \
+ -DCONFIGFILE=\"$(CONFIGFILE)\" \
+ -DFONTSUBDIRPATH=\"$(FONTSUBDIRPATH)\" \
+ -DFIGPATH=\"$(FIGPATH)\" \
+ -DFLIPATH=\"$(FLIPATH)\" \
+ -DFLINAME=\"$(FLINAME)\"
+
+CFLAGS = $(DEFS) $(OPT) $(SYS) $(SECURE) $(EMTEX)
+
+# default rules
+.c.obj:
+ $(CC) -c $(CFLAGS) $<
+
+SRC = dospecia.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c \
+ download.c prescan.c scanpage.c skippage.c output.c scalewid.c \
+ dosectio.c dopage.c resident.c search.c unpack.c drawPS.c \
+ header.c makefont.c repack.c virtualf.c dpicheck.c finclude.c \
+ pprescan.c papersiz.c flib.c color.c bbox.c emspecial.c
+
+OBJ = dospecia.obj dviinput.obj fontdef.obj loadfont.obj dvips.obj \
+ tfmload.obj download.obj prescan.obj scanpage.obj skippage.obj \
+ output.obj scalewid.obj dosectio.obj dopage.obj resident.obj \
+ search.obj unpack.obj drawPS.obj header.obj makefont.obj repack.obj \
+ virtualf.obj dpicheck.obj finclude.obj \
+ pprescan.obj papersiz.obj flib.obj color.obj bbox.obj emspecial.obj
+
+all : afm2tfm.exe dvips4gl.exe dvipsos2.exe tex.pro texps.pro texc.pro \
+ special.pro finclude.pro color.pro crop.pro
+
+dvips4gl.exe: $(OBJ) wat.lnk
+ $(CC) /fe=$&.exe /l=dos4g @wat.lnk
+
+dvipsos2.exe: $(OBJ) wat.lnk
+ $(CC) /fe=$&.exe /l=os2v2 @wat.lnk
+
+wat.lnk: pc\makefile.wat
+ copy &&|
+FILE dospecia.obj
+FILE dviinput.obj
+FILE fontdef.obj
+FILE loadfont.obj
+FILE dvips.obj
+FILE tfmload.obj
+FILE download.obj
+FILE prescan.obj
+FILE scanpage.obj
+FILE skippage.obj
+FILE output.obj
+FILE scalewid.obj
+FILE dosectio.obj
+FILE dopage.obj
+FILE resident.obj
+FILE search.obj
+FILE unpack.obj
+FILE drawPS.obj
+FILE header.obj
+FILE makefont.obj
+FILE repack.obj
+FILE virtualf.obj
+FILE dpicheck.obj
+FILE finclude.obj
+FILE pprescan.obj
+FILE papersiz.obj
+FILE flib.obj
+FILE color.obj
+FILE bbox.obj
+FILE emspecial.obj
+| wat.lnk
+
+# you have to add the hash sign by hand !
+win\wat.h:
+ echo define TFMPATH \"$(TFMPATH)\" >>win\wat.h
+ echo define PKPATH \"$(PKPATH)\" >>win\wat.h
+ echo define VFPATH \"$(VFPATH)\" >>win\wat.h
+ echo define HEADERPATH \"$(HEADERPATH)\" >>win\wat.h
+ echo define CONFIGPATH \"$(CONFIGPATH)\" >>win\wat.h
+ echo define CONFIGFILE \"$(CONFIGFILE)\" >>win\wat.h
+ echo define FONTSUBDIRPATH \"$(FONTSUBDIRPATH)\" >>win\wat.h
+ echo define FIGPATH \"$(FIGPATH)\" >>win\wat.h
+ echo define FLIPATH \"$(FLIPATH)\" >>win\wat.h
+ echo define FLINAME \"$(FLINAME)\" >>win\wat.h
+
+dvips.obj: dvips.c
+ $(CC) $(CFLAGS) -c dvips.c /fi=win\wat.h
+
+afm2tfm.exe: afm2tfm.c
+ $(CC) $(CFLAGS) afm2tfm.c $(LIBS) $(FLIBS)
+
+#$(OBJ) : dvips.h debug.h paths.h
+
+squeeze.exe : squeeze.c
+ $(CC) $(CFLAGS) squeeze.c $(LIBS) $(FLIBS)
+
+tex.pro : tex.lpr squeeze.exe
+ squeeze tex.lpro tex.pro
+
+texc.pro: texc.lpr squeeze.exe
+ squeeze texc.lpro texc.pro
+
+texc.lpr: tex.lpr
+ @echo This does "texc.scr tex.lpr texc.lpr" on Unix
+ @echo For MSDOS, copy tex.lpr to texc.lpr
+ @echo then edit texc.lpr to remove the code
+ @echo for uncompressed fonts, and uncomment the
+ @echo code for unpacking compressed fonts
+
+texps.pro : texps.lpr squeeze.exe
+ squeeze texps.lpro texps.pro
+
+special.pro : special.lpr squeeze.exe
+ squeeze special.lpr special.pro
+
+finclude.pro: finclude.lpr squeeze.exe
+ squeeze finclude.lpr finclude.pro
+
+color.pro: color.lpr squeeze.exe
+ squeeze color.lpr color.pro
+
+crop.pro: crop.lpr squeeze.exe
+ squeeze crop.lpr crop.pro
+
+install : afm2tfm.exe dvips$(DEST).exe pc/maketexp.bat \
+ tex.pro texc.pro texps.pro special.pro finclude.pro color.pro crop.pro \
+ pc/config.ps psfonts.map epsf.tex epsf.sty rotate.tex rotate.sty \
+ dvips.tex dvipsmac.tex colordvi.sty colordvi.tex blackdvi.sty \
+ blackdvi.tex pc/dvips.doc pc/afm2tfm.doc
+ mkdir $(BINDIR)
+ mkdir $(HEADERDIR)
+ mkdir $(CONFIGDIR)
+ mkdir $(MANDIR)
+ mkdir $(TEXMACROPARENTDIR)
+ mkdir $(TEXMACRODIR)
+ copy afm2tfm.exe $(BINDIR)\afm2tfm.exe
+ copy dvips4gl.exe $(BINDIR)\dvips4gl.exe
+ copy dvipsos2.exe $(BINDIR)\dvipsos2.exe
+ copy pc\maketexp.bat $(BINDIR)\maketexp.bat
+ copy tex.pro $(HEADERDIR)
+ copy texc.pro $(HEADERDIR)
+ copy texps.pro $(HEADERDIR)
+ copy texps.pro $(HEADERDIR)
+ copy special.pro $(HEADERDIR)
+ copy finclude.pro $(HEADERDIR)
+ copy color.pro $(HEADERDIR)
+ copy crop.pro $(HEADERDIR)
+ copy pc\config.ps $(CONFIGDIR)\$(CONFIGFILE)
+ copy psfonts.map $(CONFIGDIR)
+ copy epsf.tex $(TEXMACRODIR)
+ copy epsf.sty $(TEXMACRODIR)
+ copy rotate.tex $(TEXMACRODIR)
+ copy rotate.sty $(TEXMACRODIR)
+ copy colordvi.sty $(TEXMACRODIR)
+ copy colordvi.tex $(TEXMACRODIR)
+ copy blackdvi.sty $(TEXMACRODIR)
+ copy blackdvi.tex $(TEXMACRODIR)
+ copy dvips.tex $(TEXMACRODIR)
+ copy dvipsmac.tex $(TEXMACRODIR)
+ copy pc\dvips.doc $(MANDIR)
+ copy pc\afm2tfm.doc $(MANDIR)
+
+veryclean :
+ del *.obj
+ del dvips4gl.exe
+ del dvipsos2.exe
+ del squeeze.exe
+ del afm2tfm.exe
+ del *.pro
+ del *.bak
+ del *.log
+ del wat.lnk
+
+clean :
+ del *.obj
+ del squeeze.exe
+ del *.bak
+ del *.log
+ del wat.lnk
diff --git a/Build/source/texk/dvipsk/pc/makefile.wt2 b/Build/source/texk/dvipsk/pc/makefile.wt2
new file mode 100644
index 00000000000..794cc18c9ac
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/makefile.wt2
@@ -0,0 +1,304 @@
+#
+# Makefile for dvips. Edit this first part of the file.
+#
+# Watcom C/386 9.0 for MSDOS, 21 Dec 1993, rcpt@urc.tue.nl.
+# Compilation takes about 3 minutes on my 486/8MB clone.
+#
+# [ If you don't have MTPK,
+# - remove mtpk.c from SRC
+# - remove mtpk.obj from OBJ
+# rjl 23 Dec 1993 ]
+#
+# This makefile use the UNIX compatible rm.exe and sed.exe tools.
+# They are available on good fileservers. And because of MSDOS
+# limitations in handling command lines you have to add manually an
+# include line to dvips.c and mtpk.c:
+# #include "dvips.wat" (the one needed in dvips.c)
+# #include "paths.wat" (the one needed in mtpk.c)
+#
+# First, the things that absolutely must be edited for your system.
+# Please, don't forget to install MTPK with the same settings
+#
+# Run with: `wmake -f pc\makefile.wat' from dvips source directory.
+
+# Define default resolution
+DEFRES = 300
+
+# Define name of MTPK
+MTPK = mtpk
+
+# where TeX is `rooted'. Sometimes d:\emtex
+# TEXDIR = c:\emtex
+TEXDIR = c:\emtex
+
+# another place pk, tfm, and vf files might be found.
+# LOCALDIR = c:\texfonts
+LOCALDIR =
+
+# the default path to search for TFM files
+# (this usually is identical to TeX's defaultfontpath, which omits `.')
+# (private fonts are given an explicit directory, which overrides the path)
+# overridden by the environment variable TEXFONTS
+# TFMPATH = .;$(TEXDIR)\tfm
+TFMPATH = .;$(TEXDIR)\tfm
+
+# the default path to search for PK files
+# Don't forget to add the directory that MTPK puts the files!
+# (In this case %ddpi\%f.pk)
+# overridden by the environment variable TEXPKS or TEXPACKED or PKFONTS
+# PKPATH = %ddpi\%f.pk;$(TEXDIR)\texfonts\%m\%ddpi\%f.pk
+PKPATH = %ddpi\%f.pk;$(TEXDIR)\texfonts\%m\%ddpi\%f.pk
+
+# Default FLIPATH and FLINAME
+FLIPATH = $(TEXDIR)\texfonts
+FLINAME = lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5
+
+# the default path to search for VF files (usually omits `.')
+# overridden by the environment variable VFFONTS
+# VFPATH = .;$(TEXDIR)\vf
+VFPATH = .;$(TEXDIR)\vf
+
+# additional directories in which to search for subdirectories to find
+# both tfm and pk files
+FONTSUBDIRPATH =
+
+# where the config files go
+# CONFIGDIR = $(TEXDIR)\ps
+CONFIGDIR = $(TEXDIR)\ps
+
+# the default path to search for config files
+# overridden by the environment variable TEXCONFIG
+# CONFIGPATH = .;$(CONFIGDIR)
+CONFIGPATH = .;$(CONFIGDIR)
+
+# the name of your config file
+# CONFIGFILE = config.ps
+CONFIGFILE = config.ps
+
+# where the header PS files go
+# HEADERDIR = $(TEXDIR)\ps
+HEADERDIR = $(TEXDIR)\ps
+
+# the default path to search for header files
+# HEADERPATH = .;$(HEADERDIR)
+HEADERPATH = .;$(HEADERDIR)
+
+# where epsf.tex and rotate.tex go (usually the TeX macros directory)
+# TEXMACRODIR = $(TEXDIR)\texinput
+TEXMACROPARENTDIR = $(TEXDIR)\texinput
+TEXMACRODIR = $(TEXMACROPARENTDIR)\dvips
+
+# the default path to search for epsf and psfiles
+# (usually the same as TeX's defaultinputpath)
+# FIGPATH = .;$(TEXDIR)\texinput
+FIGPATH = .;$(TEXDIR)\texinput
+
+# the place man pages are located.
+MANDIR = $(TEXDIR)\doc
+
+# change -DDEFRES=300 or whatever is required
+# if the default resolution is not 300 dpi,
+# add -DDEBUG to turn on debugging capability
+# add -DTPIC for tpic support
+# add -DFONTLIB to search font libraries
+# add -DSEARCH_SUBDIRECTORIES to search the FONTSUBDIRPATH.
+# add -DHAVE_GETCWD if you have getcwd (relevant only for subdir searching)
+# add -DIBM6000 for compiling on IBM 6000 systems
+# add -DCREATIONDATE if your system has a working time() and you want dated files
+# (for VM/CMS, see the MKDVIPS.EXEC file in the vmcms subdirectory).
+#
+# If you define FONTLIB, make sure to also give definitions to
+# FLIPATH and FLINAME.
+#
+# If your compiler doesn't like void*, then add
+# -DVOID=char
+#
+DEFS= -DTPIC -DDEBUG -DFONTLIB -DHAVE_GETCWD
+
+# either use
+# OPT = -dMSDOS -zq -d2 -j
+# OPTIMIZE = /oaxe /zp4 /4r
+# or
+OPTIMIZE = /oaxe /zp4 /4r
+OPT = -dMSDOS -zq -d2 -j
+
+# libraries to include (-lm -lc on most systems)
+#FLIBS=
+FLIBS=
+
+# If you are compiling dvips for suid or other privileges, you will
+# definitely want to define the following symbol; else don't.
+# SECURE = -DSECURE
+
+# If you want EMTEX specials, define the following.
+EMTEX = -DEMTEX
+
+# for SYSV (and friends which use <string.h> instead of <strings.h>)
+# define the c-compiler flag
+# add -D_POSIX_SOURCE if you are POSIX (also define SYSV) (only relevant
+# for subdir searching)
+# SYS = -DSYSV
+
+# Define this to be whatever you use for installation. If you don't have
+# install, use a script that invokes copy and chmod's the files
+# appropriately.
+# INSTALL = copy
+INSTALL = copy
+
+# where the installed binary goes
+# BINDIR = $(TEXDIR)
+BINDIR = $(TEXDIR)
+
+# Compiler and linker names (protected mode versions)
+CC = wcl386 -p
+LD = wlinkp
+
+.EXTENSIONS:
+.EXTENSIONS: .exe .obj .c
+
+.BEFORE
+ @set INCLUDE=.;$(%watcom)\h
+ @set DOS4G=quiet
+
+CFLAGS = $(DEFS) $(OPT) $(EMTEX) $(OPTIMIZE)
+
+SRC = dospecial.c dviinput.c fontdef.c loadfont.c dvips.c tfmload.c &
+ download.c prescan.c scanpage.c skippage.c output.c scalewidth.c &
+ dosection.c dopage.c resident.c search.c unpack.c drawPS.c &
+ header.c mtpk.c repack.c virtualfont.c dpicheck.c finclude.c &
+ pprescan.c papersiz.c flib.c color.c bbox.c emspecial.c
+
+OBJ = dospecial.obj dviinput.obj fontdef.obj loadfont.obj dvips.obj &
+ tfmload.obj download.obj prescan.obj scanpage.obj skippage.obj &
+ output.obj scalewidth.obj dosection.obj dopage.obj resident.obj &
+ search.obj unpack.obj drawPS.obj header.obj mtpk.obj repack.obj &
+ virtualfont.obj dpicheck.obj finclude.obj pprescan.obj papersiz.obj &
+ flib.obj color.obj bbox.obj emspecial.obj
+
+all : afm2tfm.exe dvips.exe tex.pro texps.pro texc.pro special.pro &
+ finclude.pro color.pro crop.pro .SYMBOLIC
+
+dvips.exe : $(OBJ) dvips.rsp
+ $(LD) @dvips.rsp
+
+dvips.rsp: pc\Makefile.wat
+ echo name dvips.exe > dvips.rsp
+ echo debug all >> dvips.rsp
+ echo option caseexact >> dvips.rsp
+ echo option dosseg >> dvips.rsp
+ echo system dos4g >> dvips.rsp
+ for %f in ($(OBJ)) do echo file %f >> dvips.rsp
+
+dvips.obj: dvips.c dvips.wat
+ $(CC) $(CFLAGS) -c dvips.c
+
+mtpk.obj: mtpk.c paths.wat
+ $(CC) $(CFLAGS) -c mtpk.c
+
+afm2tfm.exe: afm2tfm.obj
+ $(LD) system dos4g name afm2tfm.exe file afm2tfm.obj
+
+squeeze.exe : squeeze.obj
+ $(LD) system dos4g file squeeze.obj name squeeze.exe
+
+tex.pro : tex.lpro squeeze.exe
+ squeeze <tex.lpro > tex.pro
+
+texc.pro: texc.lpro squeeze.exe
+ squeeze <texc.lpro >texc.pro
+
+texc.lpro: texc.script tex.lpro
+ @echo ================================================
+ @echo Create texc.lpro:
+ @echo 1) copy tex.lpro texc.lpro
+ @echo 2) edit texc.lpro; delete lines between
+ @echo % begin code for uncompressed fonts only
+ @echo % end code for uncompressed fonts only
+ @echo 3) remove comments `% ' for next lines till line
+ @echo % end of code for unpacking compressed fonts
+ @echo 4) restart make
+ @echo ================================================
+
+texps.pro : texps.lpro squeeze.exe
+ squeeze <texps.lpro >texps.pro
+
+special.pro : special.lpro squeeze.exe
+ squeeze <special.lpro >special.pro
+
+finclude.pro : finclude.lpro squeeze.exe
+ squeeze <finclude.lpro >finclude.pro
+
+color.pro : color.lpro squeeze.exe
+ squeeze <color.lpro >color.pro
+
+crop.pro : crop.lpro squeeze.exe
+ squeeze <crop.lpro >crop.pro
+
+install : afm2tfm.exe dvips.exe &
+ tex.pro texc.pro texps.pro special.pro finclude.pro color.pro &
+ crop.pro config.ps psfonts.map epsf.tex epsf.sty rotate.tex &
+ rotate.sty colordvi.tex colordvi.sty blackdvi.tex blackdvi.sty &
+ dvips.tex dvipsmac.tex .SYMBOLIC
+ -md $(BINDIR)
+ -md $(CONFIGDIR)
+ -md $(HEADERDIR)
+ -md $(MANDIR)
+ -md $(TEXMACRODIR)
+ $(INSTALL) afm2tfm.exe $(BINDIR)\afm2tfm.exe
+ $(INSTALL) dvips.exe $(BINDIR)\dvips.exe
+ $(INSTALL) tex.pro $(HEADERDIR)
+ $(INSTALL) texc.pro $(HEADERDIR)
+ $(INSTALL) texps.pro $(HEADERDIR)
+ $(INSTALL) special.pro $(HEADERDIR)
+ $(INSTALL) finclude.pro $(HEADERDIR)
+ $(INSTALL) color.pro $(HEADERDIR)
+ $(INSTALL) crop.pro $(HEADERDIR)
+ $(INSTALL) config.ps $(CONFIGDIR)\$(CONFIGFILE)
+ $(INSTALL) psfonts.map $(CONFIGDIR)
+ $(INSTALL) epsf.tex $(TEXMACRODIR)
+ $(INSTALL) epsf.sty $(TEXMACRODIR)
+ $(INSTALL) rotate.tex $(TEXMACRODIR)
+ $(INSTALL) rotate.sty $(TEXMACRODIR)
+ $(INSTALL) colordvi.sty $(TEXMACRODIR)
+ $(INSTALL) colordvi.tex $(TEXMACRODIR)
+ $(INSTALL) blackdvi.sty $(TEXMACRODIR)
+ $(INSTALL) blackdvi.tex $(TEXMACRODIR)
+ $(INSTALL) dvips.tex $(MANDIR)
+ $(INSTALL) dvipsmac.tex $(MANDIR)
+
+veryclean : clean .SYMBOLIC
+ -rm -f dvips.exe texc.lpro *.pro
+
+clean
+ -rm -f *.obj squeeze.exe afm2tfm.exe *.log *.dvi
+
+dvips.wat: pc\Makefile.wat
+ echo $#define TFMPATH "$(TFMPATH)" > dvips.tmp
+ echo $#define PKPATH "$(PKPATH)" >> dvips.tmp
+ echo $#define VFPATH "$(VFPATH)" >> dvips.tmp
+ echo $#define HEADERPATH "$(HEADERPATH)" >> dvips.tmp
+ echo $#define CONFIGPATH "$(CONFIGPATH)" >> dvips.tmp
+ echo $#define CONFIGFILE "$(CONFIGFILE)" >> dvips.tmp
+ echo $#define FONTSUBDIRPATH "$(FONTSUBDIRPATH)" >> dvips.tmp
+ echo $#define FIGPATH "$(FIGPATH)" >> dvips.tmp
+ echo $#define DEFRES $(DEFRES) >> dvips.tmp
+ echo $#define FLIPATH "$(FLIPATH)" >> dvips.tmp
+ echo $#define FLINAME "$(FLINAME)" >> dvips.tmp
+ sed -e "s,\\,\\\\,g" dvips.tmp > dvips.wat
+ -rm dvips.tmp
+
+paths.wat: pc\Makefile.wat
+ echo $#define TFMPATH "$(TFMPATH)" > paths.tmp
+ echo $#define PKPATH "$(PKPATH)" >> paths.tmp
+ echo $#define VFPATH "$(VFPATH)" >> paths.tmp
+ echo $#define HEADERPATH "$(HEADERPATH)" >> paths.tmp
+ echo $#define CONFIGPATH "$(CONFIGPATH)" >> paths.tmp
+ echo $#define CONFIGFILE "$(CONFIGFILE)" >> paths.tmp
+ echo $#define MODEDEF $(DEFRES) >> paths.tmp
+ echo $#define FLIPATH "$(FLIPATH);$(FLINAME)" >> paths.tmp
+ echo $#define MTPK "$(MTPK)" >> paths.tmp
+ sed -e "s,\\,\\\\,g" paths.tmp > paths.wat
+ -rm paths.tmp
+
+.c.obj:
+ $(CC) $(CFLAGS) -c $[*
diff --git a/Build/source/texk/dvipsk/pc/maketexp.bat b/Build/source/texk/dvipsk/pc/maketexp.bat
new file mode 100644
index 00000000000..61253ee70c4
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/maketexp.bat
@@ -0,0 +1,52 @@
+@echo off
+REM
+REM This script file makes a new TeX PK font, because one wasn't
+REM found. Parameters are:
+REM
+REM name dpi bdpi magnification [mode]
+REM
+REM `name' is the name of the font, such as `cmr10'. `dpi' is
+REM the resolution the font is needed at. `bdpi' is the base
+REM resolution, useful for figuring out the mode to make the font
+REM in. `magnification' is a string to pass to MF as the
+REM magnification. `mode', if supplied, is the mode to use.
+REM
+REM Because of MSDOS memory constraints, this batch file just
+REM creates a mfjob file, so that the fonts can be created later.
+REM
+
+REM NAME=%1 DPI=%2 BDPI=%3 MAG=%4 MODE=%5
+
+if exist dvips.mfj goto :second
+echo %% dvips.mfj - created by dvips > dvips.mfj
+echo input [modes]; >> dvips.mfj
+echo Created dvips.mfj
+
+:second
+echo { >> dvips.mfj
+echo base=plain; >> dvips.mfj
+echo font=%1; >> dvips.mfj
+echo mag=%4; >> dvips.mfj
+
+if "%5" == "" goto :nomode
+if "%5" == "imagen" goto :hpmode
+if "%5" == "hplaser" goto :hpmode
+
+:goodmode
+echo mode=%5[%3]; >> dvips.mfj
+echo output=pk[c:\texfonts\%5\@Rrdpi\@f]; >> dvips.mfj
+goto :donemode
+
+:hpmode
+echo mode=hplaser[%3]; >> dvips.mfj
+echo output=pk[c:\texfonts\pixel.lj\@Rrdpi\@f]; >> dvips.mfj
+goto :donemode
+
+:nomode
+echo m; >> dvips.mfj
+
+:donemode
+echo } >> dvips.mfj
+
+echo Run "mfjob dvips"
+:exit
diff --git a/Build/source/texk/dvipsk/pc/maketexp.cmd b/Build/source/texk/dvipsk/pc/maketexp.cmd
new file mode 100644
index 00000000000..92464016f3f
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/maketexp.cmd
@@ -0,0 +1,56 @@
+@echo off
+REM
+REM This script file makes a new TeX PK font, because one wasn't
+REM found. Parameters are:
+REM
+REM name dpi bdpi magnification [mode]
+REM
+REM `name' is the name of the font, such as `cmr10'. `dpi' is
+REM the resolution the font is needed at. `bdpi' is the base
+REM resolution, useful for figuring out the mode to make the font
+REM in. `magnification' is a string to pass to MF as the
+REM magnification. `mode', if supplied, is the mode to use.
+REM
+REM Because of MSDOS memory constraints, this batch file just
+REM creates a mfjob file, so that the fonts can be created later.
+REM
+
+REM NAME=%1 DPI=%2 BDPI=%3 MAG=%4 MODE=%5
+
+if exist dvips.mfj goto :second
+echo %% dvips.mfj - created by dvips > dvips.mfj
+echo input [modes]; >> dvips.mfj
+echo Created dvips.mfj
+
+:second
+echo { >> dvips.mfj
+echo base=plain; >> dvips.mfj
+echo font=%1; >> dvips.mfj
+echo mag=%4; >> dvips.mfj
+
+if "%5" == "" goto :nomode
+if "%5" == "imagen" goto :hpmode
+if "%5" == "hplaser" goto :hpmode
+
+:goodmode
+echo mode=%5[%3]; >> dvips.mfj
+echo output=pk[c:\texfonts\%5\@Rrdpi\@f]; >> dvips.mfj
+goto :donemode
+
+:hpmode
+echo mode=hplaser[%3]; >> dvips.mfj
+echo output=pk[c:\texfonts\pixel.lj\@Rrdpi\@f]; >> dvips.mfj
+goto :donemode
+
+:nomode
+echo m; >> dvips.mfj
+
+:donemode
+echo } >> dvips.mfj
+
+REM Uncomment the following line and comment out the echo instruction to
+REM make operation automatic.
+
+REM mfjob dvips
+echo Run "mfjob dvips"
+:exit
diff --git a/Build/source/texk/dvipsk/pc/squeeze.def b/Build/source/texk/dvipsk/pc/squeeze.def
new file mode 100644
index 00000000000..942e1909d5a
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/squeeze.def
@@ -0,0 +1,3 @@
+NAME squeeze WINDOWCOMPAT NEWFILES
+DESCRIPTION 'squeeze a PostScript file (source: dvips)'
+STACKSIZE 0x2000
diff --git a/Build/source/texk/dvipsk/pc/wat.h b/Build/source/texk/dvipsk/pc/wat.h
new file mode 100644
index 00000000000..d0104afb443
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/wat.h
@@ -0,0 +1,10 @@
+#define TFMPATH "c:\\emtex\\tfm"
+#define PKPATH "c:\\texfonts\\pixel.lj\\%ddpi\\%f.%p"
+#define VFPATH "c:\\emtex\\vf"
+#define HEADERPATH ".;c:\\emtex\\ps"
+#define CONFIGPATH ".;c:\\emtex\\ps"
+#define CONFIGFILE "config.ps"
+#define FONTSUBDIRPATH ""
+#define FIGPATH ".;..;c:\\emtex\\texinput"
+#define FLIPATH "c:\\texfonts"
+#define FLINAME "lj_0;lj_h;lj_1;lj_2;lj_3;lj_4;lj_5;lj_sli"
diff --git a/Build/source/texk/dvipsk/pc/winmain.c b/Build/source/texk/dvipsk/pc/winmain.c
new file mode 100644
index 00000000000..206be0c1296
--- /dev/null
+++ b/Build/source/texk/dvipsk/pc/winmain.c
@@ -0,0 +1,89 @@
+/*
+ * dvips - winmain.c
+ * This module is Copyright 1992 by Russell Lang and Maurice Castro.
+ * This file may be freely copied and modified.
+ */
+
+#include <windows.h>
+#include <dos.h>
+#include <stdio.h>
+#include <string.h>
+
+/* local */
+#define MAXSTR 255
+HWND FAR hwndeasy;
+static char FAR szAppName[] = "dvips";
+char winline[MAXSTR]; /* command line for MS-Windows */
+int wargc; /* argc for windows */
+char *wargv[32]; /* argv for windows */
+
+/* external */
+extern void help(); /* in dvips.c */
+extern void error(); /* in dvips.c */
+
+/* EasyWin */
+extern POINT _ScreenSize;
+
+int main(int argc, char *argv[], char *env[]);
+
+/* A fake system() for Microsoft Windows */
+int
+system(command)
+char *command;
+{
+char str[MAXSTR];
+ strcpy(str,"Windows can't do system(\042");
+ if (command) {
+ strncat(str,command,MAXSTR-strlen(str));
+ }
+ strncat(str,"\042);",MAXSTR-strlen(str));
+ error(str);
+ return(1); /* error */
+}
+
+/* Get a new command line */
+void
+winargs()
+{
+ fputs("Options: ",stdout);
+ fgets(winline,MAXSTR,stdin);
+ wargc=1;
+ if ( (wargv[1] = strtok(winline," \n")) != (char *)NULL ) {
+ wargc=2;
+ while ( ((wargv[wargc] = strtok((char *)NULL," \n")) != (char *)NULL)
+ && (wargc < 31) )
+ wargc++;
+ }
+ wargv[wargc] = (char *)NULL;
+}
+
+int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance,
+ LPSTR lpszCmdLine, int cmdShow)
+{
+ char modulename[MAXSTR];
+
+ /* start up the text window */
+ _ScreenSize.y = 50;
+ _InitEasyWin();
+
+ /* fix up the EasyWindows window provided by Borland */
+ GetModuleFileName(hInstance, (LPSTR) modulename, MAXSTR);
+ hwndeasy = FindWindow("BCEasyWin", modulename);
+ SetWindowText(hwndeasy, szAppName); /* change title */
+ SetClassWord(hwndeasy, GCW_HICON, LoadIcon(hInstance, "RadicalEye")); /* change icon */
+
+ if (_argc==1) {
+ /* get new command line if no options or filenames */
+ help();
+ winargs();
+ wargv[0] = _argv[0];
+ _argc=wargc;
+ _argv=wargv;
+ }
+
+ main(_argc, _argv, environ);
+ /* unfortunately dvips doesn't return from main(), it exits */
+ /* so the following code is never executed */
+ DestroyWindow(hwndeasy);
+ return 0;
+}