summaryrefslogtreecommitdiff
path: root/dviware/quicspool/src/makefile
blob: 6a2bde4be008185a849b51bf496a813e4fea0240 (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# $Header: Makefile,v 1.2 88/02/03 08:52:35 simpson Exp $
# $Log:	Makefile,v $
#Revision 1.2  88/02/03  08:52:35  simpson
#added tpic support
#
#Revision 1.1  88/01/15  13:03:01  simpson
#initial release
#
#Revision 0.2  87/12/18  11:25:41  simpson
#added spline file
#
#Revision 0.1  87/12/11  18:30:37  simpson
#beta test
#
CFLAGS=-O
LDFLAGS=-s
FILTER=/usr/local/lib/lpr
OTROFFFONT=/usr/lib/font
DITROFFFONT=/usr/lib/font/devqms
WWTEXFONT=/usr/lib/tex/qmsfonts
WBTEXFONT=/usr/lib/tex/imagenfonts
BINARIES=/usr/local/bin
DOCILEUSER=games

all: of if rf gf df nf tf pktoch tfm2difont tfm2ofont dumpdesc cati

configure:
	sed s:--PKDIR1--:$(WBTEXFONT): < df.c.backup | \
	sed s:--PKDIR2--:$(WWTEXFONT): > df.c
	sed s:--FONTDIR--:$(DITROFFFONT): < tf.c.backup > tf.c
	sed s:--FONTDIR--:$(DITROFFFONT): < nf.c.backup > nf.c
	sed s:--USER--:$(DOCILEUSER): < constants.h.backup > constants.h
	sed s:--OFONT--:$(OTROFFFONT): < qtroff.backup | \
	sed s:--FILTER--:$(FILTER): > qtroff
	sed s:--DIFONT--:$(DITROFFFONT): < ditroff.backup > ditroff

of: of.o profile.o misc.o string.o
	$(CC) -o $@ $(LDFLAGS) of.o profile.o misc.o string.o \
	../libtrw/libtrw.a ../libprofile/libprofile.a ../libglob/libglob.a \
	../libqmsquery/libqmsquery.a -ll -ltermcap

if: if.o profile.o qms.o cleanup.o
	$(CC) -o $@ $(LDFLAGS) if.o profile.o qms.o cleanup.o \
	../libtrw/libtrw.a ../libprofile/libprofile.a ../libglob/libglob.a \
	../libqmsquery/libqmsquery.a -ll -ltermcap

rf: rf.o profile.o qms.o cleanup.o
	$(CC) -o $@ $(LDFLAGS) rf.o profile.o qms.o cleanup.o \
	../libtrw/libtrw.a ../libqmsquery/libqmsquery.a \
	../libprofile/libprofile.a ../libglob/libglob.a -ll -ltermcap

gf: gf.o profile.o qms.o cleanup.o
	$(CC) -o $@ $(LDFLAGS) gf.o profile.o qms.o cleanup.o \
	../libtrw/libtrw.a ../libqmsquery/libqmsquery.a \
	../libprofile/libprofile.a ../libglob/libglob.a -ll -ltermcap -lm

df: df.o cleanup.o getc.o io.o list.o misc.o pk.o profile.o qms.o spline.o \
    stack.o string.o table.o
	$(CC) -o $@ $(LDFLAGS) df.o cleanup.o getc.o io.o list.o misc.o \
        pk.o profile.o qms.o spline.o stack.o string.o table.o \
	../libtrw/libtrw.a ../libqmsquery/libqmsquery.a -ll \
	../libprofile/libprofile.a ../libglob/libglob.a -ltermcap -lm

nf: nf.o cleanup.o getc.o io.o list.o misc.o pk.o profile.o qms.o spline.o \
	stack.o string.o table.o
	$(CC) -o $@ $(LDFLAGS) nf.o cleanup.o getc.o io.o list.o misc.o pk.o \
	profile.o qms.o spline.o stack.o string.o table.o ../libtrw/libtrw.a \
	../libqmsquery/libqmsquery.a ../libprofile/libprofile.a \
	../libglob/libglob.a -ll -ltermcap -lm
	
tf: tf.o cat.o cleanup.o getc.o io.o list.o misc.o pk.o profile.o qms.o \
	stack.o string.o table.o
	$(CC) -o $@ $(LDFLAGS) tf.o cat.o cleanup.o getc.o io.o list.o misc.o \
	pk.o profile.o qms.o stack.o string.o table.o ../libtrw/libtrw.a \
	../libqmsquery/libqmsquery.a ../libprofile/libprofile.a \
	../libglob/libglob.a -ll -ltermcap

pktoch: pktoch.o misc.o pk.o io.o getc.o string.o
	$(CC) $(LDFLAGS) -o $@ pktoch.o misc.o pk.o io.o getc.o string.o \
	../libtrw/libtrw.a -ltermcap

tfm2difont: tfm2difont.o getc.o io.o
	$(CC) $(LDFLAGS) -o $@ tfm2difont.o getc.o io.o ../libtrw/libtrw.a

tfm2ofont: tfm2ofont.o cat.o getc.o io.o
	$(CC) $(LDFLAGS) -o $@ tfm2ofont.o cat.o getc.o io.o ../libtrw/libtrw.a

dumpdesc: dumpdesc.o getc.o io.o
	$(CC) $(LDFLAGS) -o $@ dumpdesc.o getc.o io.o ../libtrw/libtrw.a

cati: cati.o
	$(CC) $(LDFLAGS) -o $@ cati.o

install:
	install -m 755 if $(FILTER)
	install -m 755 of $(FILTER)
	install -m 755 rf $(FILTER)
	install -m 755 gf $(FILTER)
	install -m 755 tf $(FILTER)
	install -o root -g daemon -m 4750 nf $(FILTER)
	install -o root -g daemon -m 4750 df $(FILTER)
	install -c -m 644 mount.nr $(FILTER)
	install -m 755 tfm2ofont $(BINARIES)
	install -m 755 tfm2difont $(BINARIES)
	install -m 755 dumpdesc $(BINARIES)
	install -m 755 pktoch $(BINARIES)
	install -m 755 cati $(BINARIES)
	install -c -m 755 qtroff $(BINARIES)
	install -c -m 755 ditroff $(BINARIES)
	install -c -m 755 glpr $(BINARIES)
	install -c -m 755 glpq $(BINARIES)

clean: 
	-rm -f of if rf gf df nf tf pktoch tfm2difont tfm2ofont dumpdesc cati \
	*.o lex.yy.c y.tab.c quic.c xxx.c xxxlex.c \
	df.c tf.c nf.c constants.h qtroff ditroff

lint:
	lint of.c profile.c misc.c string.c
	lint if.c profile.c qms.c cleanup.c
	lint rf.c profile.c qms.c cleanup.c
	lint gf.c profile.c qms.c cleanup.c
	lint df.c cleanup.c getc.c io.c list.c misc.c pk.c profile.c qms.c \
	stack.c string.c table.c
	lint nf.c cleanup.c getc.c io.c list.c misc.c pk.c profile.c qms.c \
	spline.c stack.c string.c table.c
	lint tf.c cat.c cleanup.c getc.c io.c list.c misc.c pk.c profile.c \
	qms.c stack.c string.c table.c
	lint pktoch.c misc.c pk.c io.c getc.c string.c
	lint tfm2ofont.c cat.c getc.c io.c
	lint tfm2difont.c io.c getc.c
	lint dumpdesc.c io.c getc.c
	lint cati.c

if.o: fontnode.h quic.c
rf.o: fontnode.h
gf.c: constants.h fontnode.h
df.o: dvi.h constants.h fontinfo.h fontnode.h xxx.c
nf.o: constants.h dev.h fontinfo.h fontnode.h xxx.c
tf.o: constants.h fontinfo.h fontnode.h
pktoch.o: fontinfo.h
tfm2difont.o: constants.h dev.h
tfm2ofont.o: constants.h
dumpdesc.o: dev.h
cleanup.o: constants.h fontnode.h
list.o: fontnode.h
misc.o: constants.h
pk.o: constants.h fontinfo.h pk.h
qms.o: fontnode.h
quic.c: quic.l
xxx.c: xxxlex.c xxx.y
xxxlex.c: xxxlex.l