From 6677f3e022fdb01b8e13baf1705ab3024684c91e Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 13 May 2002 03:27:03 +0000 Subject: 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. --- gnu/usr.bin/cc/cc1obj/Makefile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'gnu/usr.bin/cc/cc1obj/Makefile') diff --git a/gnu/usr.bin/cc/cc1obj/Makefile b/gnu/usr.bin/cc/cc1obj/Makefile index 9258d0ead18ea..d4ecd8cf46085 100644 --- a/gnu/usr.bin/cc/cc1obj/Makefile +++ b/gnu/usr.bin/cc/cc1obj/Makefile @@ -2,10 +2,10 @@ .include "../Makefile.inc" -.PATH: ../cc_tools ${GCCDIR}/objc ${GCCDIR} +.PATH: ${GCCDIR}/objc ${GCCDIR} PROG= cc1obj -SRCS= objc-parse.c objc-act.c objc-lang.c main.c c-decl.c +SRCS= objc-parse+DIKED.c objc-act.c objc-lang.c main.c c-decl.c BINDIR= /usr/libexec NOMAN= 1 NOSHARED?=yes @@ -17,18 +17,19 @@ LDADD+= ${LIBCC_INT} #----------------------------------------------------------------------- # objc parser -.ORDER: objc-parse.c -objc-parse.c: c-parse.in +objc-parse+DIKED.c: objc-parse.c + sed -e "s/malloc/xmalloc/g" \ + -e "s/realloc/xrealloc/g" \ + ${.ALLSRC} > ${.TARGET} + +objc-parse.y: c-parse.in sed -e "/^ifc$$/,/^end ifc$$/d" \ -e "/^ifobjc$$/d" \ -e "/^end ifobjc$$/d" \ - ${GCCDIR}/c-parse.in > objc-parse.y - ${YACC} -o objc-parse.c.in objc-parse.y - sed -e "s/malloc/xmalloc/g" \ - -e "s/realloc/xrealloc/g" \ - objc-parse.c.in >objc-parse.c + ${.ALLSRC} > ${.TARGET} -CLEANFILES= objc-parse.c objc-parse.y +CLEANFILES= objc-parse+DIKED.c objc-parse.c objc-parse.y +CLEANFILES+= y.tab.h # we don't use it, but the system YACC rules are naive #----------------------------------------------------------------------- -- cgit v1.3