Commit | Line | Data |
---|---|---|
fe55f16c | 1 | # @(#)Makefile 8.1 (Berkeley) %G% |
0045ad3a | 2 | |
0b7dbfd7 KB |
3 | PROG= pxp |
4 | SRCDIR= ${.CURDIR}/../src | |
5 | .PATH: ${SRCDIR} | |
0045ad3a | 6 | |
0b7dbfd7 KB |
7 | CFLAGS+=-DRMOTHERS -w -I. -I${.CURDIR} -I${SRCDIR} |
8 | SRCS= TRdata.c Version.c call.c case.c const.c cset.c error.c fdec.c \ | |
9 | func.c hash.c lab.c lval.c main.c nl.c pmon.c pp.c proc.c rec.c \ | |
10 | rmothers.c rval.c stat.c string.c subr.c tree.c treen.c type.c \ | |
11 | var.c y.tab.c yycomm.c yycopy.c yycosts.c yyerror.c yyget.c yyid.c \ | |
12 | yylex.c yymain.c yypanic.c yyparse.c yyprint.c yyput.c yyrecover.c \ | |
13 | yyseman.c yytree.c | |
1ef81a86 | 14 | CLEANFILES=opc y.tab.c y.tab.h opcode.h version |
0045ad3a | 15 | |
3c4f9b5a | 16 | y.tab.h y.tab.c: ${SRCDIR}/pas.y |
0b7dbfd7 KB |
17 | /usr/libexec/pascal/eyacc ${SRCDIR}/pas.y > /dev/null |
18 | ex - y.tab.c < ${SRCDIR}/gram | |
3c4f9b5a KM |
19 | |
20 | newversion: version | |
0b7dbfd7 | 21 | ./version > Version.c |
0045ad3a | 22 | |
7c79ee59 | 23 | version: version.c Version.o |
0b7dbfd7 | 24 | ${CC} -o version ${.CURDIR}/version.c Version.o |
7c79ee59 | 25 | |
0b7dbfd7 KB |
26 | opcode.h: opc ${SRCDIR}/OPnames.h |
27 | ./opc > ${.TARGET} | |
0045ad3a | 28 | |
0b7dbfd7 KB |
29 | opc: ${SRCDIR}/opc.c |
30 | ${CC} ${SRCDIR}/opc.c -o ${.TARGET} | |
0045ad3a | 31 | |
0b7dbfd7 | 32 | .include <bsd.prog.mk> |
cb7995bf | 33 | |
0b7dbfd7 | 34 | ${OBJS} .depend: opcode.h y.tab.h |