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