aboutsummaryrefslogtreecommitdiff
path: root/gcc/Makefile.in
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>2000-07-29 19:33:55 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-07-29 19:33:55 +0000
commitb3e247b8117c62d94da6298ddfc725fe7132bbb6 (patch)
tree33ddfaf9d38cf3a88ec0f69e497676ebb4d88510 /gcc/Makefile.in
parentc161c99b4362f35c5b6b763d84ff829a7ea1e3a6 (diff)
downloadgcc-b3e247b8117c62d94da6298ddfc725fe7132bbb6.zip
gcc-b3e247b8117c62d94da6298ddfc725fe7132bbb6.tar.gz
gcc-b3e247b8117c62d94da6298ddfc725fe7132bbb6.tar.bz2
Makefile.in: Generate objc parser along with the C parser.
* Makefile.in: Generate objc parser along with the C parser. * objc/Make-lang.in: Remove generation of objc parser. From-SVN: r35330
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r--gcc/Makefile.in17
1 files changed, 14 insertions, 3 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 83213d1..b2414e7 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1077,15 +1077,23 @@ c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h $(GGC_H) \
$(srcdir)/c-parse.h c-tree.h c-common.h input.h flags.h system.h \
toplev.h output.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
-$(srcdir)/c-parse.h: $(srcdir)/c-parse.c
-$(srcdir)/c-parse.c: $(srcdir)/c-parse.y
+
+$(srcdir)/c-parse.h $(srcdir)/c-parse.c $(srcdir)/objc-parse.c: \
+ $(srcdir)/c-parse.y $(srcdir)/objc-parse.y
cd $(srcdir); $(BISON) $(BISONFLAGS) -d -o c-parse.c c-parse.y
-$(srcdir)/c-parse.y: c-parse.in
+ cd $(srcdir); $(BISON) $(BISONFLAGS) -o objc-parse.c objc-parse.y
+
+$(srcdir)/c-parse.y $(srcdir)/objc-parse.y: c-parse.in
echo '/*WARNING: This file is automatically generated!*/' >tmp-c-parse.y
sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
-e "/^ifc$$/d" -e "/^end ifc$$/d" \
$(srcdir)/c-parse.in >>tmp-c-parse.y
$(SHELL) $(srcdir)/move-if-change tmp-c-parse.y $(srcdir)/c-parse.y
+ echo '/*WARNING: This file is automatically generated!*/' >tmp-objc-prs.y
+ sed -e "/^ifc$$/,/^end ifc$$/d" \
+ -e "/^ifobjc$$/d" -e "/^end ifobjc$$/d" \
+ $(srcdir)/c-parse.in >>tmp-objc-prs.y
+ $(SHELL) $(srcdir)/move-if-change tmp-objc-prs.y $(srcdir)/objc-parse.y
$(srcdir)/c-gperf.h: c-parse.gperf
gperf -L C -F ', 0, 0' -p -j1 -i 1 -g -o -t -G -N is_reserved_word \
@@ -2186,6 +2194,7 @@ distclean: clean $(INTL_DISTCLEAN) lang.distclean
-rm -f gthr-default.h
-rm -f */stage1 */stage2 */stage3 */stage4 */include
-rm -f c-parse.output
+ -rm -f objc-parse.output
-rm -f *.asm
-rm -f float.h
-rm -f site.exp site.bak testsuite/site.exp testsuite/site.bak
@@ -2221,6 +2230,8 @@ maintainer-clean:
$(MAKE) INTL_DISTCLEAN= INTL_CLEAN= INTL_MOSTLYCLEAN= \
intl.maintainer-clean lang.maintainer-clean distclean
-rm -f c-parse.y c-gperf.h
+ -rm -f objc-parse.y
+ -rm -f objc-parse.c objc-parse.output
-rm -f c-parse.c c-parse.h c-parse.output TAGS
-rm -f cpp.info* cpp.??s cpp.*aux
-rm -f gcc.info* gcc.??s gcc.*aux