summaryrefslogtreecommitdiff
path: root/dviware/dvipage/makefile
blob: 473c0ba528455c1975c6ed2236b9972401b21b29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# 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
#
# 14/2/92: Makefile hacked, especially to add defines. d.love@dl.ac.uk
#
# $Log:	Makefile,v $
# Revision 1.3  88/12/15  18:20:02  hunt
# Version 3.0. Split into more files, fixed for Sun4, reads GF fonts.
# 
# Revision 1.2  88/11/26  11:12:51  hunt
# Added alternate font file location for sun4 machines at Spar.
# 
# Revision 1.1  88/08/30  09:05:42  hunt
# Initial revision
# 
# 12 April 1988 - Neil Hunt
#	Version 2.0 released for use.
#
# Earlier history unavailable.
#

# where to find the pixel files (only looking for .pks here)
FONT_AREA=\"/usr/local/lib/tex/fonts/pkb:/usr/local/lib/tex/fonts/pk\"

BINDIR = /usr/local/bin		# directory for executable

MANDIR = /usr/man/manl	 	# directory for local man pages

MANEXT = l		 	# extension for local man pages

DEBUG = #-g

# the definition of _TYPES_ below seems to have become necessary with
# sunos4.1

# For sun3.
#CFLAGS = -O -D_TYPES_ -DFONT_AREA=$(FONT_AREA) $(DEBUG)

# For sun3, f68881
CFLAGS = -O -f68881 -D_TYPES_ -DFONT_AREA=$(FONT_AREA) $(DEBUG)

# For Sun4.
#CFLAGS = -O -D_TYPES_  -DFONT_AREA=$(FONT_AREA) $(DEBUG)

# Sun libraries.
L = -lsuntool -lsunwindow -lpixrect -lm

dvipage: dvipage.o sample.o fonts.o findfile.o message.o utils.o args.o
	${CC} $(DEBUG) -o dvipage \
	 dvipage.o sample.o fonts.o findfile.o message.o utils.o args.o $L

dvipage.o: dvipage.c dvi.h dvipage.h

sample.o: sample.c dvipage.h

fonts.o: fonts.c dvipage.h dvi.h

findfile.o: findfile.c dvipage.h

message.o: message.c dvipage.h

utils.o: utils.c dvipage.h

args.o: args.c dvipage.h

install: dvipage dvipage.1
	install dvipage $(BINDIR)
	install dvipage.1 $(MANDIR)/dvipage.$(MANEXT)

clean:
	rm -f dvipage *.o core *~ *%