summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-05-13 01:54:26 +0000
committerobrien <obrien@FreeBSD.org>2002-05-13 01:54:26 +0000
commit3399becf9dd2e60bf42db741840f137470e4a81b (patch)
treec1a04e31571f69147d52dd2fdf059fef1277b2bb /gnu/usr.bin
parentd4023f2e24f76a780fa8dc8a8102a24bc61db723 (diff)
downloadFreeBSD-src-3399becf9dd2e60bf42db741840f137470e4a81b.zip
FreeBSD-src-3399becf9dd2e60bf42db741840f137470e4a81b.tar.gz
I was finally able to repeat the -j breakage on one of my machines. Fix it.
I borrowed some ideas from Ruslan, and made the style match cc_tools/Makefile
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/cc/cc1plus/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/gnu/usr.bin/cc/cc1plus/Makefile b/gnu/usr.bin/cc/cc1plus/Makefile
index 44d28ca..094cf59 100644
--- a/gnu/usr.bin/cc/cc1plus/Makefile
+++ b/gnu/usr.bin/cc/cc1plus/Makefile
@@ -5,7 +5,7 @@
.PATH: ${GCCDIR}/cp ${GCCDIR}
PROG= cc1plus
-SRCS= parse.y cfns.h
+SRCS= parse-%DIKED.c parse.h cfns.h
SRCS+= main.c cp-lang.c
SRCS+= call.c class.c cvt.c decl.c decl2.c error.c except.c expr.c \
friend.c init.c lex.c mangle.c method.c pt.c ptree.c repo.c rtti.c \
@@ -20,21 +20,19 @@ CFLAGS+= -I${GCCDIR}/cp -I.
DPADD+= ${LIBCC_INT}
LDADD+= ${LIBCC_INT}
-CLEANFILES= parse.c parse.h y.tab.c y.tab.h cfns.h
+CLEANFILES= parse-%DIKED.c parse.c parse.h y.tab.h cfns.h
-.ORDER: parse.c parse.h
-parse.c: parse.y
- ${YACC} ${YFLAGS} ${GCCDIR}/cp/${.TARGET:S/c$/y/}
+parse-%DIKED.c y.tab.h: parse.c
sed -e "s/malloc/xmalloc/g" \
-e "s/realloc/xrealloc/g" \
- y.tab.c >${.TARGET}
+ ${.ALLSRC:M*c} > ${.TARGET}
-parse.h: parse.c y.tab.h
+parse.h: y.tab.h
cp -pf y.tab.h ${.TARGET}
grep '^#define[ ]*YYEMPTY' ${.TARGET:S/h$/c/} >>${.TARGET}
-cfns.h:
+cfns.h: cfns.gperf
gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' \
- ${GCCDIR}/cp/cfns.gperf > ${.TARGET}
+ ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud