# @(#)Makefile 5.5 (Berkeley) 1/31/91
MIP
= ${.CURDIR
}/..
/..
/mip
CFLAGS
+=-I
${MIP} -I.
-I
${.CURDIR
}
SRCS
= cgram.c common.c hash.c lint.c optim.c pftn.c rel.c rodata.c scan.c \
CLEANFILES
=cgram.c gram.in pcclocal.h pcctokens rodata.c
$(CC
) -c
${CFLAGS} -R
${.IMPSRC
}
${CC} -c
${CFLAGS} -DPASS1COMMON
${.IMPSRC
}
rodata.c cgram.c
: pcclocal.h pcctokens
cat pcctokens
${MIP}/cgram.y
> gram.in
yyfix rodata.c yylhs yylen yydefred yydgoto yysindex yyrindex yygindex \
pcclocal.h
: localdefs.h
/usr
/include/pcc.h
egrep
'^#[ ]*(define[ ][ ]*PCC(F|T|TM|OM)?_|ifdef|ifndef|endif)' | \
sed
-e
's/PCC[A-Z]*_//' > ${.TARGET
}
pcctokens
: localdefs.h
/usr
/include/pcc.h
egrep
'^#[ ]*define[ ][ ]*PCC_' | \
sed
-e
's/^#[ ]*define[ ][ ]*PCC_/%term /' > \