xref: /csrg-svn/old/pcc/f1.tahoe/Makefile (revision 44274)
1*44274Sbostic#	@(#)Makefile	5.3 (Berkeley) 06/25/90
243120Sbostic
343120SbosticPROG=	f1
443120SbosticMIP=	${.CURDIR}/../mip
543120SbosticCCOM=	${.CURDIR}/../ccom.${MACHINE}
643120SbosticCFLAGS+=-DFORT -I. -I${.CURDIR} -I${CCOM} -I${MIP}
743120SbosticSRCS=	allo.c common.c fort.c local2.c match.c order.c reader.c table.c
843120SbosticNOMAN=	noman
943120Sbostic.PATH:	${MIP} ${CCOM}
1043120SbosticCLEANFILES+=pcclocal.h
1143120Sbostic
1243240Sbostictable.o:
1343240Sbostic	${CC} ${CFLAGS} -c -R ${.IMPSRC}
1443120Sbostic
1543240Sbosticcommon.o:
1643240Sbostic	${CC} ${CFLAGS} -DPASS2COMMON -c ${.IMPSRC}
1743120Sbostic
1843240Sbosticpcclocal.h: localdefs.h /usr/include/pcc.h
1943120Sbostic	cat ${.ALLSRC} | \
2043120Sbostic	    egrep '^#[ 	]*(define[ 	][ 	]*PCC(F|T|TM|OM)?_|ifdef|ifndef|endif)' | \
2143120Sbostic	    sed -e 's/PCC[A-Z]*_//' > ${.TARGET}
2243120Sbostic
23*44274Sbostic.include <bsd.prog.mk>
24*44274Sbostic
2543240Sbostic${OBJS} .depend: pcclocal.h
2643120Sbostic
2743120Sbostic
28