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 .PHONY: install-pdf install-pdf-am install-pdf-recursive
88 pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
90 install-pdf: install-pdf-recursive install-pdf-am
92 install-pdf-am: $(PDFS)
94 test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
95 @list='$(PDFS)'; for p in $$list; do \
96 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
98 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
99 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
102 install-pdf-recursive:
104 for f in x $$MAKEFLAGS; do \
107 *k*) failcom='fail=yes';; \
111 target=`echo $@ | sed s/-recursive//`; \
112 list='$(SUBDIRS)'; for subdir in $$list; do \
113 echo "Making $$target in $$subdir"; \
114 if test "$$subdir" = "."; then \
116 local_target="$$target-am"; \
118 local_target="$$target"; \
120 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
123 if test "$$dot_seen" = "no"; then \
124 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
127 .PHONY: install-html install-html-am install-html-recursive
129 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
131 install-html: install-html-recursive install-html-am
133 install-html-am: $(HTMLS)
135 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
136 @list='$(HTMLS)'; for p in $$list; do \
137 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
138 f=$(html__strip_dir) \
139 if test -d "$$d$$p"; then \
140 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
141 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
142 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
143 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
145 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
146 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
150 install-html-recursive:
152 for f in x $$MAKEFLAGS; do \
155 *k*) failcom='fail=yes';; \
159 target=`echo $@ | sed s/-recursive//`; \
160 list='$(SUBDIRS)'; for subdir in $$list; do \
161 echo "Making $$target in $$subdir"; \
162 if test "$$subdir" = "."; then \
164 local_target="$$target-am"; \
166 local_target="$$target"; \
168 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
171 if test "$$dot_seen" = "no"; then \
172 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
175 # We want install to imply install-info as per GNU standards, despite the
177 install-data-local: install-info
179 # Targets to rebuild dependencies in this Makefile.
180 # Have to get rid of DEP1 here so that "$?" later includes all sources.
181 DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h
183 $(MAKE) MKDEP="$(MKDEP)" DEP1
184 sed -f dep.sed < DEP1 > DEPA
185 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
186 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
187 echo 'make DEP failed!'; exit 1; \
192 DEP1: $(gprof_SOURCES)
193 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
194 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
195 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
198 dep.sed: dep-in.sed config.status
200 sed <$(srcdir)/dep-in.sed >dep.sed \
201 -e 's!@INCDIR@!$(INCDIR)!' \
202 -e 's!@BFDDIR@!$(BFDDIR)!' \
203 -e 's!@SRCDIR@!$(srcdir)!' \
204 -e "s!@OBJDIR@!$${objdir}!" \
205 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!'
208 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
209 cat DEP >> tmp-Makefile
210 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
213 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
214 cat DEP >> tmp-Makefile.in
215 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
218 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
219 cat DEP >> tmp-Makefile.am
220 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
222 .PHONY: dep dep-in dep-am
224 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
226 MAINTAINERCLEANFILES = gprof.info
228 # Automake 1.9 will only build info files in the objdir if they are
229 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
230 # though, so we use a bogus condition.
232 DISTCLEANFILES = gprof.info
235 # DO NOT DELETE THIS LINE -- mkdep uses it.
236 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
237 basic_blocks.o: basic_blocks.c gprof.h $(BFDDIR)/sysdep.h \
238 ../bfd/config.h $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h \
239 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
240 gconfig.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
241 basic_blocks.h corefile.h gmon_io.h gmon_out.h search_list.h \
242 source.h symtab.h sym_ids.h
243 call_graph.o: call_graph.c gprof.h $(BFDDIR)/sysdep.h \
244 ../bfd/config.h $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h \
245 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
246 gconfig.h search_list.h source.h symtab.h cg_arcs.h \
247 call_graph.h corefile.h gmon_io.h gmon_out.h sym_ids.h
248 cg_arcs.o: cg_arcs.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
249 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
250 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \
251 $(INCDIR)/ansidecl.h search_list.h source.h symtab.h \
252 call_graph.h cg_arcs.h cg_dfn.h cg_print.h utils.h \
254 cg_dfn.o: cg_dfn.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
255 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
256 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \
257 $(INCDIR)/ansidecl.h search_list.h source.h symtab.h \
258 cg_arcs.h cg_dfn.h utils.h
259 cg_print.o: cg_print.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
260 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
261 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \
262 $(INCDIR)/ansidecl.h search_list.h source.h symtab.h \
263 cg_arcs.h cg_print.h hist.h utils.h corefile.h
264 corefile.o: corefile.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
265 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
266 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \
267 $(INCDIR)/ansidecl.h search_list.h source.h symtab.h \
268 hist.h corefile.h $(INCDIR)/safe-ctype.h
269 gmon_io.o: gmon_io.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
270 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
271 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/binary-io.h \
272 search_list.h source.h symtab.h cg_arcs.h basic_blocks.h \
273 corefile.h call_graph.h gmon_io.h gmon_out.h gmon.h \
274 hertz.h hist.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h
275 gprof.o: gprof.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
276 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
277 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \
278 $(INCDIR)/ansidecl.h ../bfd/bfdver.h search_list.h \
279 source.h symtab.h basic_blocks.h call_graph.h cg_arcs.h \
280 cg_print.h corefile.h gmon_io.h hertz.h hist.h sym_ids.h \
281 $(INCDIR)/demangle.h $(INCDIR)/libiberty.h
282 hertz.o: hertz.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
283 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
284 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h hertz.h
285 hist.o: hist.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
286 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
287 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \
288 $(INCDIR)/ansidecl.h search_list.h source.h symtab.h \
289 corefile.h gmon_io.h gmon_out.h hist.h sym_ids.h utils.h
290 source.o: source.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
291 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
292 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \
293 $(INCDIR)/ansidecl.h search_list.h source.h
294 search_list.o: search_list.c gprof.h $(BFDDIR)/sysdep.h \
295 ../bfd/config.h $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h \
296 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
297 gconfig.h $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
299 symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
300 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
301 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \
302 source.h symtab.h cg_arcs.h corefile.h
303 sym_ids.o: sym_ids.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
304 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
305 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/libiberty.h \
306 $(INCDIR)/ansidecl.h $(INCDIR)/safe-ctype.h search_list.h \
307 source.h symtab.h cg_arcs.h sym_ids.h corefile.h
308 utils.o: utils.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
309 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
310 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/demangle.h \
311 $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h search_list.h \
312 source.h symtab.h cg_arcs.h utils.h corefile.h
313 i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
314 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
315 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \
316 source.h symtab.h cg_arcs.h corefile.h hist.h
317 alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
318 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
319 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \
320 source.h symtab.h cg_arcs.h corefile.h hist.h
321 vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
322 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
323 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \
324 source.h symtab.h cg_arcs.h corefile.h hist.h
325 tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
326 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
327 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \
328 source.h symtab.h cg_arcs.h corefile.h hist.h
329 sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
330 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
331 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \
332 source.h symtab.h cg_arcs.h corefile.h hist.h
333 mips.o: mips.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
334 $(INCDIR)/ansidecl.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
335 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h search_list.h \
336 source.h symtab.h cg_arcs.h corefile.h hist.h
337 flat_bl.o: flat_bl.c $(INCDIR)/ansidecl.h
338 bsd_callg_bl.o: bsd_callg_bl.c $(INCDIR)/ansidecl.h
339 fsf_callg_bl.o: fsf_callg_bl.c $(INCDIR)/ansidecl.h
340 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY