Commit | Line | Data |
---|---|---|
252b5132 RH |
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 | INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\"" | |
10 | ||
11 | bin_PROGRAMS = gprof | |
12 | ||
13 | ## Convenience var listing pure sources. | |
14 | sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \ | |
15 | cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \ | |
16 | search_list.c symtab.c sym_ids.c utils.c \ | |
17 | i386.c alpha.c vax.c tahoe.c sparc.c | |
18 | gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c | |
19 | gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLDEPS) | |
20 | gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLLIBS) | |
21 | ||
22 | noinst_HEADERS = \ | |
23 | basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ | |
24 | corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \ | |
25 | search_list.h source.h sym_ids.h symtab.h utils.h | |
26 | ||
27 | EXTRA_DIST = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c bbconv.pl | |
28 | ||
29 | BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c | |
30 | ||
31 | diststuff: $(BUILT_SOURCES) info | |
32 | ||
33 | .m.c: | |
34 | awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \ | |
35 | FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \ | |
36 | FILE=$*.m $(srcdir)/$*.m | |
37 | ||
38 | POTFILES = $(sources) $(noinst_HEADERS) | |
39 | po/POTFILES.in: @MAINT@ Makefile | |
40 | for file in $(POTFILES); do echo $$file; done | sort > tmp \ | |
41 | && mv tmp $(srcdir)/po/POTFILES.in | |
42 | ||
43 | info_TEXINFOS = gprof.texi | |
44 | man_MANS = gprof.1 | |
45 | ||
46 | # Dependencies. | |
47 | $(OBJECTS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \ | |
fdcf7d43 | 48 | corefile.h gmon_io.h gmon.h gmon_out.h gprof.h hertz.h hist.h \ |
252b5132 RH |
49 | search_list.h source.h sym_ids.h symtab.h utils.h \ |
50 | $(srcdir)/../include/libiberty.h $(srcdir)/../bfd/sysdep.h \ | |
51 | gconfig.h ../bfd/config.h | |
52 | basic_blocks.o: basic_blocks.c | |
53 | bsd_call_bl.o: bsd_call_bl.c | |
54 | call_graph.o: call_graph.c | |
55 | cg_arcs.o: cg_arcs.c | |
56 | cg_dfn.o: cg_dfn.c | |
57 | cg_print.o: cg_print.c | |
58 | corefile.o: corefile.c | |
59 | flat_bl.o: flat_bl.c | |
60 | fsf_callg_bl.o: fsf_callg_bl.c | |
61 | gmon_io.o: gmon_io.c | |
62 | gprof.o: gprof.c | |
63 | hertz.o: hertz.c | |
64 | hist.o: hist.c | |
65 | search_list.o: search_list.c | |
66 | source.o: source.c | |
67 | symtab.o: symtab.c | |
68 | sym_ids.o: sym_ids.c | |
69 | utils.o: utils.c | |
70 | i386.o: i386.c | |
71 | alpha.o: alpha.c | |
72 | vax.o: vax.c | |
73 | tahoe.o: tahoe.c | |
74 | sparc.o: sparc.c |