summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/cc1
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/cc1
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/cc1')
-rw-r--r--gnu/usr.bin/cc/cc1/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/gnu/usr.bin/cc/cc1/Makefile b/gnu/usr.bin/cc/cc1/Makefile
index 2dc48a0..09a89b5 100644
--- a/gnu/usr.bin/cc/cc1/Makefile
+++ b/gnu/usr.bin/cc/cc1/Makefile
@@ -2,10 +2,10 @@
.include "../Makefile.inc"
-.PATH: ../cc_tools ${GCCDIR}
+.PATH: ${GCCDIR}
PROG= cc1
-SRCS= main.c c-parse.c c-lang.c c-decl.c
+SRCS= main.c c-parse+%DIKED.c c-lang.c c-decl.c
BINDIR= /usr/libexec
NOMAN= 1
NOSHARED?=yes
@@ -17,17 +17,18 @@ LDADD+= ${LIBCC_INT}
#-----------------------------------------------------------------------
# C parser
-.ORDER: c-parse.c
-c-parse.c: c-parse.in
+c-parse+%DIKED.c: c-parse.c
+ sed -e "s/malloc/xmalloc/g" \
+ -e "s/realloc/xrealloc/g" \
+ ${.ALLSRC} > ${.TARGET}
+
+c-parse.y: c-parse.in
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
-e "/^ifc$$/d" \
-e "/^end ifc$$/d" \
- ${GCCDIR}/c-parse.in > c-parse.y
- ${YACC} -o c-parse.c.in c-parse.y
- sed -e "s/malloc/xmalloc/g" \
- -e "s/realloc/xrealloc/g" \
- c-parse.c.in >c-parse.c
+ ${.ALLSRC} > ${.TARGET}
-CLEANFILES= c-parse.c c-parse.y
+CLEANFILES= c-parse+%DIKED.c c-parse.c c-parse.y
+CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud