summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/cc/cc1
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-05-10 08:54:50 +0000
committerobrien <obrien@FreeBSD.org>2002-05-10 08:54:50 +0000
commitdfe16a29faf2eed114d592e51438cf098a82caba (patch)
tree4267ea6c3a5e7816a537d642d12e65f950b34542 /gnu/usr.bin/cc/cc1
parent92c7caae40522c9b713128ad465b033c2e16ce8b (diff)
downloadFreeBSD-src-dfe16a29faf2eed114d592e51438cf098a82caba.zip
FreeBSD-src-dfe16a29faf2eed114d592e51438cf098a82caba.tar.gz
Bmake bits for Gcc 3.1.
Partially made possible by: Wilko.Bulte@compaq.com
Diffstat (limited to 'gnu/usr.bin/cc/cc1')
-rw-r--r--gnu/usr.bin/cc/cc1/Makefile20
1 files changed, 11 insertions, 9 deletions
diff --git a/gnu/usr.bin/cc/cc1/Makefile b/gnu/usr.bin/cc/cc1/Makefile
index 210cf15..ad7bc6a 100644
--- a/gnu/usr.bin/cc/cc1/Makefile
+++ b/gnu/usr.bin/cc/cc1/Makefile
@@ -2,15 +2,13 @@
.include "../Makefile.inc"
-.PATH: ${GCCDIR}
+.PATH: ../cc_tools ${GCCDIR}
PROG= cc1
-SRCS= c-parse.y c-lang.c
-# Ugh, compiled twice...
-SRCS+= c-decl.c c-lex.c
+SRCS= main.c c-parse.c c-lang.c c-decl.c
BINDIR= /usr/libexec
NOMAN= 1
-NOSHARED=yes
+NOSHARED?=yes
CFLAGS+= -I.
@@ -19,13 +17,17 @@ LDADD+= ${LIBCC_INT}
#-----------------------------------------------------------------------
# C parser
-c-parse.y: c-parse.in
+.ORDER: c-parse.c
+c-parse.c: c-parse.in
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
-e "/^ifc$$/d" \
-e "/^end ifc$$/d" \
- ${.ALLSRC} > ${.TARGET}
+ ${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
-CLEANFILES+= c-parse.y
-#-----------------------------------------------------------------------
+CLEANFILES+= c-parse.c c-parse.y # insurance
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud