head     1.1;
access   ;
symbols  ;
locks    grunwald:1.1; strict;
comment  @# @;


1.1
date     88.09.18.15.39.21;  author grunwald;  state Exp;
branches ;
next     ;


desc
@@



1.1
log
@Initial revision
@
text
@#
#   Makefile for dvips
#

# where the installed binary goes
BINDIR = /usr/local

# 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
DEFS= -DDEBUG -DTPIC

CFLAGS = -g $(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 dpicheck.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 dpicheck.o

all : dvips tex.pro texps.pro

dvips : $(OBJ)
	cc $(CFLAGS) $(OBJ) -lm -o dvips

$(OBJ) : structures.h

squeeze : squeeze.o
	cc $(CFLAGS) squeeze.o -o squeeze

tex.pro : tex.lpro squeeze
	./squeeze <tex.lpro > tex.pro

texps.pro : texps.lpro squeeze
	./squeeze <texps.lpro >texps.pro

resident.o dvips.o loadfont.o tfmload.o : paths.h

man : dvips.1

dist :
	tar cf dvips.tar README Makefile tex.lpro texps.lpro config.ps *.c *.h
	compress dvips.tar

# install : dvips tex.pro dvips.1
install : dvips tex.pro
	install -s -c -m 755 dvips $(BINDIR)/dvips
	install -c -m 644 tex.pro $(HDRFILE)
#	install -c -m 644 dvips.1 $(MANFILE)

clean :
	rm -f *.o dvips squeeze tex.pro

lint :
	lint $(DEFS) $(SRC)
	lint $(DEFS) squeeze.c

shar :
	shar Makefile README tex.lpro texps.lpro config.ps structures.h \
	$(SRC) > dvips.shar
	compress -f dvips.shar

@
