summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cc
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1997-10-26 22:48:31 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1997-10-26 22:48:31 +0000
commit618e3470d2947648d01b2a3cd70591e316377497 (patch)
treedc3e16725ef8a43ec4d40e7152442e9e974cdec2 /gnu/usr.bin/cc
parentcdd618b97ce9c59de6e1b8df2c376bad7eb2bf7b (diff)
Notes
Diffstat (limited to 'gnu/usr.bin/cc')
-rw-r--r--gnu/usr.bin/cc/cc1plus/Makefile5
-rw-r--r--gnu/usr.bin/cc/cc_tools/Makefile13
-rw-r--r--gnu/usr.bin/cc/cpp/Makefile3
3 files changed, 16 insertions, 5 deletions
diff --git a/gnu/usr.bin/cc/cc1plus/Makefile b/gnu/usr.bin/cc/cc1plus/Makefile
index 9bd0db6fa490..e3817d8ac0bc 100644
--- a/gnu/usr.bin/cc/cc1plus/Makefile
+++ b/gnu/usr.bin/cc/cc1plus/Makefile
@@ -1,12 +1,12 @@
#
-# $Id: Makefile,v 1.9 1996/09/21 14:27:32 peter Exp $
+# $Id: Makefile,v 1.9.2.1 1997/06/29 06:05:07 pst Exp $
#
#First, so that we get cp/tree.c and cp/expr.c instead of the C version
.PATH: ${.CURDIR}/../../../../contrib/gcc/cp
PROG = cc1plus
-SRCS = parse.c \
+SRCS = parse.c parse.h \
call.c class.c cvt.c decl.c decl2.c edsel.c errfn.c \
error.c except.c expr.c gc.c init.c lex.c method.c pt.c \
ptree.c repo.c search.c sig.c spew.c tree.c typeck.c typeck2.c xref.c
@@ -17,6 +17,7 @@ DPADD+= ${LIBCC_INT}
LDADD+= ${LIBCC_INT}
CFLAGS+= -I. # I mean it.
+.ORDER: parse.c parse.h
parse.c parse.h: parse.y
${BISON} -d ${GCCDIR}/cp/parse.y -o parse.c
grep '^#define[ ]*YYEMPTY' parse.c >>parse.h
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile
index 6b0c8623c4e8..16b7ea33e198 100644
--- a/gnu/usr.bin/cc/cc_tools/Makefile
+++ b/gnu/usr.bin/cc/cc_tools/Makefile
@@ -1,5 +1,5 @@
#
-# $Id$
+# $Id: Makefile,v 1.1 1996/09/19 15:47:16 peter Exp $
#
#
@@ -26,8 +26,9 @@ SRCS+= bc-$i.h
.endfor
+.ORDER: bi-parser.c bi-parser.h
bi-parser.c bi-parser.h: bi-parser.y
- ${BISON} ${BISONFLAGS} -d ${.ALLSRC} -o ${.TARGET}
+ ${BISON} ${BISONFLAGS} -d ${.ALLSRC} -o bi-parser.c
SRCS+= bi-parser.c bi-parser.h
@@ -82,6 +83,7 @@ SRCS+= hash.h
#-----------------------------------------------------------------------
# C parser
+.ORDER: c-parse.c c-parse.h
c-parse.c c-parse.h: c-parse.in
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
-e "/^ifc$$/d" -e "/^end ifc$$/d" \
@@ -94,6 +96,7 @@ CLEANFILES+= c-parse.y # insurance
#-----------------------------------------------------------------------
# objc parser
+.ORDER: objc-parse.c objc-parse.h
objc-parse.c objc-parse.h: c-parse.in
sed -e "/^ifc$$/,/^end ifc$$/d" \
-e "/^ifobjc$$/d" -e "/^end ifobjc$$/d" \
@@ -115,6 +118,12 @@ CLEANFILES+= ${SRCS}
#-----------------------------------------------------------------------
all: ${BINFORMAT} ${SRCS}
+#-----------------------------------------------------------------------
+# Make 'depend' in compat mode
+.if make(depend)
+.SINGLESHELL:
+.endif
+
beforedepend: ${BINFORMAT}
#-----------------------------------------------------------------------
diff --git a/gnu/usr.bin/cc/cpp/Makefile b/gnu/usr.bin/cc/cpp/Makefile
index 8ffd1ab31f4f..6094ecea478e 100644
--- a/gnu/usr.bin/cc/cpp/Makefile
+++ b/gnu/usr.bin/cc/cpp/Makefile
@@ -1,5 +1,5 @@
#
-# $Id: Makefile,v 1.6 1996/09/23 04:14:30 peter Exp $
+# $Id: Makefile,v 1.7 1996/09/23 16:12:38 bde Exp $
#
PROG = cpp
@@ -9,6 +9,7 @@ SRCS+= obstack.c version.c
MAN1= cccp.1
MLINKS= cccp.1 cpp.1
+.ORDER: cexp.c cexp.h
cexp.c cexp.h: cexp.y
${BISON} -d ${GCCDIR}/cexp.y -o cexp.c