diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2002-05-13 01:54:26 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2002-05-13 01:54:26 +0000 |
| commit | 5b3bcd0c77ae5719456cf29499945639e5aadbe4 (patch) | |
| tree | c1a04e31571f69147d52dd2fdf059fef1277b2bb | |
| parent | 381ee4c2e8419332cd962bcb6602b605a0d1eb24 (diff) | |
Notes
| -rw-r--r-- | gnu/usr.bin/cc/cc1plus/Makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gnu/usr.bin/cc/cc1plus/Makefile b/gnu/usr.bin/cc/cc1plus/Makefile index 44d28ca1dbdc..094cf59fc962 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> |
