1 ## Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS = cygnus
4 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
10 BASEDIR = $(srcdir)/..
11 BFDDIR = $(BASEDIR)/bfd
12 INCDIR = $(BASEDIR)/include
14 WARN_CFLAGS = @WARN_CFLAGS@
15 NO_WERROR = @NO_WERROR@
16 AM_CFLAGS = $(WARN_CFLAGS)
20 INCLUDES = -DDEBUG -I../bfd -I$(srcdir)/../include \
21 -I$(srcdir)/../bfd @INCINTL@ -I. \
22 -DLOCALEDIR="\"$(datadir)/locale\""
26 ## Convenience var listing pure sources.
27 sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
28 cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \
29 search_list.c symtab.c sym_ids.c utils.c \
30 i386.c alpha.c vax.c tahoe.c sparc.c mips.c
31 gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
32 gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL_DEP)
33 gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL)
36 basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
37 corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
38 search_list.h source.h sym_ids.h symtab.h utils.h
40 BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
41 EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
43 diststuff: $(BUILT_SOURCES) info $(man_MANS)
45 # This empty rule is a hack against gmake patched by Apple.
49 awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
50 FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
51 FILE=$*.m $(srcdir)/$*.m
53 POTFILES = $(sources) $(noinst_HEADERS)
54 po/POTFILES.in: @MAINT@ Makefile
55 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
56 && mv tmp $(srcdir)/po/POTFILES.in
60 TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
62 POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
64 info_TEXINFOS = gprof.texi
65 gprof_TEXINFOS = config.texi
68 AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
69 TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
72 echo "@set top_srcdir $(top_srcdir)" >> ./config.texi
74 # Build the man page from the texinfo file
75 # The sed command removes the no-adjust Nroff command so that
76 # the man output looks standard.
77 gprof.1: $(srcdir)/gprof.texi config.texi
79 -$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
80 -($(POD2MAN) gprof.pod | \
81 sed -e '/^.if n .na/d' > $@.T$$$$ && \
82 mv -f $@.T$$$$ $@) || \
83 (rm -f $@.T$$$$ && exit 1)
86 # We want install to imply install-info as per GNU standards, despite the
88 install-data-local: install-info
90 # Targets to rebuild dependencies in this Makefile.
91 # Have to get rid of DEP1 here so that "$?" later includes all sources.
92 DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h
94 $(MAKE) MKDEP="$(MKDEP)" DEP1
95 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEP1
96 if grep ' /' DEP1 > /dev/null 2> /dev/null; then \
97 echo 'make DEP failed!'; exit 1; \
102 DEP1: $(gprof_SOURCES)
103 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
104 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
106 $(MKDEP) $(INCLUDES) $(CFLAGS) $$f > DEPA; \
107 sed -n -e '1s/: .*/: \\/p' -e q < DEPA >> DEP2; \
108 sed -e '1s/.*: //' -f dep.sed < DEPA | \
109 LC_ALL=C sort | LC_ALL=C uniq | \
110 sed -e 's/^[AB]/ /' -e '$$s/ \\$$//' >> DEP2; \
115 dep.sed: dep-in.sed config.status
117 sed <$(srcdir)/dep-in.sed >dep.sed \
118 -e 's!@INCDIR@!$(INCDIR)!' \
119 -e 's!@BFDDIR@!$(BFDDIR)!' \
120 -e 's!@SRCDIR@!$(srcdir)!' \
121 -e "s!@OBJDIR@!$${objdir}!" \
122 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!'
125 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
126 cat DEP >> tmp-Makefile
127 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
130 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
131 cat DEP >> tmp-Makefile.in
132 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
135 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
136 cat DEP >> tmp-Makefile.am
137 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
139 .PHONY: dep dep-in dep-am
141 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
143 MAINTAINERCLEANFILES = gprof.info
145 # Automake 1.9 will only build info files in the objdir if they are
146 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
147 # though, so we use a bogus condition.
149 DISTCLEANFILES = gprof.info
152 # DO NOT DELETE THIS LINE -- mkdep uses it.
153 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
157 $(INCDIR)/ansidecl.h \
158 $(INCDIR)/filenames.h \
159 $(INCDIR)/fopen-same.h \
160 $(INCDIR)/libiberty.h \
177 $(INCDIR)/ansidecl.h \
178 $(INCDIR)/filenames.h \
179 $(INCDIR)/fopen-same.h \
197 $(INCDIR)/ansidecl.h \
198 $(INCDIR)/filenames.h \
199 $(INCDIR)/fopen-same.h \
200 $(INCDIR)/libiberty.h \
218 $(INCDIR)/ansidecl.h \
219 $(INCDIR)/filenames.h \
220 $(INCDIR)/fopen-same.h \
221 $(INCDIR)/libiberty.h \
236 $(INCDIR)/ansidecl.h \
237 $(INCDIR)/filenames.h \
238 $(INCDIR)/fopen-same.h \
239 $(INCDIR)/libiberty.h \
256 $(INCDIR)/ansidecl.h \
257 $(INCDIR)/filenames.h \
258 $(INCDIR)/fopen-same.h \
259 $(INCDIR)/libiberty.h \
260 $(INCDIR)/safe-ctype.h \
274 $(INCDIR)/ansidecl.h \
275 $(INCDIR)/binary-io.h \
276 $(INCDIR)/filenames.h \
277 $(INCDIR)/fopen-same.h \
278 $(INCDIR)/libiberty.h \
299 $(INCDIR)/ansidecl.h \
300 $(INCDIR)/demangle.h \
301 $(INCDIR)/filenames.h \
302 $(INCDIR)/fopen-same.h \
303 $(INCDIR)/libiberty.h \
325 $(INCDIR)/ansidecl.h \
326 $(INCDIR)/filenames.h \
327 $(INCDIR)/fopen-same.h \
337 $(INCDIR)/ansidecl.h \
338 $(INCDIR)/filenames.h \
339 $(INCDIR)/fopen-same.h \
340 $(INCDIR)/libiberty.h \
358 $(INCDIR)/ansidecl.h \
359 $(INCDIR)/filenames.h \
360 $(INCDIR)/fopen-same.h \
361 $(INCDIR)/libiberty.h \
372 $(INCDIR)/ansidecl.h \
373 $(INCDIR)/filenames.h \
374 $(INCDIR)/fopen-same.h \
375 $(INCDIR)/libiberty.h \
385 $(INCDIR)/ansidecl.h \
386 $(INCDIR)/filenames.h \
387 $(INCDIR)/fopen-same.h \
401 $(INCDIR)/ansidecl.h \
402 $(INCDIR)/filenames.h \
403 $(INCDIR)/fopen-same.h \
404 $(INCDIR)/libiberty.h \
405 $(INCDIR)/safe-ctype.h \
420 $(INCDIR)/ansidecl.h \
421 $(INCDIR)/demangle.h \
422 $(INCDIR)/filenames.h \
423 $(INCDIR)/fopen-same.h \
424 $(INCDIR)/libiberty.h \
439 $(INCDIR)/ansidecl.h \
440 $(INCDIR)/filenames.h \
441 $(INCDIR)/fopen-same.h \
456 $(INCDIR)/ansidecl.h \
457 $(INCDIR)/filenames.h \
458 $(INCDIR)/fopen-same.h \
473 $(INCDIR)/ansidecl.h \
474 $(INCDIR)/filenames.h \
475 $(INCDIR)/fopen-same.h \
490 $(INCDIR)/ansidecl.h \
491 $(INCDIR)/filenames.h \
492 $(INCDIR)/fopen-same.h \
507 $(INCDIR)/ansidecl.h \
508 $(INCDIR)/filenames.h \
509 $(INCDIR)/fopen-same.h \
524 $(INCDIR)/ansidecl.h \
525 $(INCDIR)/filenames.h \
526 $(INCDIR)/fopen-same.h \
547 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY