diff options
author | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-03-28 22:34:21 +0000 |
---|---|---|
committer | dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-03-28 22:34:21 +0000 |
commit | 2b55270a150118046e3a1a31135f5c89741aacb9 (patch) | |
tree | 9c394d55838b02cd2484495777d2d9782b2fc3ad /gcc/Makefile.in | |
parent | e104b27e60a91fb9eeeec8d72c5725605c9615c6 (diff) |
* Makefile.in (LANGUAGES): Add gcov.
(OBJS): Add profile.o.
(STAGESTUFF): Add gcov.
(profile.o, gcov.o, gcov): Add rules to build them.
(cpp.info, gcc.info, gcc.dvi): Add gcov.texi.
(install-common): Install gcov.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@13810 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r-- | gcc/Makefile.in | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 39f51534cda..ddd75e0f2a0 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -35,7 +35,7 @@ SUBDIRS = # Selection of languages to be made. # This is overridden by configure. -LANGUAGES = c objective-c proto +LANGUAGES = c objective-c proto gcov # Selection of languages to be made during stage1 build. # This is overridden by configure. @@ -542,6 +542,7 @@ OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \ regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o \ insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \ insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o \ + profile.o \ insn-attrtab.o $(out_object_file) getpwd.o convert.o $(EXTRA_OBJS) # GEN files are listed separately, so they can be built before doing parallel @@ -570,6 +571,7 @@ STAGESTUFF = *$(objext) insn-flags.h insn-config.h insn-codes.h \ $(CCCP)$(exeext) cc1obj$(exeext) enquire$(exeext) \ protoize$(exeext) unprotoize$(exeext) \ specs collect2$(exeext) $(USE_COLLECT2) underscore.c \ + gcov$(exeext) *.bp \ *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop \ *.dbr *.jump2 *.sched *.cse2 *.sched2 *.stack \ *.[si] \ @@ -1298,6 +1300,8 @@ stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \ insn-config.h recog.h +profile.o : profile.c $(CONFIG_H) $(RTL_H) flags.h insn-flags.h gcov-io.h \ + tree.h output.h loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \ insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \ @@ -1819,6 +1823,11 @@ test-protoize-simple: ./protoize ./unprotoize $(GCC_PASSES) @echo Expect zero differences. diff $(srcdir)/protoize.c tmp-proto.c | cat -rm -f tmp-proto.[cs] tmp-proto$(objext) + +gcov.o: gcov.c gcov-io.h + +gcov: 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 @@ -1967,14 +1976,14 @@ $(srcdir)/cpp.info: cpp.texi cd $(srcdir); $(MAKEINFO) $(MAKEINFOFLAGS) cpp.texi $(srcdir)/gcc.info: gcc.texi extend.texi install.texi invoke.texi \ - md.texi rtl.texi tm.texi + md.texi rtl.texi tm.texi gcov.texi cd $(srcdir); $(MAKEINFO) $(MAKEINFOFLAGS) gcc.texi dvi: $(srcdir)/gcc.dvi $(srcdir)/cpp.dvi lang.dvi # This works with GNU Make's default rule. $(srcdir)/gcc.dvi: gcc.texi extend.texi install.texi invoke.texi \ - md.texi rtl.texi tm.texi + md.texi rtl.texi tm.texi gcov.texi $(TEXI2DVI) $< # This works with GNU Make's default rule. @@ -2041,6 +2050,7 @@ mostlyclean: bytecode.mostlyclean lang.mostlyclean -rm -f gcc.vrs gcc.kys gcc.tps gcc.pgs gcc.fns # Delete core dumps. -rm -f core */core + -rm -f *.bp */*.bp # Delete all files made by compilation # that don't exist in the distribution. @@ -2204,6 +2214,13 @@ install-common: native installdirs $(EXTRA_PARTS) lang.install-common fi -rm -f $(libsubdir)/cpp$(exeext) $(INSTALL_PROGRAM) cpp$(exeext) $(libsubdir)/cpp$(exeext) +# Install gcov if it was compiled. + -if [ -f gcov$(exeext) ]; \ + then \ + rm -f $(bindir)/gcov$(exeext); \ + $(INSTALL_PROGRAM) gcov$(exeext) $(bindir)/gcov$(exeext); \ + chmod a+x $(bindir)/gcov$(exeext); \ + fi # Install the driver program as $(target_alias)-gcc # and also as either gcc (if native) or $(tooldir)/bin/gcc. |