date and time created 90/06/17 14:27:38 by bostic
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 18 Jun 1990 05:27:38 +0000 (21:27 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Mon, 18 Jun 1990 05:27:38 +0000 (21:27 -0800)
SCCS-vsn: old/pcc/sccom.vax/Makefile 5.1

usr/src/old/pcc/sccom.vax/Makefile [new file with mode: 0644]

diff --git a/usr/src/old/pcc/sccom.vax/Makefile b/usr/src/old/pcc/sccom.vax/Makefile
new file mode 100644 (file)
index 0000000..8607eae
--- /dev/null
@@ -0,0 +1,49 @@
+#      @(#)Makefile    5.1 (Berkeley) %G%
+#
+# 'sccom' is a C compiler that does single precision computations in
+# single precision rather than double precision.
+#
+
+PROG=  sccom
+MIP=   ${.CURDIR}/../mip
+CCOM=  ${.CURDIR}/../ccom.vax
+CFLAGS+=-DONEPASS -DSPRECC -I. -I${.CURDIR} -I${CCOM} -I${MIP}
+SRCS=  allo.c code.c common.c local.c local2.c match.c optim.c order.c \
+       pftn.c reader.c rel.c scan.c stab.c table.c trees.c xdefs.c
+OBJS+= cgram.o rodata.o
+NOMAN= noman
+.PATH: ${CCOM} ${MIP}
+CLEANFILES+=cgram.c gram.in rodata.c pcctokens pcclocal.h
+
+cgram.o: cgram.c
+       ${CC} ${CFLAGS} -c cgram.c
+
+rodata.c cgram.c: ${MIP}/cgram.y pcctokens
+       cat pcctokens ${MIP}/cgram.y > gram.in
+       ${YACC} gram.in
+       yyfix rodata.c
+       mv y.tab.c cgram.c
+
+common.o: ${MIP}/common.c
+       ${CC} ${CFLAGS} -DPASS1COMMON -c ${.ALLSRC}
+
+rodata.o: rodata.c
+       ${CC} ${CFLAGS} -c -R rodata.c
+
+table.o: ${CCOM}/${.PREFIX}.c
+       ${CC} ${CFLAGS} -c -R ${CCOM}/${.PREFIX}.c
+
+pcclocal.h: ${.CURDIR}/../ccom.vax/localdefs.h /usr/include/pcc.h
+       cat ${.ALLSRC} | \
+           egrep '^#[  ]*(define[      ][      ]*PCC(F|T|TM|OM)?_|ifdef|ifndef|endif)' | \
+           sed -e 's/PCC[A-Z]*_//' > ${.TARGET}
+
+pcctokens: ${.CURDIR}/../ccom.vax/localdefs.h /usr/include/pcc.h
+       cat ${.ALLSRC} | \
+           egrep '^#[  ]*define[       ][      ]*PCC_' | \
+           sed -e 's/^#[       ]*define[       ][      ]*PCC_/%term    /' > \
+           ${.TARGET}
+
+.depend: pcclocal.h pcctokens
+
+.include <bsd.prog.mk>