aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc/cc1obj/Makefile
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-05-13 03:27:03 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-05-13 03:27:03 +0000
commit6677f3e022fdb01b8e13baf1705ab3024684c91e (patch)
tree6eea9fac75fc54638a3a34609d1dc66e991cd2a2 /gnu/usr.bin/cc/cc1obj/Makefile
parent26a9c7b7e1e82804f3da47e90ec13ac67f727a27 (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/cc/cc1obj/Makefile')
-rw-r--r--gnu/usr.bin/cc/cc1obj/Makefile21
1 files changed, 11 insertions, 10 deletions
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
#-----------------------------------------------------------------------