diff options
author | Kelley Cook <kcook@gcc.gnu.org> | 2004-01-15 04:02:24 +0000 |
---|---|---|
committer | R. Kelley Cook <kcook@gcc.gnu.org> | 2004-01-15 04:02:24 +0000 |
commit | 03787dfd815361040684ba2b4dab504968730201 (patch) | |
tree | ee011f5091b62b8a6163fe4051e3b30fb83b3941 /gcc/treelang/Make-lang.in | |
parent | 04ab46a41dc1618a0bf9cb8d21ef8cb50046e747 (diff) | |
download | gcc-03787dfd815361040684ba2b4dab504968730201.zip gcc-03787dfd815361040684ba2b4dab504968730201.tar.gz gcc-03787dfd815361040684ba2b4dab504968730201.tar.bz2 |
re PR bootstrap/12744 (A GCC release tarball can no longer be built without bison/flex)
gcc/
2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
PR bootstrap/12744
* configure.in: Revamp enable-generated-files-in-srcdir rule to define
GENINSRC and not parsedir. Define srcextra as a langhook.
* configure: Regenerate.
* Makefile.in: Suppress default .l.c rule. Don't substitute
parsedir and delete all references throughout. Conditionally define
rule for srcextra dependent on GENINSRC.
(stmp-docobjdir): Delete.
(c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
(srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
and gengtype-yacc.h back to source directory.
(maintainer-clean): Delete all parse files in source directory.
(distclean): Delete generated files.
* objc/Make-lang.in (objc-parse.o): Use implicit build rule.
(objc-parse.c, objc-parse.y): Don't use parsedir.
(objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
directory if requested.
(po-generated): Don't use parsedir.
(objc.maintainer-clean): Delete above files from source directory.
gcc/ada/
2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in (ada.srcextra): Dummy entry.
gcc/cp/
2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in (c++.srcextra): Dummy entry.
gcc/f/
2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in (f77.srcextra): Dummy entry.
gcc/java/
2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in (parse.c, parse-scan.c): Always build in doc directory.
(java.srcextra): Copy above back to source directory if requested.
(po-generated): Delete reference to $(parsedir).
(java/parse.o, java/parse-scan.o): Delete reference to $(parsedir).
Use implicit rule.
gcc/treelang/
2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in (TREE_GENERATED): Delete reference to $(parsedir).
(treelang/parse.o, treelang/lex.o): Look for sources in build
directory. Use implicit rule.
(treelang/parse.c, treelang/parse.h treelang/lex.c): Always build in
doc directory.
(treelang.srcextra): Copy above back to source directory if requested.
From-SVN: r75903
Diffstat (limited to 'gcc/treelang/Make-lang.in')
-rw-r--r-- | gcc/treelang/Make-lang.in | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/gcc/treelang/Make-lang.in b/gcc/treelang/Make-lang.in index 00816d0..1cb438a 100644 --- a/gcc/treelang/Make-lang.in +++ b/gcc/treelang/Make-lang.in @@ -57,10 +57,7 @@ GCC_EXTRAS = -B./ -B$(build_tooldir)/bin/ -isystem $(build_tooldir)/include # GCC_FOR_TREELANG = ./xgcc $(GCC_EXTRAS) -TREE_GENERATED = $(parsedir)/treelang/lex.c $(parsedir)/treelang/parse.c \ - $(parsedir)/treelang/parse.h $(parsedir)/treelang/parse.output \ - $(parsedir)/treelang/TAGS $(parsedir)/treelang/TAGS.sub - +TREE_GENERATED = lex.c parse.c parse.h parse.output TREE_EXES = tree1 #no -Wtraditional warnings, allow long long @@ -104,33 +101,30 @@ treelang/tree1.o: treelang/tree1.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ treelang/treetree.o: treelang/treetree.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) $(TREE_H) flags.h output.h $(RTL_H) $(GGC_H) toplev.h \ varray.h $(LANGHOOKS_DEF_H) langhooks.h treelang/treelang.h input.h \ - treelang/treetree.h $(parsedir)/treelang/parse.h + treelang/treetree.h treelang/parse.h treelang/tree-convert.o: treelang/tree-convert.c $(CONFIG_H) $(SYSTEM_H) \ coretypes.h diagnostic.h $(TREE_H) flags.h toplev.h langhooks.h $(TM_H) -treelang/parse.o: $(parsedir)/treelang/parse.c $(CONFIG_H) $(SYSTEM_H) \ - coretypes.h $(TM_H) diagnostic.h treelang/treelang.h input.h \ - treelang/treetree.h - $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(parsedir)/treelang/parse.c $(OUTPUT_OPTION) +treelang/parse.o: treelang/parse.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ + $(TM_H) diagnostic.h treelang/treelang.h input.h treelang/treetree.h -treelang/lex.o: $(parsedir)/treelang/lex.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ +treelang/lex.o: treelang/lex.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ $(TM_H) diagnostic.h $(TREE_H) treelang/treelang.h input.h \ - $(parsedir)/treelang/parse.h - $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ - $(parsedir)/treelang/lex.c $(OUTPUT_OPTION) + treelang/parse.h # generated files the files from lex and yacc are put into the source # directory in case someone wants to build but does not have # lex/yacc -$(parsedir)/treelang/lex.c: $(srcdir)/treelang/lex.l - $(LEX) $(LEXFLAGS) -o$(parsedir)/treelang/lex.c $(srcdir)/treelang/lex.l +treelang.srcextra: treelang/parse.c treelang/parse.h treelang/lex.c + -cp -p $^ $(srcdir)/treelang + +treelang/lex.c: treelang/lex.l + -$(FLEX) $(FLEXFLAGS) -o$@ $< -$(parsedir)/treelang/parse.c $(parsedir)/treelang/parse.h: $(srcdir)/treelang/parse.y - $(BISON) $(BISONFLAGS) -v --defines \ - --output=$(parsedir)/treelang/parse.c $(srcdir)/treelang/parse.y +treelang/parse.c treelang/parse.h treelang/parse.output: treelang/parse.y + -$(BISON) $(BISONFLAGS) -v --defines --output=treelang/parse.c $< # -v |