|
|
1.1 root 1: # @(#)Makefile 1.27 (Berkeley) 6/18/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:
13: rodata.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:
18: common.o:
19: ${CC} ${CFLAGS} -DPASS1COMMON -c ${.IMPSRC}
20:
21: rodata.o table.o:
22: ${CC} ${CFLAGS} -c -R ${.IMPSRC}
23:
24: pcclocal.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:
29: pcctokens: 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>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.