Change to use automake:
[external/binutils.git] / gprof / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 ## We should have cygnus in AUTOMAKE_OPTIONS, but it doesn't work yet.
4 AUTOMAKE_OPTIONS = foreign
5
6 SUFFIXES = .m
7
8 INCLUDES = -D_GNU_SOURCE -DTARGET_$(MY_TARGET) -DMACHINE_H=\"$(MY_TARGET).h\" -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd
9
10 LINK = $(HLDENV) $(CC) $(LDFLAGS) -o $@
11
12 MY_TARGET = @MY_TARGET@
13
14 bin_PROGRAMS = gprof
15
16 gprof_SOURCES = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
17         cg_print.c core.c gmon_io.c gprof.c hertz.c hist.c source.c \
18         search_list.c symtab.c sym_ids.c utils.c \
19         flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
20 gprof_LDFLAGS = $(HLDFLAGS)
21 gprof_DEPENDENCIES = $(MY_TARGET).o ../bfd/libbfd.a ../libiberty/libiberty.a
22 gprof_LDADD = $(MY_TARGET).o @BFDLIB@ ../libiberty/libiberty.a
23
24 noinst_HEADERS = \
25         alpha.h i386.h ns532.h sparc.h tahoe.h vax.h dummy.h \
26         basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
27         core.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
28         search_list.h source.h sparc.h sym_ids.h symtab.h utils.h
29
30 EXTRA_DIST = \
31         alpha.c i386.c ns532.c sparc.c tahoe.c vax.c dummy.c \
32         flat_bl.c bsd_callg_bl.c fsf_callg_bl.c \
33
34 BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
35
36 .m.c:
37         awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
38             FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
39             FILE=$*.m $(srcdir)/$*.m
40
41 info_TEXINFOS = gprof.texi
42 man_MANS = gprof.1
43
44 # Dependencies.
45 $(OBJECTS): ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \
46         core.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
47         search_list.h source.h sym_ids.h symtab.h utils.h \
48         $(srcdir)/../include/libiberty.h $(srcdir)/../bfd/sysdep.h \
49         $(MY_TARGET).h
50 $(MY_TARGET).o: $(MY_TARGET).c
51 basic_blocks.o: basic_blocks.c
52 bsd_call_bl.o: bsd_call_bl.c
53 call_graph.o: call_graph.c
54 cg_arcs.o: cg_arcs.c
55 cg_dfn.o: cg_dfn.c
56 cg_print.o: cg_print.c
57 core.o: core.c
58 flat_bl.o: flat_bl.c
59 fsf_callg_bl.o: fsf_callg_bl.c
60 gmon_io.o: gmon_io.c
61 gprof.o: gprof.c
62 hertz.o: hertz.c
63 hist.o: hist.c
64 search_list.o: search_list.c
65 source.o: source.c
66 symtab.o: symtab.c
67 sym_ids.o: sym_ids.c
68 utils.o: utils.c