summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/tradcpp0
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-05-13 03:27:03 +0000
committerobrien <obrien@FreeBSD.org>2002-05-13 03:27:03 +0000
commit1daa12366ea8f47d1f39acc0c349daa368fd853b (patch)
tree6eea9fac75fc54638a3a34609d1dc66e991cd2a2 /gnu/usr.bin/cc/tradcpp0
parentfbb890cb8c4b4a71a687d4e66ef3e5d5e8047b4e (diff)
downloadFreeBSD-src-1daa12366ea8f47d1f39acc0c349daa368fd853b.zip
FreeBSD-src-1daa12366ea8f47d1f39acc0c349daa368fd853b.tar.gz
Restore some of the implementation from the Bmake gcc 2.95 bits.
In the end, I can do things more like the previous Bmake bits than was apparent in the middle of the gcc31 WIP.
Diffstat (limited to 'gnu/usr.bin/cc/tradcpp0')
-rw-r--r--gnu/usr.bin/cc/tradcpp0/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/gnu/usr.bin/cc/tradcpp0/Makefile b/gnu/usr.bin/cc/tradcpp0/Makefile
index 000eb86..3ec8968 100644
--- a/gnu/usr.bin/cc/tradcpp0/Makefile
+++ b/gnu/usr.bin/cc/tradcpp0/Makefile
@@ -5,20 +5,19 @@
.PATH: ${GCCDIR}
PROG= tradcpp0
-SRCS= tradcpp.c tradcif.c
+SRCS= tradcpp.c tradcif+%DIKED.c
BINDIR= /usr/libexec
NOMAN= 1
DPADD+= ${LIBCC_INT}
LDADD+= ${LIBCC_INT}
-# ${YACC} ${GCCDIR}/tradcif.y
-tradcif.c: tradcif.y
- ${YACC} ${.ALLSRC}
+tradcif+%DIKED.c: tradcif.c
sed -e "s/malloc/xmalloc/g" \
-e "s/realloc/xrealloc/g" \
- y.tab.c >${.TARGET}
+ ${.ALLSRC} >${.TARGET}
-CLEANFILES= y.tab.c tradcif.c
+CLEANFILES= tradcif+%DIKED.c tradcif.c
+CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud