1# @(#)Makefile 5.5 (Berkeley) 01/31/91 2 3MIP= ${.CURDIR}/../../mip 4 5PROG= lintpass1 6CFLAGS+=-I${MIP} -I. -I${.CURDIR} 7SRCS= cgram.c common.c hash.c lint.c optim.c pftn.c rel.c rodata.c scan.c \ 8 trees.c xdefs.c 9.PATH: ${MIP} 10BINDIR= /usr/libexec 11MAN1= lint.0 12CLEANFILES=cgram.c gram.in pcclocal.h pcctokens rodata.c 13 14.include <bsd.prog.mk> 15 16rodata.o: 17 $(CC) -c ${CFLAGS} -R ${.IMPSRC} 18 19common.o: 20 ${CC} -c ${CFLAGS} -DPASS1COMMON ${.IMPSRC} 21 22rodata.c cgram.c: pcclocal.h pcctokens 23 cat pcctokens ${MIP}/cgram.y > gram.in 24 ${YACC} gram.in 25 yyfix rodata.c yylhs yylen yydefred yydgoto yysindex yyrindex yygindex \ 26 yytable yycheck 27 mv y.tab.c cgram.c 28 29pcclocal.h: localdefs.h /usr/include/pcc.h 30 cat ${.ALLSRC} | \ 31 egrep '^#[ ]*(define[ ][ ]*PCC(F|T|TM|OM)?_|ifdef|ifndef|endif)' | \ 32 sed -e 's/PCC[A-Z]*_//' > ${.TARGET} 33 34pcctokens: localdefs.h /usr/include/pcc.h 35 cat ${.ALLSRC} | \ 36 egrep '^#[ ]*define[ ][ ]*PCC_' | \ 37 sed -e 's/^#[ ]*define[ ][ ]*PCC_/%term /' > \ 38 ${.TARGET} 39