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 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEP1
185 if grep ' /' DEP1 > /dev/null 2> /dev/null; then \
186 echo 'make DEP failed!'; exit 1; \
191 DEP1: $(gprof_SOURCES)
192 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
193 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
195 $(MKDEP) $(INCLUDES) $(CFLAGS) $$f > DEPA; \
196 sed -n -e '1s/: .*/: \\/p' -e q < DEPA >> DEP2; \
197 sed -e '1s/.*: //' -f dep.sed < DEPA | LC_ALL=C sort | uniq | \
198 sed -e 's/^[AB]/ /' -e '$$s/ \\$$//' >> DEP2; \
203 dep.sed: dep-in.sed config.status
205 sed <$(srcdir)/dep-in.sed >dep.sed \
206 -e 's!@INCDIR@!$(INCDIR)!' \
207 -e 's!@BFDDIR@!$(BFDDIR)!' \
208 -e 's!@SRCDIR@!$(srcdir)!' \
209 -e "s!@OBJDIR@!$${objdir}!" \
210 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!'
213 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
214 cat DEP >> tmp-Makefile
215 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
218 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
219 cat DEP >> tmp-Makefile.in
220 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
223 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
224 cat DEP >> tmp-Makefile.am
225 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
227 .PHONY: dep dep-in dep-am
229 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
231 MAINTAINERCLEANFILES = gprof.info
233 # Automake 1.9 will only build info files in the objdir if they are
234 # mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
235 # though, so we use a bogus condition.
237 DISTCLEANFILES = gprof.info
240 # DO NOT DELETE THIS LINE -- mkdep uses it.
241 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
245 $(INCDIR)/ansidecl.h \
246 $(INCDIR)/filenames.h \
247 $(INCDIR)/fopen-same.h \
248 $(INCDIR)/libiberty.h \
265 $(INCDIR)/ansidecl.h \
266 $(INCDIR)/filenames.h \
267 $(INCDIR)/fopen-same.h \
285 $(INCDIR)/ansidecl.h \
286 $(INCDIR)/filenames.h \
287 $(INCDIR)/fopen-same.h \
288 $(INCDIR)/libiberty.h \
306 $(INCDIR)/ansidecl.h \
307 $(INCDIR)/filenames.h \
308 $(INCDIR)/fopen-same.h \
309 $(INCDIR)/libiberty.h \
324 $(INCDIR)/ansidecl.h \
325 $(INCDIR)/filenames.h \
326 $(INCDIR)/fopen-same.h \
327 $(INCDIR)/libiberty.h \
344 $(INCDIR)/ansidecl.h \
345 $(INCDIR)/filenames.h \
346 $(INCDIR)/fopen-same.h \
347 $(INCDIR)/libiberty.h \
348 $(INCDIR)/safe-ctype.h \
362 $(INCDIR)/ansidecl.h \
363 $(INCDIR)/binary-io.h \
364 $(INCDIR)/filenames.h \
365 $(INCDIR)/fopen-same.h \
366 $(INCDIR)/libiberty.h \
387 $(INCDIR)/ansidecl.h \
388 $(INCDIR)/demangle.h \
389 $(INCDIR)/filenames.h \
390 $(INCDIR)/fopen-same.h \
391 $(INCDIR)/libiberty.h \
413 $(INCDIR)/ansidecl.h \
414 $(INCDIR)/filenames.h \
415 $(INCDIR)/fopen-same.h \
425 $(INCDIR)/ansidecl.h \
426 $(INCDIR)/filenames.h \
427 $(INCDIR)/fopen-same.h \
428 $(INCDIR)/libiberty.h \
446 $(INCDIR)/ansidecl.h \
447 $(INCDIR)/filenames.h \
448 $(INCDIR)/fopen-same.h \
449 $(INCDIR)/libiberty.h \
460 $(INCDIR)/ansidecl.h \
461 $(INCDIR)/filenames.h \
462 $(INCDIR)/fopen-same.h \
463 $(INCDIR)/libiberty.h \
473 $(INCDIR)/ansidecl.h \
474 $(INCDIR)/filenames.h \
475 $(INCDIR)/fopen-same.h \
489 $(INCDIR)/ansidecl.h \
490 $(INCDIR)/filenames.h \
491 $(INCDIR)/fopen-same.h \
492 $(INCDIR)/libiberty.h \
493 $(INCDIR)/safe-ctype.h \
508 $(INCDIR)/ansidecl.h \
509 $(INCDIR)/demangle.h \
510 $(INCDIR)/filenames.h \
511 $(INCDIR)/fopen-same.h \
512 $(INCDIR)/libiberty.h \
527 $(INCDIR)/ansidecl.h \
528 $(INCDIR)/filenames.h \
529 $(INCDIR)/fopen-same.h \
544 $(INCDIR)/ansidecl.h \
545 $(INCDIR)/filenames.h \
546 $(INCDIR)/fopen-same.h \
561 $(INCDIR)/ansidecl.h \
562 $(INCDIR)/filenames.h \
563 $(INCDIR)/fopen-same.h \
578 $(INCDIR)/ansidecl.h \
579 $(INCDIR)/filenames.h \
580 $(INCDIR)/fopen-same.h \
595 $(INCDIR)/ansidecl.h \
596 $(INCDIR)/filenames.h \
597 $(INCDIR)/fopen-same.h \
612 $(INCDIR)/ansidecl.h \
613 $(INCDIR)/filenames.h \
614 $(INCDIR)/fopen-same.h \
635 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY