diff options
author | Alan Modra <amodra@gmail.com> | 2000-04-04 10:53:56 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2000-04-04 10:53:56 +0000 |
commit | 41b49281c1e98174596a161a525ef4991d92741c (patch) | |
tree | 7228d3513565edc5adb64218779decf912203737 /gprof/Makefile.am | |
parent | eb3d1d196ccd7d987a7745cba9704795b2766fc1 (diff) | |
download | gdb-41b49281c1e98174596a161a525ef4991d92741c.zip gdb-41b49281c1e98174596a161a525ef4991d92741c.tar.gz gdb-41b49281c1e98174596a161a525ef4991d92741c.tar.bz2 |
Use "gcc -MM" for dependencies, and update them.
Diffstat (limited to 'gprof/Makefile.am')
-rw-r--r-- | gprof/Makefile.am | 163 |
1 files changed, 135 insertions, 28 deletions
diff --git a/gprof/Makefile.am b/gprof/Makefile.am index f71e4c5..6321bdb 100644 --- a/gprof/Makefile.am +++ b/gprof/Makefile.am @@ -6,7 +6,13 @@ SUFFIXES = .m SUBDIRS = po -INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\"" +BASEDIR = $(srcdir)/.. +BFDDIR = $(BASEDIR)/bfd +INCDIR = $(BASEDIR)/include + +MKDEP = gcc -MM + +INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -I. -DLOCALEDIR="\"$(prefix)/share/locale\"" bin_PROGRAMS = gprof @@ -43,32 +49,133 @@ po/POTFILES.in: @MAINT@ Makefile info_TEXINFOS = gprof.texi man_MANS = gprof.1 -# Dependencies. -$(OBJECTS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \ - corefile.h gmon_io.h gmon.h gmon_out.h gprof.h hertz.h hist.h \ - search_list.h source.h sym_ids.h symtab.h utils.h \ - $(srcdir)/../include/libiberty.h $(srcdir)/../bfd/sysdep.h \ - gconfig.h ../bfd/config.h -basic_blocks.o: basic_blocks.c -bsd_call_bl.o: bsd_call_bl.c -call_graph.o: call_graph.c -cg_arcs.o: cg_arcs.c -cg_dfn.o: cg_dfn.c -cg_print.o: cg_print.c -corefile.o: corefile.c +# 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 > $@ + echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@ + +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}!" + +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 DEP1 DEP2 + +# 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 basic_blocks.h gprof.h \ + $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ + gconfig.h $(INCDIR)/bin-bugs.h source.h search_list.h \ + symtab.h ../bfd/bfd.h corefile.h gmon_io.h gmon.h gmon_out.h \ + $(INCDIR)/libiberty.h sym_ids.h +call_graph.o: call_graph.c cg_arcs.h gprof.h $(BFDDIR)/sysdep.h \ + ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + symtab.h ../bfd/bfd.h source.h search_list.h call_graph.h \ + corefile.h gmon_io.h gmon.h gmon_out.h sym_ids.h +cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ + gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ + gconfig.h $(INCDIR)/bin-bugs.h call_graph.h symtab.h \ + ../bfd/bfd.h source.h search_list.h cg_arcs.h cg_dfn.h \ + cg_print.h utils.h sym_ids.h +cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ + gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ + gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \ + source.h search_list.h cg_dfn.h utils.h +cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ + cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + symtab.h ../bfd/bfd.h source.h search_list.h cg_print.h \ + hist.h utils.h +corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ + gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ + gconfig.h $(INCDIR)/bin-bugs.h corefile.h ../bfd/bfd.h \ + symtab.h source.h search_list.h +gmon_io.o: gmon_io.c cg_arcs.h gprof.h $(BFDDIR)/sysdep.h \ + ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + symtab.h ../bfd/bfd.h source.h search_list.h basic_blocks.h \ + corefile.h call_graph.h gmon_io.h gmon.h gmon_out.h \ + hertz.h hist.h $(INCDIR)/libiberty.h +gprof.o: gprof.c $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \ + $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + basic_blocks.h source.h search_list.h symtab.h ../bfd/bfd.h \ + call_graph.h cg_arcs.h cg_print.h corefile.h gmon_io.h \ + gmon.h hertz.h hist.h sym_ids.h +hertz.o: hertz.c hertz.h gprof.h $(BFDDIR)/sysdep.h \ + ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h +hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ + gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ + gconfig.h $(INCDIR)/bin-bugs.h corefile.h ../bfd/bfd.h \ + gmon_io.h gmon.h gmon_out.h hist.h symtab.h source.h \ + search_list.h sym_ids.h utils.h +source.o: source.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + $(INCDIR)/libiberty.h search_list.h source.h +search_list.o: search_list.c $(INCDIR)/libiberty.h \ + $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + search_list.h +symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ + corefile.h +sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ + cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + symtab.h ../bfd/bfd.h source.h search_list.h sym_ids.h +utils.o: utils.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h +i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ + corefile.h hist.h +alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ + corefile.h hist.h +vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ + corefile.h hist.h +tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ + corefile.h hist.h +sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ + $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ + cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ + corefile.h hist.h flat_bl.o: flat_bl.c +bsd_callg_bl.o: bsd_callg_bl.c fsf_callg_bl.o: fsf_callg_bl.c -gmon_io.o: gmon_io.c -gprof.o: gprof.c -hertz.o: hertz.c -hist.o: hist.c -search_list.o: search_list.c -source.o: source.c -symtab.o: symtab.c -sym_ids.o: sym_ids.c -utils.o: utils.c -i386.o: i386.c -alpha.o: alpha.c -vax.o: vax.c -tahoe.o: tahoe.c -sparc.o: sparc.c +# IF YOU PUT ANYTHING HERE IT WILL GO AWAY |