xref: /original-bsd/usr.bin/pascal/pxp/Makefile (revision 62734ea8)
1SCCSID = "@(#)Makefile	1.6 (Berkeley) 09/09/82"
2DESTDIR=
3ED=	-ex
4AS=	-as
5EYACC=	/usr/ucb/eyacc
6CFLAGS=	-O -DPXP -w
7OBJS=	call.o case.o const.o cset.o \
8	error.o fdec.o func.o hash.o lab.o lval.o \
9	main.o nl.o pmon.o pp.o proc.o rec.o rval.o \
10	stat.o string.o subr.o tree.o type.o var.o y.tab.o \
11	yycomm.o yycosts.o yyerror.o yyget.o yyid.o yylex.o yymain.o \
12	yypanic.o yyparse.o yyprint.o yyput.o yyrecover.o \
13	yyseman.o yytree.o
14OBJS2=	doprnt.o printf.o treen.o yycopy.o TRdata.o Version.o
15
16all: a.out
17
18a.out:	${OBJS} ${OBJS2}
19	${CC} ${CFLAGS} ${OBJS} ${OBJS2}
20
21doprnt.o: doprnt.c
22	${CC} ${CFLAGS} -E doprnt.c > doprnt.s
23	${AS} -o doprnt.o doprnt.s
24	-rm -f doprnt.s
25
26y.tab.h y.tab.c: pas.y
27	${EYACC} pas.y >/dev/null
28	${ED} - y.tab.c < gram
29
30version: version.c Version.o
31	cc -o version version.c Version.o
32
33newversion: version
34	version > Version.c
35
36clean:
37	-rm -f pi1:2strings a.out core
38	-rm -f *.o x* y.tab.c y.tab.h
39
40install: a.out
41	cp a.out ${DESTDIR}/usr/ucb/pxp
42#	cp a.outNOID /usr/ucb/pxp34
43
44print:
45	@pr makefile READ_ME
46	@ls -ls | pr
47	@size a.out *.o | pr
48#	@cxref *.c | pr
49	@pr 0.h main.c pas.y
50	@pr yy.h yy*.c
51	@pr [a-ln-x]*.c
52#	@pr putn.s treen.s yycopy.s
53
54depend:
55	/bin/grep '^#[ 	]*include' *.h \
56		| sed '/<.*>/d' \
57		| sed 's/\(.*\):[^"]*"\([^"]*\)".*/\1: \2/' >makedep
58	/bin/grep '^#[ 	]*include' *.c \
59		| sed '/<.*>/d' \
60		| sed 's/:[^"]*"\([^"]*\)".*/: \1/' \
61		| sed 's/\.c/.o/' >>makedep
62	echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
63	echo '$$r makedep' >>eddep
64	echo 'w' >>eddep
65	cp makefile makefile.bak
66	ed - makefile < eddep
67	rm eddep makedep
68	echo '# DEPENDENCIES MUST END AT END OF FILE' >> makefile
69	echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> makefile
70	echo '# see make depend above' >> makefile
71
72# DO NOT DELETE THIS LINE
73# DEPENDENCIES MUST END AT END OF FILE
74yy.h: y.tab.h
75TRdata.o: whoami.h
76TRdata.o: 0.h
77call.o: 0.h
78call.o: tree.h
79case.o: 0.h
80case.o: tree.h
81const.o: 0.h
82const.o: tree.h
83cset.o: 0.h
84cset.o: tree.h
85error.o: 0.h
86error.o: yy.h
87fdec.o: 0.h
88fdec.o: tree.h
89func.o: 0.h
90func.o: tree.h
91hash.o: whoami.h
92hash.o: 0.h
93hash.o: yy.h
94lab.o: 0.h
95lval.o: 0.h
96lval.o: tree.h
97main.o: 0.h
98nl.o: 0.h
99nl.o: opcode.h
100pmon.o: 0.h
101pp.o: 0.h
102proc.o: 0.h
103proc.o: tree.h
104rec.o: 0.h
105rval.o: 0.h
106rval.o: tree.h
107stat.o: 0.h
108stat.o: tree.h
109string.o: 0.h
110subr.o: 0.h
111tree.o: 0.h
112type.o: 0.h
113type.o: tree.h
114var.o: 0.h
115var.o: tree.h
116y.tab.o: whoami.h
117y.tab.o: 0.h
118y.tab.o: yy.h
119y.tab.o: tree.h
120yycomm.o: 0.h
121yycomm.o: yy.h
122yycopy.o: 0.h
123yycopy.o: yy.h
124yycosts.o: whoami.h
125yycosts.o: 0.h
126yycosts.o: yy.h
127yyerror.o: 0.h
128yyerror.o: yy.h
129yyget.o: 0.h
130yyget.o: yy.h
131yyid.o: 0.h
132yyid.o: yy.h
133yylex.o: 0.h
134yylex.o: yy.h
135yymain.o: 0.h
136yymain.o: yy.h
137yypanic.o: 0.h
138yypanic.o: yy.h
139yyparse.o: 0.h
140yyparse.o: yy.h
141yyprint.o: 0.h
142yyprint.o: yy.h
143yyput.o: 0.h
144yyput.o: tree.h
145yyput.o: yy.h
146yyrecover.o: 0.h
147yyrecover.o: yy.h
148yyseman.o: 0.h
149yyseman.o: yy.h
150yytree.o: 0.h
151yytree.o: tree.h
152# DEPENDENCIES MUST END AT END OF FILE
153# IF YOU PUT STUFF HERE IT WILL GO AWAY
154# see make depend above
155