1# @(#)Makefile 1.27 (Berkeley) 06/18/90 2 3PROG= ccom 4MIP= ${.CURDIR}/../mip 5CFLAGS+=-DONEPASS -I. -I${.CURDIR} -I${MIP} 6SRCS= allo.c code.c common.c local.c local2.c match.c optim.c order.c \ 7 pftn.c reader.c rel.c scan.c stab.c table.c trees.c xdefs.c 8OBJS+= cgram.o rodata.o 9NOMAN= noman 10.PATH: ${MIP} 11CLEANFILES+=cgram.c rodata.c pcctokens pcclocal.h 12 13rodata.c cgram.c: ${MIP}/cgram.y pcctokens 14 cat pcctokens ${MIP}/cgram.y | ${YACC} /dev/stdin 15 yyfix rodata.c 16 mv y.tab.c cgram.c 17 18common.o: 19 ${CC} ${CFLAGS} -DPASS1COMMON -c ${.IMPSRC} 20 21rodata.o table.o: 22 ${CC} ${CFLAGS} -c -R ${.IMPSRC} 23 24pcclocal.h: localdefs.h /usr/include/pcc.h 25 cat ${.ALLSRC} | \ 26 egrep '^#[ ]*(define[ ][ ]*PCC(F|T|TM|OM)?_|ifdef|ifndef|endif)' | \ 27 sed -e 's/PCC[A-Z]*_//' > ${.TARGET} 28 29pcctokens: localdefs.h /usr/include/pcc.h 30 cat ${.ALLSRC} | \ 31 egrep '^#[ ]*define[ ][ ]*PCC_' | \ 32 sed -e 's/^#[ ]*define[ ][ ]*PCC_/%term /' > \ 33 ${.TARGET} 34 35${OBJS} .depend: pcclocal.h pcctokens 36 37.include <bsd.prog.mk> 38