home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
PRINTING
/
DVIPS386.ZIP
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1991-11-05
|
6KB
|
205 lines
#
# Makefile for dvips
#
.SUFFIXES: .c .o
# compiler
CC = c:/gpp/bin/gcc.exe
# for SYSV (and friends which use <string.h> instead of <strings.h>
# define the c-compiler flag -DSYSV
# -DMSDOS for MS-DOS systems (needs -DSYSV also)
SYS = -DSYSV -DMSDOS
# where the installed binary goes
#BINDIR = /usr/local/TeX
#HDRFILE =/usr/local/lib/ps
#BINDIR = /ug/bin
#HDRFILE =/ug/lib/tex82
BINDIR = c:\emtex
# where the config files go
# CONFIGDIR = /usr/lib/tex/ps
CONFIGDIR = c:\emtex\ps
# where the header PS files go
# HEADERDIR = /usr/lib/tex/ps
HEADERDIR = c:\emtex\ps
# where epsf.tex and rotate.tex go (usually the TeX macros directory)
# TEXMACRODIR = /usr/lib/tex/inputs
TEXMACRODIR = c:\emtex\texinput
# where the manual page goes
# MANDIR = /usr/local/text/man/man1
MANDIR = c:\emtex\doc
# see the file paths.h for the paths
# where the manual page goes
#MANFILE = /usr/man/man1/dvips.1
# add -DDEBUG to turn on debugging capability
# add -DTPIC for tpic support
# add -DEMTEX for emTeX support
# add -DFONTLIB for font library support
# add -DSEARCH_SUBDIRECTORIES for subdirectory searching
# if the default resolution is not 300 dpi,
# add -DEFRES=400 or whatever is required
DEFS= -DTPIC -DDEBUG -DEMTEX -DFONTLIB
#MSDOS sets all paths in config.ps
CFLAGS = -v -m80387 -O $(DEFS) $(SYS)
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 flib.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 \
flib.o
#PRO = tex.pro texps.pro texps-scriptprinter.pro
#CFLAGS = -O $(DEFS)
# files required to make a distribution
CONFIGFILES = config.ps psfonts.map
HEADERFILES = tex.lpr texc.scr texps.lpr special.lpr finclude.lpr
PCFILES = pc/README.pc pc/makefile \
pc/config.ps pc/maketexp.bat
FILES = $(CONFIGFILES) $(HEADERFILES) $(SRC) $(PCFILES) \
Makefile INSTALLATION README rotsample.tex AGaramond-Demo.pfb \
MakeTeXPK ../afm/Makefile epsf.tex epsf.sty rotate.tex dvips.1 \
rotate.sty paths.h debug.h structures.h squeeze.c afm2tfm.c afm2tfm.1
# default rules
%.o : %.c
$(CC) -c $(CFLAGS) $< -o $@
all : afm2tfm3.exe dvips386.exe tex.pro texps.pro texc.pro special.pro finclude.pro
#all : dvips $(PRO)
dvips386.exe : $(OBJ)
$(CC) @obj -lm -o dvips
aout2exe dvips
ren dvips.exe dvips386.exe
afm2tfm3.exe : afm2tfm.c
$(CC) $(CFLAGS) afm2tfm.c -lm -o afm2tfm
aout2exe afm2tfm
ren afm2tfm.exe afm2tfm3.exe
$(OBJ) : structures.h debug.h paths.h
#$(OBJ) : structures.h
squeeze3.exe : squeeze.c
$(CC) $(CFLAGS) squeeze.c -o squeeze
aout2exe squeeze
ren squeeze.exe squeeze3.exe
tex.pro : tex.lpr squeeze3.exe
squeeze3 tex.lpro tex.pro
texc.pro: texc.lpr squeeze3.exe
squeeze3 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 squeeze3.exe
squeeze3 texps.lpro texps.pro
special.pro : special.lpr squeeze3.exe
squeeze3 special.lpr special.pro
finclude.pro: finclude.lpr squeeze3.exe
squeeze3 finclude.lpr finclude.pro
install : afm2tfm3.exe dvips386.exe pc/maketexp.bat \
tex.pro texc.pro texps.pro special.pro finclude.pro \
pc/config.ps psfonts.map epsf.tex epsf.sty rotate.tex \
rotate.sty dvips.1 afm2tfm.1
# mkdir $(BINDIR)
# mkdir $(HEADERDIR)
# mkdir $(CONFIGDIR)
# mkdir $(MANDIR)
# mkdir $(TEXMACRODIR)
copy afm2tfm3.exe $(BINDIR)\afm2tfm3.exe
copy dvips386.exe $(BINDIR)\dvips386.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 pc\config.ps $(CONFIGDIR)
copy psfonts.map $(CONFIGDIR)
copy epsf.tex $(TEXMACRODIR)
copy epsf.sty $(TEXMACRODIR)
copy rotate.tex $(TEXMACRODIR)
copy rotate.sty $(TEXMACRODIR)
# copy dvips.1 $(MANDIR)
# copy afm2tfm.1 $(MANDIR)
copy pc\dvips.doc $(MANDIR)
copy pc\afm2tfm.doc $(MANDIR)
veryclean :
del *.o
del dvips386.exe
del squeeze3.exe
del afm2tfm3.exe
del afm2tfm.map
del dvips.map
del squeeze.map
del *.pro
clean :
del *.o
del squeeze3.exe
del afm2tfm.map
del dvips.map
del squeeze.map
depend :
$(CC) -M $(SRC) > makefile.dep
#
# append Makefile.depend yourself
#
dospecia.o : dospecia.c structures.h paths.h debug.h
dviinput.o : dviinput.c structures.h paths.h debug.h
fontdef.o : fontdef.c structures.h paths.h debug.h
loadfont.o : loadfont.c structures.h paths.h debug.h
dvips.o : dvips.c structures.h paths.h debug.h
tfmload.o : tfmload.c structures.h paths.h debug.h
download.o : download.c structures.h paths.h debug.h
prescan.o : prescan.c structures.h paths.h debug.h
scanpage.o : scanpage.c structures.h paths.h debug.h
skippage.o : skippage.c structures.h paths.h debug.h
output.o : output.c structures.h paths.h debug.h
scalewid.o : scalewid.c structures.h paths.h debug.h
dosectio.o : dosectio.c structures.h paths.h debug.h
dopage.o : dopage.c structures.h paths.h debug.h
resident.o : resident.c structures.h paths.h debug.h
search.o : search.c structures.h paths.h debug.h
unpack.o : unpack.c structures.h paths.h debug.h
drawPS.o : drawPS.c
header.o : header.c structures.h paths.h debug.h
makefont.o : makefont.c structures.h paths.h debug.h
repack.o : repack.c structures.h paths.h debug.h
virtualf.o : virtualf.c structures.h paths.h debug.h
dpicheck.o : dpicheck.c structures.h paths.h debug.h
finclude.o : finclude.c structures.h paths.h debug.h
flib.o : flib.c