2e98d243daa7ddc9fe2a7b579a65fc2855d8788f
[platform/upstream/binutils.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 INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd
8
9 bin_PROGRAMS = gprof
10
11 gprof_SOURCES = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
12         cg_print.c core.c gmon_io.c gprof.c hertz.c hist.c source.c \
13         search_list.c symtab.c sym_ids.c utils.c \
14         flat_bl.c bsd_callg_bl.c fsf_callg_bl.c \
15         i386.c alpha.c vax.c tahoe.c sparc.c
16 gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a
17 gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a
18
19 noinst_HEADERS = \
20         basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
21         core.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
22         search_list.h source.h sym_ids.h symtab.h utils.h
23
24 EXTRA_DIST = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c bbconv.pl
25
26 BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
27
28 diststuff: $(BUILT_SOURCES) info
29
30 .m.c:
31         awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
32             FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
33             FILE=$*.m $(srcdir)/$*.m
34
35 info_TEXINFOS = gprof.texi
36 man_MANS = gprof.1
37
38 # Dependencies.
39 $(OBJECTS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \
40         core.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
41         search_list.h source.h sym_ids.h symtab.h utils.h \
42         $(srcdir)/../include/libiberty.h $(srcdir)/../bfd/sysdep.h \
43         gconfig.h ../bfd/config.h
44 basic_blocks.o: basic_blocks.c
45 bsd_call_bl.o: bsd_call_bl.c
46 call_graph.o: call_graph.c
47 cg_arcs.o: cg_arcs.c
48 cg_dfn.o: cg_dfn.c
49 cg_print.o: cg_print.c
50 core.o: core.c
51 flat_bl.o: flat_bl.c
52 fsf_callg_bl.o: fsf_callg_bl.c
53 gmon_io.o: gmon_io.c
54 gprof.o: gprof.c
55 hertz.o: hertz.c
56 hist.o: hist.c
57 search_list.o: search_list.c
58 source.o: source.c
59 symtab.o: symtab.c
60 sym_ids.o: sym_ids.c
61 utils.o: utils.c
62 i386.o: i386.c
63 alpha.o: alpha.c
64 vax.o: vax.c
65 tahoe.o: tahoe.c
66 sparc.o: sparc.c