1999-05-03 15:29:11 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
|
|
|
AUTOMAKE_OPTIONS = cygnus
|
|
|
|
|
|
|
|
SUFFIXES = .m
|
|
|
|
|
|
|
|
SUBDIRS = po
|
|
|
|
|
2000-04-04 18:53:56 +08:00
|
|
|
BASEDIR = $(srcdir)/..
|
|
|
|
BFDDIR = $(BASEDIR)/bfd
|
|
|
|
INCDIR = $(BASEDIR)/include
|
|
|
|
|
2000-04-09 20:17:43 +08:00
|
|
|
WARN_CFLAGS = @WARN_CFLAGS@
|
|
|
|
AM_CFLAGS = $(WARN_CFLAGS)
|
|
|
|
|
2000-04-04 18:53:56 +08:00
|
|
|
MKDEP = gcc -MM
|
|
|
|
|
2004-12-01 01:20:48 +08:00
|
|
|
INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -I. -DLOCALEDIR="\"$(datadir)/locale\""
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
bin_PROGRAMS = gprof
|
|
|
|
|
|
|
|
## Convenience var listing pure sources.
|
|
|
|
sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
|
|
|
|
cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \
|
|
|
|
search_list.c symtab.c sym_ids.c utils.c \
|
2002-01-27 01:19:35 +08:00
|
|
|
i386.c alpha.c vax.c tahoe.c sparc.c mips.c
|
1999-05-03 15:29:11 +08:00
|
|
|
gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
|
|
|
|
gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLDEPS)
|
|
|
|
gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLLIBS)
|
|
|
|
|
|
|
|
noinst_HEADERS = \
|
|
|
|
basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
|
|
|
|
corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
|
|
|
|
search_list.h source.h sym_ids.h symtab.h utils.h
|
|
|
|
|
|
|
|
BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
|
2001-06-19 19:57:29 +08:00
|
|
|
EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-06-19 19:57:29 +08:00
|
|
|
diststuff: $(BUILT_SOURCES) info $(man_MANS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
.m.c:
|
|
|
|
awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
|
|
|
|
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
|
|
|
|
FILE=$*.m $(srcdir)/$*.m
|
|
|
|
|
|
|
|
POTFILES = $(sources) $(noinst_HEADERS)
|
|
|
|
po/POTFILES.in: @MAINT@ Makefile
|
2003-08-14 15:04:57 +08:00
|
|
|
for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
|
1999-05-03 15:29:11 +08:00
|
|
|
&& mv tmp $(srcdir)/po/POTFILES.in
|
|
|
|
|
2001-04-06 20:13:40 +08:00
|
|
|
MANCONF = -Dman
|
|
|
|
|
|
|
|
TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl
|
|
|
|
|
|
|
|
POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
info_TEXINFOS = gprof.texi
|
|
|
|
man_MANS = gprof.1
|
|
|
|
|
2001-04-06 20:13:40 +08:00
|
|
|
# Build the man page from the texinfo file
|
|
|
|
# The sed command removes the no-adjust Nroff command so that
|
|
|
|
# the man output looks standard.
|
2001-06-19 19:57:29 +08:00
|
|
|
gprof.1: $(srcdir)/gprof.texi
|
|
|
|
touch $@
|
2001-04-06 20:13:40 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
|
|
|
|
-($(POD2MAN) gprof.pod | \
|
2001-06-19 19:57:29 +08:00
|
|
|
sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
|
|
|
mv -f $@.T$$$$ $@) || \
|
|
|
|
(rm -f $@.T$$$$ && exit 1)
|
2001-04-06 20:13:40 +08:00
|
|
|
rm -f gprof.pod
|
|
|
|
|
2001-10-02 14:03:15 +08:00
|
|
|
Makefile: $(BFDDIR)/configure.in
|
|
|
|
|
2002-01-27 05:33:06 +08:00
|
|
|
# We want install to imply install-info as per GNU standards, despite the
|
|
|
|
# cygnus option.
|
2004-06-15 11:24:57 +08:00
|
|
|
install-data-local: install-info
|
2002-01-27 05:33:06 +08:00
|
|
|
|
2000-04-04 18:53:56 +08:00
|
|
|
# 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
|
2000-07-01 09:41:09 +08:00
|
|
|
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 \
|
2000-06-22 21:01:43 +08:00
|
|
|
echo 'make DEP failed!'; exit 1; \
|
|
|
|
else \
|
2000-07-01 09:41:09 +08:00
|
|
|
mv -f DEPA $@; \
|
2000-06-22 21:01:43 +08:00
|
|
|
fi
|
2000-04-04 18:53:56 +08:00
|
|
|
|
|
|
|
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)!' \
|
2002-04-04 22:07:22 +08:00
|
|
|
-e "s!@OBJDIR@!$${objdir}!" \
|
|
|
|
-e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!'
|
2000-04-04 18:53:56 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2000-07-01 09:41:09 +08:00
|
|
|
CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
|
2000-04-04 18:53:56 +08:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- mkdep uses it.
|
|
|
|
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|
2002-02-01 11:26:35 +08:00
|
|
|
basic_blocks.o: basic_blocks.c $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
|
|
|
|
$(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \
|
|
|
|
$(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.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 \
|
|
|
|
$(INCDIR)/ansidecl.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
|
|
|
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
|
|
|
gconfig.h $(INCDIR)/bin-bugs.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
|
2000-04-04 18:53:56 +08:00
|
|
|
cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|
|
|
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
|
|
|
gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
|
|
|
|
symtab.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
|
2001-10-02 14:03:15 +08:00
|
|
|
utils.h sym_ids.h
|
2000-04-04 18:53:56 +08:00
|
|
|
cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|
|
|
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
|
|
|
gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
|
|
|
|
symtab.h cg_arcs.h cg_dfn.h utils.h
|
2000-04-04 18:53:56 +08:00
|
|
|
cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
|
|
|
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
|
|
|
gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
|
2002-02-01 16:41:57 +08:00
|
|
|
symtab.h cg_arcs.h cg_print.h hist.h utils.h corefile.h
|
2000-04-04 18:53:56 +08:00
|
|
|
corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|
|
|
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
|
|
|
gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
|
|
|
|
symtab.h corefile.h
|
|
|
|
gmon_io.o: gmon_io.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.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
|
2002-02-11 13:14:46 +08:00
|
|
|
gprof.o: gprof.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|
|
|
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
|
|
|
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
|
|
|
gconfig.h $(INCDIR)/bin-bugs.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
|
2002-02-01 11:26:35 +08:00
|
|
|
hertz.o: hertz.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
|
|
|
hertz.h
|
2000-04-04 18:53:56 +08:00
|
|
|
hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|
|
|
gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
$(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
|
|
|
|
gconfig.h $(INCDIR)/bin-bugs.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 $(INCDIR)/ansidecl.h \
|
2000-05-26 22:14:21 +08:00
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
|
|
|
$(INCDIR)/libiberty.h search_list.h source.h
|
2000-04-04 18:53:56 +08:00
|
|
|
search_list.o: search_list.c $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
$(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \
|
|
|
|
$(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h
|
|
|
|
symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
2000-05-26 22:14:21 +08:00
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
|
|
|
search_list.h source.h symtab.h cg_arcs.h corefile.h
|
2000-04-04 18:53:56 +08:00
|
|
|
sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
$(INCDIR)/safe-ctype.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
|
|
|
|
$(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \
|
|
|
|
$(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \
|
|
|
|
source.h symtab.h cg_arcs.h sym_ids.h
|
2004-03-19 15:07:22 +08:00
|
|
|
utils.o: utils.c $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
|
|
|
|
$(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \
|
|
|
|
$(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \
|
|
|
|
source.h symtab.h cg_arcs.h utils.h
|
2002-02-01 11:26:35 +08:00
|
|
|
i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
2000-05-26 22:14:21 +08:00
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
|
|
|
search_list.h source.h symtab.h cg_arcs.h corefile.h \
|
2001-10-02 14:03:15 +08:00
|
|
|
hist.h
|
2002-02-01 11:26:35 +08:00
|
|
|
alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
2000-05-26 22:14:21 +08:00
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
|
|
|
search_list.h source.h symtab.h cg_arcs.h corefile.h \
|
2001-10-02 14:03:15 +08:00
|
|
|
hist.h
|
2002-02-01 11:26:35 +08:00
|
|
|
vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
2000-05-26 22:14:21 +08:00
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
|
|
|
search_list.h source.h symtab.h cg_arcs.h corefile.h \
|
2001-10-02 14:03:15 +08:00
|
|
|
hist.h
|
2002-02-01 11:26:35 +08:00
|
|
|
tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
2000-05-26 22:14:21 +08:00
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
|
|
|
search_list.h source.h symtab.h cg_arcs.h corefile.h \
|
2001-10-02 14:03:15 +08:00
|
|
|
hist.h
|
2002-02-01 11:26:35 +08:00
|
|
|
sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
2000-05-26 22:14:21 +08:00
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
|
|
|
search_list.h source.h symtab.h cg_arcs.h corefile.h \
|
2001-10-02 14:03:15 +08:00
|
|
|
hist.h
|
2002-02-01 11:26:35 +08:00
|
|
|
mips.o: mips.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
|
2002-01-27 01:19:35 +08:00
|
|
|
../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
|
2002-02-01 11:26:35 +08:00
|
|
|
../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
|
|
|
|
search_list.h source.h symtab.h cg_arcs.h corefile.h \
|
2002-01-27 01:19:35 +08:00
|
|
|
hist.h
|
2002-03-21 17:53:45 +08:00
|
|
|
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
|
2000-04-04 18:53:56 +08:00
|
|
|
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|