Cleanups after the update to Autoconf 2.64, Automake 1.11.
[deliverable/binutils-gdb.git] / gprof / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus
4 ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
5
6 SUFFIXES = .m
7
8 SUBDIRS = po
9
10 BASEDIR = $(srcdir)/..
11 BFDDIR = $(BASEDIR)/bfd
12 INCDIR = $(BASEDIR)/include
13
14 WARN_CFLAGS = @WARN_CFLAGS@
15 NO_WERROR = @NO_WERROR@
16 AM_CFLAGS = $(WARN_CFLAGS)
17
18 MKDEP = gcc -MM
19
20 INCLUDES = -DDEBUG -I../bfd -I$(srcdir)/../include \
21 -I$(srcdir)/../bfd @INCINTL@ -I. \
22 -DLOCALEDIR="\"$(datadir)/locale\""
23
24 bin_PROGRAMS = gprof
25
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)
34
35 noinst_HEADERS = \
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
39
40 BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
41 EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
42
43 diststuff: $(BUILT_SOURCES) info $(man_MANS)
44
45 # This empty rule is a hack against gmake patched by Apple.
46 %.o:%.m
47
48 .m.c:
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
52
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
57
58 MANCONF = -Dman
59
60 TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
61
62 POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
63
64 info_TEXINFOS = gprof.texi
65 gprof_TEXINFOS = config.texi
66 man_MANS = gprof.1
67
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
70
71 config.texi:
72 echo "@set top_srcdir $(top_srcdir)" >> ./config.texi
73
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
78 touch $@
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)
84 rm -f gprof.pod
85
86 # We want install to imply install-info as per GNU standards, despite the
87 # cygnus option.
88 install-data-local: install-info
89
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
93 rm -f DEP1
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; \
98 else \
99 mv -f DEP1 $@; \
100 fi
101
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
105 for f in $?; do \
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; \
111 done
112 rm -f DEPA
113 mv -f DEP2 $@
114
115 dep.sed: dep-in.sed config.status
116 objdir=`pwd`; \
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$$,,`'!'
123
124 dep: DEP
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
128
129 dep-in: DEP
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
133
134 dep-am: DEP
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
138
139 .PHONY: dep dep-in dep-am
140
141 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
142
143 MAINTAINERCLEANFILES = gprof.info
144
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.
148 if GENINSRC_NEVER
149 DISTCLEANFILES = gprof.info
150 endif
151
152 # DO NOT DELETE THIS LINE -- mkdep uses it.
153 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
154 basic_blocks.o: \
155 basic_blocks.c \
156 $(BFDDIR)/sysdep.h \
157 $(INCDIR)/ansidecl.h \
158 $(INCDIR)/filenames.h \
159 $(INCDIR)/fopen-same.h \
160 $(INCDIR)/libiberty.h \
161 $(INCDIR)/symcat.h \
162 ../bfd/bfd.h \
163 ../bfd/config.h \
164 basic_blocks.h \
165 corefile.h \
166 gconfig.h \
167 gmon_io.h \
168 gmon_out.h \
169 gprof.h \
170 search_list.h \
171 source.h \
172 sym_ids.h \
173 symtab.h
174 call_graph.o: \
175 call_graph.c \
176 $(BFDDIR)/sysdep.h \
177 $(INCDIR)/ansidecl.h \
178 $(INCDIR)/filenames.h \
179 $(INCDIR)/fopen-same.h \
180 $(INCDIR)/symcat.h \
181 ../bfd/bfd.h \
182 ../bfd/config.h \
183 call_graph.h \
184 cg_arcs.h \
185 corefile.h \
186 gconfig.h \
187 gmon_io.h \
188 gmon_out.h \
189 gprof.h \
190 search_list.h \
191 source.h \
192 sym_ids.h \
193 symtab.h
194 cg_arcs.o: \
195 cg_arcs.c \
196 $(BFDDIR)/sysdep.h \
197 $(INCDIR)/ansidecl.h \
198 $(INCDIR)/filenames.h \
199 $(INCDIR)/fopen-same.h \
200 $(INCDIR)/libiberty.h \
201 $(INCDIR)/symcat.h \
202 ../bfd/bfd.h \
203 ../bfd/config.h \
204 call_graph.h \
205 cg_arcs.h \
206 cg_dfn.h \
207 cg_print.h \
208 gconfig.h \
209 gprof.h \
210 search_list.h \
211 source.h \
212 sym_ids.h \
213 symtab.h \
214 utils.h
215 cg_dfn.o: \
216 cg_dfn.c \
217 $(BFDDIR)/sysdep.h \
218 $(INCDIR)/ansidecl.h \
219 $(INCDIR)/filenames.h \
220 $(INCDIR)/fopen-same.h \
221 $(INCDIR)/libiberty.h \
222 $(INCDIR)/symcat.h \
223 ../bfd/bfd.h \
224 ../bfd/config.h \
225 cg_arcs.h \
226 cg_dfn.h \
227 gconfig.h \
228 gprof.h \
229 search_list.h \
230 source.h \
231 symtab.h \
232 utils.h
233 cg_print.o: \
234 cg_print.c \
235 $(BFDDIR)/sysdep.h \
236 $(INCDIR)/ansidecl.h \
237 $(INCDIR)/filenames.h \
238 $(INCDIR)/fopen-same.h \
239 $(INCDIR)/libiberty.h \
240 $(INCDIR)/symcat.h \
241 ../bfd/bfd.h \
242 ../bfd/config.h \
243 cg_arcs.h \
244 cg_print.h \
245 corefile.h \
246 gconfig.h \
247 gprof.h \
248 hist.h \
249 search_list.h \
250 source.h \
251 symtab.h \
252 utils.h
253 corefile.o: \
254 corefile.c \
255 $(BFDDIR)/sysdep.h \
256 $(INCDIR)/ansidecl.h \
257 $(INCDIR)/filenames.h \
258 $(INCDIR)/fopen-same.h \
259 $(INCDIR)/libiberty.h \
260 $(INCDIR)/safe-ctype.h \
261 $(INCDIR)/symcat.h \
262 ../bfd/bfd.h \
263 ../bfd/config.h \
264 corefile.h \
265 gconfig.h \
266 gprof.h \
267 hist.h \
268 search_list.h \
269 source.h \
270 symtab.h
271 gmon_io.o: \
272 gmon_io.c \
273 $(BFDDIR)/sysdep.h \
274 $(INCDIR)/ansidecl.h \
275 $(INCDIR)/binary-io.h \
276 $(INCDIR)/filenames.h \
277 $(INCDIR)/fopen-same.h \
278 $(INCDIR)/libiberty.h \
279 $(INCDIR)/symcat.h \
280 ../bfd/bfd.h \
281 ../bfd/config.h \
282 basic_blocks.h \
283 call_graph.h \
284 cg_arcs.h \
285 corefile.h \
286 gconfig.h \
287 gmon.h \
288 gmon_io.h \
289 gmon_out.h \
290 gprof.h \
291 hertz.h \
292 hist.h \
293 search_list.h \
294 source.h \
295 symtab.h
296 gprof.o: \
297 gprof.c \
298 $(BFDDIR)/sysdep.h \
299 $(INCDIR)/ansidecl.h \
300 $(INCDIR)/demangle.h \
301 $(INCDIR)/filenames.h \
302 $(INCDIR)/fopen-same.h \
303 $(INCDIR)/libiberty.h \
304 $(INCDIR)/symcat.h \
305 ../bfd/bfd.h \
306 ../bfd/bfdver.h \
307 ../bfd/config.h \
308 basic_blocks.h \
309 call_graph.h \
310 cg_arcs.h \
311 cg_print.h \
312 corefile.h \
313 gconfig.h \
314 gmon_io.h \
315 gprof.h \
316 hertz.h \
317 hist.h \
318 search_list.h \
319 source.h \
320 sym_ids.h \
321 symtab.h
322 hertz.o: \
323 hertz.c \
324 $(BFDDIR)/sysdep.h \
325 $(INCDIR)/ansidecl.h \
326 $(INCDIR)/filenames.h \
327 $(INCDIR)/fopen-same.h \
328 $(INCDIR)/symcat.h \
329 ../bfd/bfd.h \
330 ../bfd/config.h \
331 gconfig.h \
332 gprof.h \
333 hertz.h
334 hist.o: \
335 hist.c \
336 $(BFDDIR)/sysdep.h \
337 $(INCDIR)/ansidecl.h \
338 $(INCDIR)/filenames.h \
339 $(INCDIR)/fopen-same.h \
340 $(INCDIR)/libiberty.h \
341 $(INCDIR)/symcat.h \
342 ../bfd/bfd.h \
343 ../bfd/config.h \
344 corefile.h \
345 gconfig.h \
346 gmon_io.h \
347 gmon_out.h \
348 gprof.h \
349 hist.h \
350 search_list.h \
351 source.h \
352 sym_ids.h \
353 symtab.h \
354 utils.h
355 source.o: \
356 source.c \
357 $(BFDDIR)/sysdep.h \
358 $(INCDIR)/ansidecl.h \
359 $(INCDIR)/filenames.h \
360 $(INCDIR)/fopen-same.h \
361 $(INCDIR)/libiberty.h \
362 $(INCDIR)/symcat.h \
363 ../bfd/bfd.h \
364 ../bfd/config.h \
365 gconfig.h \
366 gprof.h \
367 search_list.h \
368 source.h
369 search_list.o: \
370 search_list.c \
371 $(BFDDIR)/sysdep.h \
372 $(INCDIR)/ansidecl.h \
373 $(INCDIR)/filenames.h \
374 $(INCDIR)/fopen-same.h \
375 $(INCDIR)/libiberty.h \
376 $(INCDIR)/symcat.h \
377 ../bfd/bfd.h \
378 ../bfd/config.h \
379 gconfig.h \
380 gprof.h \
381 search_list.h
382 symtab.o: \
383 symtab.c \
384 $(BFDDIR)/sysdep.h \
385 $(INCDIR)/ansidecl.h \
386 $(INCDIR)/filenames.h \
387 $(INCDIR)/fopen-same.h \
388 $(INCDIR)/symcat.h \
389 ../bfd/bfd.h \
390 ../bfd/config.h \
391 cg_arcs.h \
392 corefile.h \
393 gconfig.h \
394 gprof.h \
395 search_list.h \
396 source.h \
397 symtab.h
398 sym_ids.o: \
399 sym_ids.c \
400 $(BFDDIR)/sysdep.h \
401 $(INCDIR)/ansidecl.h \
402 $(INCDIR)/filenames.h \
403 $(INCDIR)/fopen-same.h \
404 $(INCDIR)/libiberty.h \
405 $(INCDIR)/safe-ctype.h \
406 $(INCDIR)/symcat.h \
407 ../bfd/bfd.h \
408 ../bfd/config.h \
409 cg_arcs.h \
410 corefile.h \
411 gconfig.h \
412 gprof.h \
413 search_list.h \
414 source.h \
415 sym_ids.h \
416 symtab.h
417 utils.o: \
418 utils.c \
419 $(BFDDIR)/sysdep.h \
420 $(INCDIR)/ansidecl.h \
421 $(INCDIR)/demangle.h \
422 $(INCDIR)/filenames.h \
423 $(INCDIR)/fopen-same.h \
424 $(INCDIR)/libiberty.h \
425 $(INCDIR)/symcat.h \
426 ../bfd/bfd.h \
427 ../bfd/config.h \
428 cg_arcs.h \
429 corefile.h \
430 gconfig.h \
431 gprof.h \
432 search_list.h \
433 source.h \
434 symtab.h \
435 utils.h
436 i386.o: \
437 i386.c \
438 $(BFDDIR)/sysdep.h \
439 $(INCDIR)/ansidecl.h \
440 $(INCDIR)/filenames.h \
441 $(INCDIR)/fopen-same.h \
442 $(INCDIR)/symcat.h \
443 ../bfd/bfd.h \
444 ../bfd/config.h \
445 cg_arcs.h \
446 corefile.h \
447 gconfig.h \
448 gprof.h \
449 hist.h \
450 search_list.h \
451 source.h \
452 symtab.h
453 alpha.o: \
454 alpha.c \
455 $(BFDDIR)/sysdep.h \
456 $(INCDIR)/ansidecl.h \
457 $(INCDIR)/filenames.h \
458 $(INCDIR)/fopen-same.h \
459 $(INCDIR)/symcat.h \
460 ../bfd/bfd.h \
461 ../bfd/config.h \
462 cg_arcs.h \
463 corefile.h \
464 gconfig.h \
465 gprof.h \
466 hist.h \
467 search_list.h \
468 source.h \
469 symtab.h
470 vax.o: \
471 vax.c \
472 $(BFDDIR)/sysdep.h \
473 $(INCDIR)/ansidecl.h \
474 $(INCDIR)/filenames.h \
475 $(INCDIR)/fopen-same.h \
476 $(INCDIR)/symcat.h \
477 ../bfd/bfd.h \
478 ../bfd/config.h \
479 cg_arcs.h \
480 corefile.h \
481 gconfig.h \
482 gprof.h \
483 hist.h \
484 search_list.h \
485 source.h \
486 symtab.h
487 tahoe.o: \
488 tahoe.c \
489 $(BFDDIR)/sysdep.h \
490 $(INCDIR)/ansidecl.h \
491 $(INCDIR)/filenames.h \
492 $(INCDIR)/fopen-same.h \
493 $(INCDIR)/symcat.h \
494 ../bfd/bfd.h \
495 ../bfd/config.h \
496 cg_arcs.h \
497 corefile.h \
498 gconfig.h \
499 gprof.h \
500 hist.h \
501 search_list.h \
502 source.h \
503 symtab.h
504 sparc.o: \
505 sparc.c \
506 $(BFDDIR)/sysdep.h \
507 $(INCDIR)/ansidecl.h \
508 $(INCDIR)/filenames.h \
509 $(INCDIR)/fopen-same.h \
510 $(INCDIR)/symcat.h \
511 ../bfd/bfd.h \
512 ../bfd/config.h \
513 cg_arcs.h \
514 corefile.h \
515 gconfig.h \
516 gprof.h \
517 hist.h \
518 search_list.h \
519 source.h \
520 symtab.h
521 mips.o: \
522 mips.c \
523 $(BFDDIR)/sysdep.h \
524 $(INCDIR)/ansidecl.h \
525 $(INCDIR)/filenames.h \
526 $(INCDIR)/fopen-same.h \
527 $(INCDIR)/symcat.h \
528 ../bfd/bfd.h \
529 ../bfd/config.h \
530 cg_arcs.h \
531 corefile.h \
532 gconfig.h \
533 gprof.h \
534 hist.h \
535 search_list.h \
536 source.h \
537 symtab.h
538 flat_bl.o: \
539 flat_bl.c \
540 $(INCDIR)/ansidecl.h
541 bsd_callg_bl.o: \
542 bsd_callg_bl.c \
543 $(INCDIR)/ansidecl.h
544 fsf_callg_bl.o: \
545 fsf_callg_bl.c \
546 $(INCDIR)/ansidecl.h
547 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.043589 seconds and 4 git commands to generate.