diff options
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 177 |
1 files changed, 85 insertions, 92 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 902c9a09c35..ea37a4eaeb9 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1,5 +1,5 @@ # Makefile for GNU C compiler. -# Copyright (C) 1987, 88, 90-96, 1997 Free Software Foundation, Inc. +# Copyright (C) 1987, 88, 90-97, 1998 Free Software Foundation, Inc. #This file is part of GNU CC. @@ -234,6 +234,8 @@ libsubdir = $(libdir)/gcc-lib/$(target_alias)/$(version) # Directory in which the compiler finds g++ includes. gxx_include_dir= @gxx_include_dir@ # Directory in which the old g++ header files may be found. +# The reason we use $(libdir)/g++-include rather than using libsubdir +# is for compatibility with older versions of libg++. old_gxx_include_dir= $(libdir)/g++-include # Directory to search for site-specific includes. includedir = $(local_prefix)/include @@ -612,9 +614,9 @@ CCCP=cccp STAGESTUFF = *$(objext) insn-flags.h insn-config.h insn-codes.h \ insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \ insn-attr.h insn-attrtab.c insn-opinit.c genrtl.c genrtl.h \ - stamp-flags stamp-config stamp-codes stamp-mlib \ - stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \ - stamp-attr stamp-attrtab stamp-opinit stamp-crt stamp-crtS stamp-crt0 \ + s-flags s-config s-codes s-mlib \ + s-output s-recog s-emit s-extract s-peep \ + s-attr s-attrtab s-opinit s-crt s-crtS s-crt0 \ genemit$(build_exeext) genoutput$(build_exeext) genrecog$(build_exeext) \ genextract$(build_exeext) genflags$(build_exeext) gencodes$(build_exeext) \ genconfig$(build_exeext) genpeep$(build_exeext) genattrtab$(build_exeext) \ @@ -1093,8 +1095,8 @@ libgcc.a: $(LIBGCC1) $(LIBGCC2) # Use the genmultilib shell script to generate the information the gcc # driver program needs to select the library directory based on the # switches. -multilib.h: stamp-mlib; @true -stamp-mlib: $(srcdir)/genmultilib Makefile +multilib.h: s-mlib; @true +s-mlib: $(srcdir)/genmultilib Makefile $(SHELL) $(srcdir)/genmultilib \ "$(MULTILIB_OPTIONS)" \ "$(MULTILIB_DIRNAMES)" \ @@ -1102,7 +1104,7 @@ stamp-mlib: $(srcdir)/genmultilib Makefile "$(MULTILIB_EXCEPTIONS)" \ "$(MULTILIB_EXTRA_OPTS)" > tmp-mlib.h $(srcdir)/move-if-change tmp-mlib.h multilib.h - touch stamp-mlib + touch s-mlib # Build multiple copies of libgcc.a, one for each target switch. stmp-multilib: $(LIBGCC1) libgcc2.c libgcc2.ready $(CONFIG_H) \ @@ -1189,9 +1191,9 @@ $(T)crtend.o: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \ # On some systems we also want to install versions of these files # compiled using PIC for use in shared libraries. -crtbeginS.o crtendS.o: stamp-crtS ; @true +crtbeginS.o crtendS.o: s-crtS ; @true -stamp-crtS: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \ +s-crtS: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \ defaults.h frame.h gbl-ctors.h $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \ -DCRT_BEGIN -finhibit-size-directive -fno-inline-functions \ @@ -1200,18 +1202,18 @@ stamp-crtS: crtstuff.c $(GCC_PASSES) $(CONFIG_H) \ $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(CRTSTUFF_T_CFLAGS_S) \ -DCRT_END -finhibit-size-directive -fno-inline-functions \ -g0 -c $(srcdir)/crtstuff.c -o crtendS$(objext) - touch stamp-crtS + touch s-crtS # Compile the start modules crt0.o and mcrt0.o that are linked with every program -crt0.o: stamp-crt0 ; @true -mcrt0.o: stamp-crt0; @true +crt0.o: s-crt0 ; @true +mcrt0.o: s-crt0; @true -stamp-crt0: $(CRT0_S) $(MCRT0_S) $(GCC_PASSES) $(CONFIG_H) +s-crt0: $(CRT0_S) $(MCRT0_S) $(GCC_PASSES) $(CONFIG_H) $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(CRT0STUFF_T_CFLAGS) \ -o crt0.o -c $(CRT0_S) $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(CRT0STUFF_T_CFLAGS) \ -o mcrt0.o -c $(MCRT0_S) - touch stamp-crt0 + touch s-crt0 # # Compiling object files from source files. @@ -1274,9 +1276,9 @@ tlink.o: tlink.c $(DEMANGLE_H) hash.h $(CONFIG_H) system.h hash.o: hash.c hash.h system.h cplus-dem.o: cplus-dem.c $(DEMANGLE_H) -underscore.c: stamp-under ; @true +underscore.c: s-under ; @true -stamp-under: $(GCC_PASSES) +s-under: $(GCC_PASSES) echo "int xxy_us_dummy;" >tmp-dum.c $(GCC_FOR_TARGET) -S tmp-dum.c echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c @@ -1287,7 +1289,7 @@ stamp-under: $(GCC_PASSES) fi $(srcdir)/move-if-change tmp-under.c underscore.c -rm -f tmp-dum.c tmp-dum.s - touch stamp-under + touch s-under # A file used by all variants of C. @@ -1327,6 +1329,7 @@ stor-layout.o : stor-layout.c $(CONFIG_H) system.h $(TREE_H) flags.h \ fold-const.o : fold-const.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.o : toplev.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) \ flags.h input.h insn-attr.h xcoffout.h defaults.h output.h \ + insn-codes.h insn-config.h recog.h Makefile \ $(lang_options_files) $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(MAYBE_USE_COLLECT2) \ -DTARGET_NAME=\"$(target_alias)\" \ @@ -1476,7 +1479,7 @@ alloca.o: alloca.c # Each of the other insn-* files is handled by a similar pair of rules. # This causes an anomaly in the results of make -n -# because insn-* is older than stamp-* +# because insn-* is older than s-* # and thus make -n thinks that insn-* will be updated # and force recompilation of things that depend on it. # We use move-if-change precisely to avoid such recompilation. @@ -1488,84 +1491,84 @@ alloca.o: alloca.c # versions of make which don't like empty commands (nothing after the # trailing `;'), we call true for each. -insn-config.h: stamp-config ; @true -stamp-config : $(md_file) genconfig $(srcdir)/move-if-change +insn-config.h: s-config ; @true +s-config : $(md_file) genconfig $(srcdir)/move-if-change ./genconfig $(md_file) > tmp-config.h $(srcdir)/move-if-change tmp-config.h insn-config.h - touch stamp-config + touch s-config -insn-flags.h: stamp-flags ; @true -stamp-flags : $(md_file) genflags $(srcdir)/move-if-change +insn-flags.h: s-flags ; @true +s-flags : $(md_file) genflags $(srcdir)/move-if-change ./genflags $(md_file) > tmp-flags.h $(srcdir)/move-if-change tmp-flags.h insn-flags.h - touch stamp-flags + touch s-flags -insn-codes.h: stamp-codes ; @true -stamp-codes : $(md_file) gencodes $(srcdir)/move-if-change +insn-codes.h: s-codes ; @true +s-codes : $(md_file) gencodes $(srcdir)/move-if-change ./gencodes $(md_file) > tmp-codes.h $(srcdir)/move-if-change tmp-codes.h insn-codes.h - touch stamp-codes + touch s-codes insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h real.h output.h \ insn-config.h insn-flags.h insn-codes.h system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-emit.c -insn-emit.c: stamp-emit ; @true -stamp-emit : $(md_file) genemit $(srcdir)/move-if-change +insn-emit.c: s-emit ; @true +s-emit : $(md_file) genemit $(srcdir)/move-if-change ./genemit $(md_file) > tmp-emit.c $(srcdir)/move-if-change tmp-emit.c insn-emit.c - touch stamp-emit + touch s-emit insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h $(RECOG_H) \ real.h output.h flags.h system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-recog.c -insn-recog.c: stamp-recog ; @true -stamp-recog : $(md_file) genrecog $(srcdir)/move-if-change +insn-recog.c: s-recog ; @true +s-recog : $(md_file) genrecog $(srcdir)/move-if-change ./genrecog $(md_file) > tmp-recog.c $(srcdir)/move-if-change tmp-recog.c insn-recog.c - touch stamp-recog + touch s-recog insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) insn-codes.h insn-flags.h \ insn-config.h flags.h $(RECOG_H) expr.h reload.h system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-opinit.c -insn-opinit.c: stamp-opinit ; @true -stamp-opinit : $(md_file) genopinit $(srcdir)/move-if-change +insn-opinit.c: s-opinit ; @true +s-opinit : $(md_file) genopinit $(srcdir)/move-if-change ./genopinit $(md_file) > tmp-opinit.c $(srcdir)/move-if-change tmp-opinit.c insn-opinit.c - touch stamp-opinit + touch s-opinit insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H) system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-extract.c -insn-extract.c: stamp-extract ; @true -stamp-extract : $(md_file) genextract $(srcdir)/move-if-change +insn-extract.c: s-extract ; @true +s-extract : $(md_file) genextract $(srcdir)/move-if-change ./genextract $(md_file) > tmp-extract.c $(srcdir)/move-if-change tmp-extract.c insn-extract.c - touch stamp-extract + touch s-extract insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h output.h real.h system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-peep.c -insn-peep.c: stamp-peep ; @true -stamp-peep : $(md_file) genpeep $(srcdir)/move-if-change +insn-peep.c: s-peep ; @true +s-peep : $(md_file) genpeep $(srcdir)/move-if-change ./genpeep $(md_file) > tmp-peep.c $(srcdir)/move-if-change tmp-peep.c insn-peep.c - touch stamp-peep + touch s-peep insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \ insn-attr.h insn-config.h system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-attrtab.c -insn-attr.h: stamp-attr ; @true -stamp-attr : $(md_file) genattr $(srcdir)/move-if-change +insn-attr.h: s-attr ; @true +s-attr : $(md_file) genattr $(srcdir)/move-if-change ./genattr $(md_file) > tmp-attr.h $(srcdir)/move-if-change tmp-attr.h insn-attr.h - touch stamp-attr + touch s-attr -insn-attrtab.c: stamp-attrtab ; @true -stamp-attrtab : $(md_file) genattrtab $(srcdir)/move-if-change +insn-attrtab.c: s-attrtab ; @true +s-attrtab : $(md_file) genattrtab $(srcdir)/move-if-change if cmp -s $(PREMADE_ATTRTAB_MD) $(md_file); \ then \ echo Using $(PREMADE_ATTRTAB); \ @@ -1574,28 +1577,28 @@ stamp-attrtab : $(md_file) genattrtab $(srcdir)/move-if-change ./genattrtab $(md_file) > tmp-attrtab.c; \ fi $(srcdir)/move-if-change tmp-attrtab.c insn-attrtab.c - touch stamp-attrtab + touch s-attrtab insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h real.h conditions.h \ hard-reg-set.h insn-config.h insn-flags.h insn-attr.h output.h $(RECOG_H) \ insn-codes.h system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -c insn-output.c -insn-output.c: stamp-output ; @true -stamp-output : $(md_file) genoutput $(srcdir)/move-if-change +insn-output.c: s-output ; @true +s-output : $(md_file) genoutput $(srcdir)/move-if-change ./genoutput $(md_file) > tmp-output.c $(srcdir)/move-if-change tmp-output.c insn-output.c - touch stamp-output + touch s-output genrtl.o : genrtl.c $(CONFIG_H) $(RTL_H) -genrtl.c genrtl.h : stamp-genrtl +genrtl.c genrtl.h : s-genrtl @true # force gnu make to recheck modification times. -stamp-genrtl: gengenrtl $(srcdir)/move-if-change $(RTL_BASE_H) +s-genrtl: gengenrtl $(srcdir)/move-if-change $(RTL_BASE_H) ./gengenrtl tmp-genrtl.h tmp-genrtl.c $(srcdir)/move-if-change tmp-genrtl.h genrtl.h $(srcdir)/move-if-change tmp-genrtl.c genrtl.c - touch stamp-genrtl + touch s-genrtl # # Compile the programs that generate insn-* from the machine description. @@ -1754,8 +1757,6 @@ $(srcdir)/cexp.c: $(srcdir)/cexp.y cd $(srcdir); $(BISON) -o cexp.c cexp.y cccp.o: cccp.c $(CONFIG_H) pcp.h version.c config.status -# The reason we use $(libdir)/g++-include rather than using libsubdir -# is for compatibility with the current version of libg++. $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \ -DGPLUSPLUS_INCLUDE_DIR=\"$(gxx_include_dir)\" \ @@ -1875,7 +1876,7 @@ gcov$(exeext): gcov.o $(LIBDEPS) $(CC) $(ALL_CFLAGS) $(LDFLAGS) gcov.o $(LIBS) -o $@ # # Build the include directory. The stamp files are stmp-* rather than -# stamp-* so that mostlyclean does not force the include directory to +# s-* so that mostlyclean does not force the include directory to # be rebuilt. # Build the include directory except for float.h (which depends upon @@ -2061,14 +2062,10 @@ mostlyclean: lang.mostlyclean # Delete the temp files made in the course of building libgcc.a. -rm -f tmplibgcc* tmpcopy xlimits.h libgcc1-test for name in $(LIB1FUNCS); do rm -f $${name}.c; done -# Delete other temporary files. - -rm -f tmp-float.h tmp-gcc.xtar.gz - -rm -f tmp-foo1 tmp-foo2 tmp-proto.* tmp-unproto.1 tmp-SYSCALLS.s - -rm -f tmp-c-parse.y tmp-gperf.h - -rm -f tmp-specs t-float.h-cross tmp-xlimits.h - -rm -f tmp-fixtmp.c xsys-protos.hT -# Delete the stamp files. - -rm -f stamp-* tmp-* +# Delete other built files. + -rm -f t-float.h-cross xsys-protos.hT fp-bit.c dp-bit.c +# Delete the stamp and temporary files. + -rm -f s-* tmp-* stamp-* stmp-* -rm -f */stamp-* */tmp-* # Delete debugging dump files. -rm -f *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop @@ -2106,8 +2103,7 @@ clean: mostlyclean lang.clean rm -f md ; \ fi # Delete the include directory. - -rm -rf stmp-* include - -rm -f */stmp-* + -rm -rf include # Delete files used by the "multilib" facility (including libgcc subdirs). -rm -f multilib.h tmpmultilib* -if [ "x$(MULTILIB_DIRNAMES)" != x ] ; then \ @@ -2142,7 +2138,7 @@ extraclean: distclean lang.extraclean -rm -f *.dvi *.ps *.oaux *.d *.[zZ] *.gz -rm -f *.tar *.xtar *diff *.diff.* *.tar.* *.xtar.* *diffs -rm -f *lose config/*lose config/*/*lose - -rm -f *.s *.s[0-9] *.i install1.texi config/ChangeLog + -rm -f *.s *.s[0-9] *.i config/ChangeLog -rm -f */=* */"#"* */*~* -rm -f */patch* */*.orig */*.rej -rm -f */*.dvi */*.oaux */*.d */*.[zZ] */*.gz @@ -2516,32 +2512,29 @@ check-g77: testsuite/site.exp # Update the tags table. TAGS: force cd $(srcdir); \ - mkdir temp; \ - mv -f c-parse.[ch] cexp.c =*.[chy] temp; \ + mkdir tmp-tags; \ + mv -f c-parse.[ch] cexp.c =*.[chy] tmp-tags; \ etags *.y *.h *.c; \ - mv temp/* .; \ - rmdir temp - -# Create the distribution tar file. -#dist: gcc-$(version).tar.gz -dist: gcc.xtar.gz + mv tmp-tags/* .; \ + rmdir tmp-tags -gcc.xtar.gz: gcc.xtar - gzip --best < gcc.xtar > tmp-gcc.xtar.gz - mv tmp-gcc.xtar.gz gcc.xtar.gz +# Create the distribution tar.gz file. +dist: tmp-gcc.xtar + gzip --best < tmp-gcc.xtar > tmp-gcc.xtar.gz + mv tmp-gcc.xtar.gz gcc-$(version).tar.gz -#gcc-$(version).tar.gz: gcc-$(version).tar -# gzip < gcc-$(version).tar > gcc-$(version).tar.gz - -#gcc-$(version).tar: -gcc.xtar: distdir +tmp-gcc.xtar: distdir # Make the distribution. - tar -chf gcc.xtar gcc-$(version) + tar -chf tmp-gcc.xtar gcc-$(version) + +distdir-cvs: force + if [ -d $(srcdir)/CVS ]; then cvs -r update; fi # This target exists to do the initial work before the language specific # stuff gets done. distdir-start: doc $(srcdir)/INSTALL $(srcdir)/c-parse.y $(srcdir)/c-gperf.h \ - $(srcdir)/c-parse.c $(srcdir)/cexp.c $(srcdir)/config.in + $(srcdir)/c-parse.c $(srcdir)/cexp.c $(srcdir)/config.in \ + $(srcdir)/bi-parser.h $(srcdir)/bi-parser.c $(srcdir)/version.c TAGS @if grep -s "for version ${mainversion}" gcc.texi > /dev/null; \ then true; \ else echo "You must update the version number in \`gcc.texi'"; sleep 10;\ @@ -2563,7 +2556,7 @@ distdir-start: doc $(srcdir)/INSTALL $(srcdir)/c-parse.y $(srcdir)/c-gperf.h \ done cd config; \ for file in *[0-9a-zA-Z+]; do \ - if test -d $$file && test "$$file" != RCS; then \ + if test -d $$file && test "$$file" != RCS && test "$$file" != CVS; then \ mkdir ../tmp/config/$$file; \ cd $$file; \ for subfile in *[0-9a-zA-Z+]; do \ @@ -2590,21 +2583,21 @@ distdir-finish: # Get rid of everything we don't want in the distribution. We'd want # this to use Makefile.in, but it doesn't have the `lang.foo' targets # expanded. - cd gcc-$(version); make extraclean + cd gcc-$(version); make extraclean VERSION_DEP= -distdir: distdir-start lang.distdir distdir-finish +distdir: distdir-cvs distdir-start lang.distdir distdir-finish # make diff oldversion=M.N # creates a diff file between an older distribution and this one. # The -P option assumes this is GNU diff. diff: diff -rc2P -x c-parse.y -x c-parse.c -x c-parse.h -x c-gperf.h \ - -x cexp.c -x objc-parse.y -x objc-parse.c \ - -x TAGS \ + -x cexp.c -x bi-parser.c -x bi-parser.h -x TAGS -x INSTALL \ + -x configure -x config.in \ -x "gcc.??" -x "gcc.??s" -x gcc.aux -x "gcc.info*" \ -x "cpp.??" -x "cpp.??s" -x cpp.aux -x "cpp.info*" \ $(LANG_DIFF_EXCLUDES) \ - gcc-$(oldversion) gcc-$(version) > diffs + gcc-$(oldversion) gcc-$(version) > gcc-$(oldversion)-$(version).diff bootstrap bootstrap-lean: force # Only build the C compiler for stage1, because that is the only one that |