BSD-SCCS END release
[unix-history] / usr / src / usr.bin / pascal / pxp / Makefile
CommitLineData
5cbc3323 1# @(#)Makefile 8.2 (Berkeley) %G%
0045ad3a 2
0b7dbfd7
KB
3PROG= pxp
4SRCDIR= ${.CURDIR}/../src
5.PATH: ${SRCDIR}
5cbc3323 6EYACC= ${.CURDIR}/../eyacc/obj/eyacc
0045ad3a 7
0b7dbfd7
KB
8CFLAGS+=-DRMOTHERS -w -I. -I${.CURDIR} -I${SRCDIR}
9SRCS= TRdata.c Version.c call.c case.c const.c cset.c error.c fdec.c \
10 func.c hash.c lab.c lval.c main.c nl.c pmon.c pp.c proc.c rec.c \
11 rmothers.c rval.c stat.c string.c subr.c tree.c treen.c type.c \
12 var.c y.tab.c yycomm.c yycopy.c yycosts.c yyerror.c yyget.c yyid.c \
13 yylex.c yymain.c yypanic.c yyparse.c yyprint.c yyput.c yyrecover.c \
14 yyseman.c yytree.c
1ef81a86 15CLEANFILES=opc y.tab.c y.tab.h opcode.h version
0045ad3a 16
5cbc3323
KM
17y.tab.h: ${SRCDIR}/pas.y ${SRCDIR}/gram
18 if [ -f ${EYACC} ]; then \
19 echo make y.tab.h and y.tab.c; \
20 rm -f y.tab.h y.tab.c; \
21 ${EYACC} ${SRCDIR}/pas.y > /dev/null; \
22 else \
23 echo copy y.tab.h and y.tab.c; \
24 cp ${SRCDIR}/y.tab.c ${SRCDIR}/y.tab.h .; \
25 fi
0b7dbfd7 26 ex - y.tab.c < ${SRCDIR}/gram
3c4f9b5a
KM
27
28newversion: version
0b7dbfd7 29 ./version > Version.c
0045ad3a 30
7c79ee59 31version: version.c Version.o
0b7dbfd7 32 ${CC} -o version ${.CURDIR}/version.c Version.o
7c79ee59 33
0b7dbfd7
KB
34opcode.h: opc ${SRCDIR}/OPnames.h
35 ./opc > ${.TARGET}
0045ad3a 36
0b7dbfd7
KB
37opc: ${SRCDIR}/opc.c
38 ${CC} ${SRCDIR}/opc.c -o ${.TARGET}
0045ad3a 39
0b7dbfd7 40.include <bsd.prog.mk>
cb7995bf 41
0b7dbfd7 42${OBJS} .depend: opcode.h y.tab.h