#------------------------------------------------------------------------
# makefile for dvi2ps
#------------------------------------------------------------------------
# $Header: Makefile,v 2.0 88/06/07 15:12:01 peterd Rel2 $
#------------------------------------------------------------------------
# The following file and directory specifications may need changing at
# your site:
#------------------------------------------------------------------------

# where are the bitmaps stored?
FONTAREA=/usr/local/lib/tex/fonts/gf300

# where is the header file to be found?
HDRFILE=/usr/local/lib/tex/tex.ps

# where is the software to be installed
BINAREA=/usr/local

# an Apollo-specific spool file
SPOOLFILE=/usr/spool/laserwriter/apollo

#------------------------------------------------------------------------
# By default we will use GF format files.  If you want to use PXL
# format instead, then include a -DUSEPXL below.  Actually, if this
# is the case, the routines in gf.c are not needed
#------------------------------------------------------------------------

#DFLAGS = -DFONTAREA=\"${FONTAREA}\" -DHDRFILE=\"${HDRFILE}\" \
#         -DSPOOLFILE=\"${SPOOLFILE}\" -DUSEPXL
DFLAGS = -DFONTAREA=\"${FONTAREA}\" -DHDRFILE=\"${HDRFILE}\" \
         -DSPOOLFILE=\"${SPOOLFILE}\"

CFLAGS = ${DFLAGS} -O
#CFLAGS = ${DFLAGS} -pg -O

OBJS = dvi2ps.o findfile.o gf.o

#------------------------------------------------------------------------
# the make rules

all: dvi2ps

dvi2ps:	${OBJS}
	${CC} ${CFLAGS} -o dvi2ps ${OBJS}
	size dvi2ps
	ls -l dvi2ps

install: all
	install -s -m 755 dvi2ps ${BINAREA}/dvi2ps
	cp tex.ps ${HDRFILE}

clean:
	-rm dvi2ps ${OBJS} core


#------------------------------------------------------------------------
# more specific dependencies

dvi2ps.o: Makefile
dvi2ps.o: commands.h
dvi2ps.o: font.h
dvi2ps.o: findfile.h
dvi2ps.o: gf.h

gf.o: Makefile
gf.o: gf.h

findfile.o: Makefile
findfile.o: findfile.h

#------------------------------------------------------------------------

