home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fonts 1
/
freshfonts1.bin
/
bbs
/
programs
/
amiga
/
pastex13.lha
/
DVIPS
/
dvips5519.lha
/
dvips
/
pc
/
makefile.emx
< prev
next >
Wrap
Makefile
|
1993-03-19
|
9KB
|
303 lines
#
# Makefile for dvips. Edit this first part of the file.
#
# First, the things that absolutely must be edited for your system.
# modified for NDMAKE 4.5 and EMX-0.8f/GCC on MS-DOS
# by rjl@monu1.cc.monash.edu.au
# 6th March 1993
# This version of dvips HAS NOT BEEN THOROUGHLY TESTED
# This makefile should also work with NMAKE and EMX-08.f/GCC under OS/2 2.0
# If using HPFS and file names have been truncated by MS-DOS,
# type 'make fixup' and then 'make'
# compiler
EMXPATH = c:/emx
CC = gcc
# All DIRs must use a single \ 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)
# 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...)
# 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 `.')
# VFPATH = c:\\texfonts\\vf
VFPATH = c:\\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 = c:\emtex\ps
# the default path to search for config files
# 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
TEXMACRODIR = c:\emtex\texinput
# 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_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
# -DMSDOS for MS-DOS systems
SYS = -DMSDOS
# where the installed binary goes
# BINDIR = c:\emtex
BINDIR = c:\emtex
# where the manual page goes
# MANDIR = c:\emtex\doc
MANDIR = c:\emtex\doc
#MSDOS sets all paths in paths.rsp
CFLAGS = $(OPT) $(SYS) $(SECURE) $(EMTEX) $(DEFS)
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.o dviinput.o fontdef.o loadfont.o dvips.o \
tfmload.o download.o prescan.o scanpage.o skippage.o \
output.o scalewidth.o dosection.o dopage.o resident.o \
search.o unpack.o drawPS.o header.o makefont.o repack.o \
virtualfont.o dpicheck.o finclude.o \
pprescan.o papersiz.o flib.o color.o bbox.o emspecial.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 dospecial.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 scalewidth.o>>gcclink.rsp
echo dosection.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 virtualfont.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 emspecial.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 -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.lpro squeeze.exe
squeeze tex.lpro tex.pro
texc.pro: texc.lpro squeeze.exe
squeeze texc.lpro texc.pro
texc.lpro: tex.lpro
@echo This does "texc.scr tex.lpro texc.lpro" on Unix
@echo For MSDOS, copy tex.lpro to texc.lpro
@echo then edit texc.lpro to remove the code
@echo for uncompressed fonts and uncomment the
@echo code for unpacking compressed fonts
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 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 $(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)