#
# dvipage: DVI Previewer Program for Suns
#
# Neil Hunt (hunt@spar.slb.com)
#
# This program is based, in part, upon the program dvisun,
# distributed by the UnixTeX group, extensively modified by
# Neil Hunt at the Schlumberger Palo Alto Research Laboratories
# of Schlumberger Technologies, Inc.
#
# From the dvisun manual page entry:
#	Mark Senn wrote the early versions of [dvisun] for the
#	BBN BitGraph. Stephan Bechtolsheim, Bob Brown, Richard
#	Furuta, James Schaad and Robert Wells improved it. Norm
#	Hutchinson ported the program to the Sun. Further bug fixes
#	by Rafael Bracho at Schlumberger.
#
# Copyright (c) 1988 Schlumberger Technologies, Inc 1988.
# Anyone can use this software in any manner they choose,
# including modification and redistribution, provided they make
# no charge for it, and these conditions remain unchanged.
#
# This program is distributed as is, with all faults (if any), and
# without any warranty. No author or distributor accepts responsibility
# to anyone for the consequences of using it, or for whether it serves any
# particular purpose at all, or any other reason.
#
# HISTORY
#
# 12 April 1988 - Neil Hunt
#	Version 2.0 released for use.
#
# Earlier history unavailable.
#

#C = -O -f68881
C = -O
L = -lsuntool -lsunwindow -lpixrect

dvipage: dvipage.o
	cc $C -o dvipage dvipage.o $L

dvipage.o: dvipage.c dvi.h
	cc $C -c dvipage.c \
	  '-DFONTAREA="/usr/local/font/tex/pxl"' \
	  '-DPRINT_SPOOLER="lpr -d %s"' \
	  '-DPRINT_PAGE_SPOOLER="texpagefilter -f %d -t %d %s | lpr -d"'
