1## Process this file with automake to generate Makefile.in 2 3AUTOMAKE_OPTIONS = cygnus 4 5SUFFIXES = .m 6 7SUBDIRS = po 8 9BASEDIR = $(srcdir)/.. 10BFDDIR = $(BASEDIR)/bfd 11INCDIR = $(BASEDIR)/include 12 13WARN_CFLAGS = @WARN_CFLAGS@ 14NO_WERROR = @NO_WERROR@ 15AM_CFLAGS = $(WARN_CFLAGS) 16 17MKDEP = gcc -MM 18 19INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -I. -DLOCALEDIR="\"$(datadir)/locale\"" 20 21bin_PROGRAMS = gprof 22 23## Convenience var listing pure sources. 24sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \ 25 cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \ 26 search_list.c symtab.c sym_ids.c utils.c \ 27 i386.c alpha.c vax.c tahoe.c sparc.c mips.c 28gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c 29gprof_DEPENDENCIES = ../bfd/libbfd.la $(INTLDEPS) 30gprof_LDADD = ../bfd/libbfd.la -liberty $(INTLLIBS) 31 32noinst_HEADERS = \ 33 basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ 34 corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \ 35 search_list.h source.h sym_ids.h symtab.h utils.h 36 37BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c 38EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS) 39 40diststuff: $(BUILT_SOURCES) info $(man_MANS) 41 42.m.c: 43 awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \ 44 FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \ 45 FILE=$*.m $(srcdir)/$*.m 46 47POTFILES = $(sources) $(noinst_HEADERS) 48po/POTFILES.in: @MAINT@ Makefile 49 for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \ 50 && mv tmp $(srcdir)/po/POTFILES.in 51 52MANCONF = -Dman 53 54TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl 55 56POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1 57 58info_TEXINFOS = gprof.texi 59man_MANS = gprof.1 60 61$(srcdir)/gprof.info: gprof.texi config.texi 62 63config.texi: 64 echo "@set top_srcdir $(top_srcdir)" >> ./config.texi 65 66# Build the man page from the texinfo file 67# The sed command removes the no-adjust Nroff command so that 68# the man output looks standard. 69gprof.1: $(srcdir)/gprof.texi config.texi 70 touch $@ 71 -$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod 72 -($(POD2MAN) gprof.pod | \ 73 sed -e '/^.if n .na/d' > $@.T$$$$ && \ 74 mv -f $@.T$$$$ $@) || \ 75 (rm -f $@.T$$$$ && exit 1) 76 rm -f gprof.pod 77 78.PHONY: install-html install-html-am install-html-recursive 79 80html__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 81 82install-html: install-html-recursive install-html-am 83 84install-html-am: $(HTMLS) 85 @$(NORMAL_INSTALL) 86 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)" 87 @list='$(HTMLS)'; for p in $$list; do \ 88 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \ 89 f=$(html__strip_dir) \ 90 if test -d "$$d$$p"; then \ 91 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \ 92 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \ 93 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \ 94 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \ 95 else \ 96 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \ 97 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \ 98 fi; \ 99 done 100 101install-html-recursive: 102 @failcom='exit 1'; \ 103 for f in x $$MAKEFLAGS; do \ 104 case $$f in \ 105 *=* | --[!k]*);; \ 106 *k*) failcom='fail=yes';; \ 107 esac; \ 108 done; \ 109 dot_seen=no; \ 110 target=`echo $@ | sed s/-recursive//`; \ 111 list='$(SUBDIRS)'; for subdir in $$list; do \ 112 echo "Making $$target in $$subdir"; \ 113 if test "$$subdir" = "."; then \ 114 dot_seen=yes; \ 115 local_target="$$target-am"; \ 116 else \ 117 local_target="$$target"; \ 118 fi; \ 119 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 120 || eval $$failcom; \ 121 done; \ 122 if test "$$dot_seen" = "no"; then \ 123 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 124 fi; test -z "$$fail" 125 126# We want install to imply install-info as per GNU standards, despite the 127# cygnus option. 128install-data-local: install-info 129 130# Targets to rebuild dependencies in this Makefile. 131# Have to get rid of DEP1 here so that "$?" later includes all sources. 132DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h 133 rm -f DEP1 134 $(MAKE) MKDEP="$(MKDEP)" DEP1 135 sed -f dep.sed < DEP1 > DEPA 136 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA 137 if grep ' /' DEPA > /dev/null 2> /dev/null; then \ 138 echo 'make DEP failed!'; exit 1; \ 139 else \ 140 mv -f DEPA $@; \ 141 fi 142 143DEP1: $(gprof_SOURCES) 144 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2 145 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2 146 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2 147 mv -f DEP2 $@ 148 149dep.sed: dep-in.sed config.status 150 objdir=`pwd`; \ 151 sed <$(srcdir)/dep-in.sed >dep.sed \ 152 -e 's!@INCDIR@!$(INCDIR)!' \ 153 -e 's!@BFDDIR@!$(BFDDIR)!' \ 154 -e 's!@SRCDIR@!$(srcdir)!' \ 155 -e "s!@OBJDIR@!$${objdir}!" \ 156 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!' 157 158dep: DEP 159 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile 160 cat DEP >> tmp-Makefile 161 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile 162 163dep-in: DEP 164 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in 165 cat DEP >> tmp-Makefile.in 166 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in 167 168dep-am: DEP 169 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am 170 cat DEP >> tmp-Makefile.am 171 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am 172 173.PHONY: dep dep-in dep-am 174 175CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 176 177# DO NOT DELETE THIS LINE -- mkdep uses it. 178# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. 179basic_blocks.o: basic_blocks.c $(INCDIR)/libiberty.h \ 180 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ 181 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ 182 $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h basic_blocks.h \ 183 corefile.h gmon_io.h gmon_out.h search_list.h source.h \ 184 symtab.h sym_ids.h 185call_graph.o: call_graph.c gprof.h $(BFDDIR)/sysdep.h \ 186 $(INCDIR)/ansidecl.h ../bfd/config.h $(INCDIR)/fopen-same.h \ 187 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ 188 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ 189 symtab.h cg_arcs.h call_graph.h corefile.h gmon_io.h \ 190 gmon_out.h sym_ids.h 191cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ 192 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ 193 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ 194 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ 195 symtab.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ 196 utils.h sym_ids.h 197cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ 198 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ 199 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ 200 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ 201 symtab.h cg_arcs.h cg_dfn.h utils.h 202cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ 203 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ 204 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ 205 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ 206 symtab.h cg_arcs.h cg_print.h hist.h utils.h corefile.h 207corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ 208 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ 209 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ 210 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ 211 symtab.h corefile.h 212gmon_io.o: gmon_io.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 213 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 214 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 215 search_list.h source.h symtab.h cg_arcs.h basic_blocks.h \ 216 corefile.h call_graph.h gmon_io.h gmon_out.h gmon.h \ 217 hertz.h hist.h $(INCDIR)/libiberty.h 218gprof.o: gprof.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ 219 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ 220 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ 221 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ 222 symtab.h basic_blocks.h call_graph.h cg_arcs.h cg_print.h \ 223 corefile.h gmon_io.h hertz.h hist.h sym_ids.h $(INCDIR)/demangle.h 224hertz.o: hertz.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 225 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 226 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 227 hertz.h 228hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ 229 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ 230 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ 231 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ 232 symtab.h corefile.h gmon_io.h gmon_out.h hist.h sym_ids.h \ 233 utils.h 234source.o: source.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 235 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 236 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 237 $(INCDIR)/libiberty.h search_list.h source.h 238search_list.o: search_list.c $(INCDIR)/libiberty.h \ 239 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ 240 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ 241 $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h 242symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 243 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 244 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 245 search_list.h source.h symtab.h cg_arcs.h corefile.h 246sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ 247 $(INCDIR)/safe-ctype.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ 248 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ 249 $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \ 250 source.h symtab.h cg_arcs.h sym_ids.h 251utils.o: utils.c $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ 252 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ 253 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ 254 $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \ 255 source.h symtab.h cg_arcs.h utils.h 256i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 257 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 258 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 259 search_list.h source.h symtab.h cg_arcs.h corefile.h \ 260 hist.h 261alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 262 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 263 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 264 search_list.h source.h symtab.h cg_arcs.h corefile.h \ 265 hist.h 266vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 267 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 268 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 269 search_list.h source.h symtab.h cg_arcs.h corefile.h \ 270 hist.h 271tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 272 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 273 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 274 search_list.h source.h symtab.h cg_arcs.h corefile.h \ 275 hist.h 276sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 277 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 278 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 279 search_list.h source.h symtab.h cg_arcs.h corefile.h \ 280 hist.h 281mips.o: mips.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ 282 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ 283 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ 284 search_list.h source.h symtab.h cg_arcs.h corefile.h \ 285 hist.h 286flat_bl.o: flat_bl.c $(INCDIR)/ansidecl.h 287bsd_callg_bl.o: bsd_callg_bl.c $(INCDIR)/ansidecl.h 288fsf_callg_bl.o: fsf_callg_bl.c $(INCDIR)/ansidecl.h 289# IF YOU PUT ANYTHING HERE IT WILL GO AWAY 290