|
|
1.1 root 1: # @(#)Makefile 1.19 (Berkeley) 6/20/90
2:
3: PROG= ccom
4: MIP= ${.CURDIR}/../mip
5: CFLAGS+=-DONEPASS -I. -I${.CURDIR} -I${MIP}
6: SRCS= 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
8: OBJS+= cgram.o rodata.o
9: NOMAN= noman
10: .PATH: ${MIP}
11: CLEANFILES+=cgram.c rodata.c pcctokens pcclocal.h
12: LINKS= ${BINDIR}/ccom ${BINDIR}/sccom
13:
14: rodata.c cgram.c: ${MIP}/cgram.y pcctokens
15: cat pcctokens ${MIP}/cgram.y | ${YACC} /dev/stdin
16: yyfix rodata.c
17: mv y.tab.c cgram.c
18:
19: common.o:
20: ${CC} ${CFLAGS} -DPASS1COMMON -c ${.IMPSRC}
21:
22: rodata.o table.o:
23: ${CC} ${CFLAGS} -c -R ${.IMPSRC}
24:
25: pcclocal.h: localdefs.h /usr/include/pcc.h
26: cat ${.ALLSRC} | \
27: egrep '^#[ ]*(define[ ][ ]*PCC(F|T|TM|OM)?_|ifdef|ifndef|endif)' | \
28: sed -e 's/PCC[A-Z]*_//' > ${.TARGET}
29:
30: pcctokens: localdefs.h /usr/include/pcc.h
31: cat ${.ALLSRC} | \
32: egrep '^#[ ]*define[ ][ ]*PCC_' | \
33: sed -e 's/^#[ ]*define[ ][ ]*PCC_/%term /' > \
34: ${.TARGET}
35:
36: ${OBJS} .depend: pcclocal.h pcctokens
37:
38: .include <bsd.prog.mk>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.