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