X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gprof%2FMakefile.am;h=0540793a9998148e209bd3ab5eafd7e3a553fc7f;hb=569283d40e3546979fd7c222c61408dd107de32b;hp=1d3d3ca90277ff24863c8de4678f87fb0dad0b27;hpb=500b1f4473a4599549123ebc9347f57f83afc9d3;p=deliverable%2Fbinutils-gdb.git diff --git a/gprof/Makefile.am b/gprof/Makefile.am index 1d3d3ca902..0540793a99 100644 --- a/gprof/Makefile.am +++ b/gprof/Makefile.am @@ -1,7 +1,25 @@ ## Process this file with automake to generate Makefile.in - -AUTOMAKE_OPTIONS = cygnus +# +# Copyright 2012 Free Software Foundation +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING3. If not see +# . +# + +AUTOMAKE_OPTIONS = 1.11 foreign no-dist no-texinfo.tex ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd +TEXINFO_TEX = ../texinfo/texinfo.tex SUFFIXES = .m @@ -15,9 +33,7 @@ WARN_CFLAGS = @WARN_CFLAGS@ NO_WERROR = @NO_WERROR@ AM_CFLAGS = $(WARN_CFLAGS) -MKDEP = gcc -MM - -INCLUDES = -DDEBUG -I../bfd -I$(srcdir)/../include \ +AM_CPPFLAGS = -DDEBUG -I../bfd -I$(srcdir)/../include \ -I$(srcdir)/../bfd @INCINTL@ -I. \ -DLOCALEDIR="\"$(datadir)/locale\"" @@ -42,6 +58,10 @@ EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS) diststuff: $(BUILT_SOURCES) info $(man_MANS) +# We extract version from bfd/configure.in, make sure to rerun configure +# when BFD's version changes. +CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in + # This empty rule is a hack against gmake patched by Apple. %.o:%.m @@ -83,146 +103,6 @@ gprof.1: $(srcdir)/gprof.texi config.texi (rm -f $@.T$$$$ && exit 1) rm -f gprof.pod -.PHONY: install-pdf install-pdf-am install-pdf-recursive - -pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`; - -install-pdf: install-pdf-recursive install-pdf-am - -install-pdf-am: $(PDFS) - @$(NORMAL_INSTALL) - test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)" - @list='$(PDFS)'; for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f=$(pdf__strip_dir) \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \ - done - -install-pdf-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -.PHONY: install-html install-html-am install-html-recursive - -html__strip_dir = `echo $$p | sed -e 's|^.*/||'`; - -install-html: install-html-recursive install-html-am - -install-html-am: $(HTMLS) - @$(NORMAL_INSTALL) - test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)" - @list='$(HTMLS)'; for p in $$list; do \ - if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \ - f=$(html__strip_dir) \ - if test -d "$$d$$p"; then \ - echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \ - $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ - echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ - else \ - echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ - $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ - fi; \ - done - -install-html-recursive: - @failcom='exit 1'; \ - for f in x $$MAKEFLAGS; do \ - case $$f in \ - *=* | --[!k]*);; \ - *k*) failcom='fail=yes';; \ - esac; \ - done; \ - dot_seen=no; \ - target=`echo $@ | sed s/-recursive//`; \ - list='$(SUBDIRS)'; for subdir in $$list; do \ - echo "Making $$target in $$subdir"; \ - if test "$$subdir" = "."; then \ - dot_seen=yes; \ - local_target="$$target-am"; \ - else \ - local_target="$$target"; \ - fi; \ - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || eval $$failcom; \ - done; \ - if test "$$dot_seen" = "no"; then \ - $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ - fi; test -z "$$fail" - -# We want install to imply install-info as per GNU standards, despite the -# cygnus option. -install-data-local: install-info - -# Targets to rebuild dependencies in this Makefile. -# Have to get rid of DEP1 here so that "$?" later includes all sources. -DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h - rm -f DEP1 - $(MAKE) MKDEP="$(MKDEP)" DEP1 - sed -f dep.sed < DEP1 > DEPA - echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA - if grep ' /' DEPA > /dev/null 2> /dev/null; then \ - echo 'make DEP failed!'; exit 1; \ - else \ - mv -f DEPA $@; \ - fi - -DEP1: $(gprof_SOURCES) - echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2 - echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2 - $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2 - mv -f DEP2 $@ - -dep.sed: dep-in.sed config.status - objdir=`pwd`; \ - sed <$(srcdir)/dep-in.sed >dep.sed \ - -e 's!@INCDIR@!$(INCDIR)!' \ - -e 's!@BFDDIR@!$(BFDDIR)!' \ - -e 's!@SRCDIR@!$(srcdir)!' \ - -e "s!@OBJDIR@!$${objdir}!" \ - -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!' - -dep: DEP - sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile - cat DEP >> tmp-Makefile - $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile - -dep-in: DEP - sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in - cat DEP >> tmp-Makefile.in - $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in - -dep-am: DEP - sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am - cat DEP >> tmp-Makefile.am - $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am - -.PHONY: dep dep-in dep-am - -CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 - MAINTAINERCLEANFILES = gprof.info # Automake 1.9 will only build info files in the objdir if they are @@ -231,106 +111,3 @@ MAINTAINERCLEANFILES = gprof.info if GENINSRC_NEVER DISTCLEANFILES = gprof.info endif - -# DO NOT DELETE THIS LINE -- mkdep uses it. -# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. -basic_blocks.o: basic_blocks.c gprof.h $(BFDDIR)/sysdep.h \ - ../bfd/config.h $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h \ - $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ - gconfig.h $(INCDIR)/libiberty.h basic_blocks.h corefile.h \ - gmon_io.h gmon_out.h search_list.h source.h symtab.h \ - sym_ids.h -call_graph.o: call_graph.c gprof.h $(BFDDIR)/sysdep.h \ - ../bfd/config.h $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h \ - $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ - gconfig.h search_list.h source.h symtab.h cg_arcs.h \ - call_graph.h corefile.h gmon_io.h gmon_out.h sym_ids.h -cg_arcs.o: cg_arcs.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \ - search_list.h source.h symtab.h call_graph.h cg_arcs.h \ - cg_dfn.h cg_print.h utils.h sym_ids.h -cg_dfn.o: cg_dfn.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \ - search_list.h source.h symtab.h cg_arcs.h cg_dfn.h \ - utils.h -cg_print.o: cg_print.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \ - search_list.h source.h symtab.h cg_arcs.h cg_print.h \ - hist.h utils.h corefile.h -corefile.o: corefile.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \ - search_list.h source.h symtab.h hist.h corefile.h $(INCDIR)/safe-ctype.h -gmon_io.o: gmon_io.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/binary-io.h \ - search_list.h source.h symtab.h cg_arcs.h basic_blocks.h \ - corefile.h call_graph.h gmon_io.h gmon_out.h gmon.h \ - hertz.h hist.h $(INCDIR)/libiberty.h -gprof.o: gprof.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \ - ../bfd/bfdver.h search_list.h source.h symtab.h basic_blocks.h \ - call_graph.h cg_arcs.h cg_print.h corefile.h gmon_io.h \ - hertz.h hist.h sym_ids.h $(INCDIR)/demangle.h -hertz.o: hertz.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h hertz.h -hist.o: hist.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \ - search_list.h source.h symtab.h corefile.h gmon_io.h \ - gmon_out.h hist.h sym_ids.h utils.h -source.o: source.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \ - search_list.h source.h -search_list.o: search_list.c gprof.h $(BFDDIR)/sysdep.h \ - ../bfd/config.h $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h \ - $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ - gconfig.h $(INCDIR)/libiberty.h search_list.h -symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \ - source.h symtab.h cg_arcs.h corefile.h -sym_ids.o: sym_ids.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \ - $(INCDIR)/safe-ctype.h search_list.h source.h symtab.h \ - cg_arcs.h sym_ids.h corefile.h -utils.o: utils.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/demangle.h \ - $(INCDIR)/libiberty.h search_list.h source.h symtab.h \ - cg_arcs.h utils.h corefile.h -i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \ - source.h symtab.h cg_arcs.h corefile.h hist.h -alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \ - source.h symtab.h cg_arcs.h corefile.h hist.h -vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \ - source.h symtab.h cg_arcs.h corefile.h hist.h -tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \ - source.h symtab.h cg_arcs.h corefile.h hist.h -sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \ - source.h symtab.h cg_arcs.h corefile.h hist.h -mips.o: mips.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ - $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ - ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \ - source.h symtab.h cg_arcs.h corefile.h hist.h -flat_bl.o: flat_bl.c $(INCDIR)/ansidecl.h -bsd_callg_bl.o: bsd_callg_bl.c $(INCDIR)/ansidecl.h -fsf_callg_bl.o: fsf_callg_bl.c $(INCDIR)/ansidecl.h -# IF YOU PUT ANYTHING HERE IT WILL GO AWAY