Cleanups after the update to Autoconf 2.64, Automake 1.11.
[deliverable/binutils-gdb.git] / gprof / Makefile.am
CommitLineData
252b5132
RH
1## Process this file with automake to generate Makefile.in
2
3AUTOMAKE_OPTIONS = cygnus
79887925 4ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
252b5132
RH
5
6SUFFIXES = .m
7
8SUBDIRS = po
9
41b49281
AM
10BASEDIR = $(srcdir)/..
11BFDDIR = $(BASEDIR)/bfd
12INCDIR = $(BASEDIR)/include
13
a2d91340 14WARN_CFLAGS = @WARN_CFLAGS@
9e9b66a9 15NO_WERROR = @NO_WERROR@
a2d91340
AC
16AM_CFLAGS = $(WARN_CFLAGS)
17
41b49281
AM
18MKDEP = gcc -MM
19
0ab6f085 20INCLUDES = -DDEBUG -I../bfd -I$(srcdir)/../include \
92f01d61 21 -I$(srcdir)/../bfd @INCINTL@ -I. \
92f01d61 22 -DLOCALEDIR="\"$(datadir)/locale\""
252b5132
RH
23
24bin_PROGRAMS = gprof
25
26## Convenience var listing pure sources.
27sources = 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 \
ec0806ec 30 i386.c alpha.c vax.c tahoe.c sparc.c mips.c
252b5132 31gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
20e95c23
DJ
32gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL_DEP)
33gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL)
252b5132
RH
34
35noinst_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
252b5132 40BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
c45021f2 41EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
252b5132 42
c45021f2 43diststuff: $(BUILT_SOURCES) info $(man_MANS)
252b5132 44
253a2395
NC
45# This empty rule is a hack against gmake patched by Apple.
46%.o:%.m
47
252b5132
RH
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
53POTFILES = $(sources) $(noinst_HEADERS)
54po/POTFILES.in: @MAINT@ Makefile
323ee3f4 55 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
252b5132
RH
56 && mv tmp $(srcdir)/po/POTFILES.in
57
40f90528
AM
58MANCONF = -Dman
59
e49e529d 60TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
40f90528
AM
61
62POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
63
252b5132 64info_TEXINFOS = gprof.texi
37d037c1 65gprof_TEXINFOS = config.texi
252b5132
RH
66man_MANS = gprof.1
67
9975e4c4
DJ
68AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
69TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
e49e529d 70
dff70155
MM
71config.texi:
72 echo "@set top_srcdir $(top_srcdir)" >> ./config.texi
73
40f90528
AM
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.
dff70155 77gprof.1: $(srcdir)/gprof.texi config.texi
c45021f2 78 touch $@
40f90528
AM
79 -$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
80 -($(POD2MAN) gprof.pod | \
c45021f2
NC
81 sed -e '/^.if n .na/d' > $@.T$$$$ && \
82 mv -f $@.T$$$$ $@) || \
83 (rm -f $@.T$$$$ && exit 1)
40f90528
AM
84 rm -f gprof.pod
85
cd8e197b
HPN
86# We want install to imply install-info as per GNU standards, despite the
87# cygnus option.
6bf9431b 88install-data-local: install-info
cd8e197b 89
41b49281
AM
90# Targets to rebuild dependencies in this Makefile.
91# Have to get rid of DEP1 here so that "$?" later includes all sources.
92DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h
93 rm -f DEP1
94 $(MAKE) MKDEP="$(MKDEP)" DEP1
00f3247a
AM
95 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEP1
96 if grep ' /' DEP1 > /dev/null 2> /dev/null; then \
1581f8c9
AM
97 echo 'make DEP failed!'; exit 1; \
98 else \
00f3247a 99 mv -f DEP1 $@; \
1581f8c9 100 fi
41b49281
AM
101
102DEP1: $(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
00f3247a
AM
105 for f in $?; do \
106 $(MKDEP) $(INCLUDES) $(CFLAGS) $$f > DEPA; \
107 sed -n -e '1s/: .*/: \\/p' -e q < DEPA >> DEP2; \
67a648f1
AM
108 sed -e '1s/.*: //' -f dep.sed < DEPA | \
109 LC_ALL=C sort | LC_ALL=C uniq | \
00f3247a
AM
110 sed -e 's/^[AB]/ /' -e '$$s/ \\$$//' >> DEP2; \
111 done
112 rm -f DEPA
41b49281
AM
113 mv -f DEP2 $@
114
115dep.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)!' \
8e42bcb6
AM
121 -e "s!@OBJDIR@!$${objdir}!" \
122 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!'
41b49281
AM
123
124dep: 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
129dep-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
134dep-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
0bdaf48b 141CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
41b49281 142
d5fbea21
DJ
143MAINTAINERCLEANFILES = 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.
148if GENINSRC_NEVER
149DISTCLEANFILES = gprof.info
150endif
151
41b49281
AM
152# DO NOT DELETE THIS LINE -- mkdep uses it.
153# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
00f3247a
AM
154basic_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
174call_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
194cg_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
215cg_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
233cg_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
253corefile.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
271gmon_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
296gprof.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
322hertz.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 \
2b3decb5 333 hertz.h
00f3247a
AM
334hist.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
355source.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
369search_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
382symtab.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
398sym_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
417utils.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
436i386.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
453alpha.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
470vax.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
487tahoe.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
504sparc.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
521mips.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
538flat_bl.o: \
539 flat_bl.c \
540 $(INCDIR)/ansidecl.h
541bsd_callg_bl.o: \
542 bsd_callg_bl.c \
543 $(INCDIR)/ansidecl.h
544fsf_callg_bl.o: \
545 fsf_callg_bl.c \
546 $(INCDIR)/ansidecl.h
41b49281 547# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.435046 seconds and 4 git commands to generate.