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 | ||
41b49281 AM |
9 | BASEDIR = $(srcdir)/.. |
10 | BFDDIR = $(BASEDIR)/bfd | |
11 | INCDIR = $(BASEDIR)/include | |
12 | ||
13 | MKDEP = gcc -MM | |
14 | ||
15 | INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -I. -DLOCALEDIR="\"$(prefix)/share/locale\"" | |
252b5132 RH |
16 | |
17 | bin_PROGRAMS = gprof | |
18 | ||
19 | ## Convenience var listing pure sources. | |
20 | sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \ | |
21 | cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \ | |
22 | search_list.c symtab.c sym_ids.c utils.c \ | |
23 | i386.c alpha.c vax.c tahoe.c sparc.c | |
24 | gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c | |
25 | gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLDEPS) | |
26 | gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLLIBS) | |
27 | ||
28 | noinst_HEADERS = \ | |
29 | basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ | |
30 | corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \ | |
31 | search_list.h source.h sym_ids.h symtab.h utils.h | |
32 | ||
33 | EXTRA_DIST = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c bbconv.pl | |
34 | ||
35 | BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c | |
36 | ||
37 | diststuff: $(BUILT_SOURCES) info | |
38 | ||
39 | .m.c: | |
40 | awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \ | |
41 | FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \ | |
42 | FILE=$*.m $(srcdir)/$*.m | |
43 | ||
44 | POTFILES = $(sources) $(noinst_HEADERS) | |
45 | po/POTFILES.in: @MAINT@ Makefile | |
46 | for file in $(POTFILES); do echo $$file; done | sort > tmp \ | |
47 | && mv tmp $(srcdir)/po/POTFILES.in | |
48 | ||
49 | info_TEXINFOS = gprof.texi | |
50 | man_MANS = gprof.1 | |
51 | ||
41b49281 AM |
52 | # Targets to rebuild dependencies in this Makefile. |
53 | # Have to get rid of DEP1 here so that "$?" later includes all sources. | |
54 | DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h | |
55 | rm -f DEP1 | |
56 | $(MAKE) MKDEP="$(MKDEP)" DEP1 | |
57 | sed -f dep.sed < DEP1 > $@ | |
58 | echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@ | |
59 | ||
60 | DEP1: $(gprof_SOURCES) | |
61 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2 | |
62 | echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2 | |
63 | $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2 | |
64 | mv -f DEP2 $@ | |
65 | ||
66 | dep.sed: dep-in.sed config.status | |
67 | objdir=`pwd`; \ | |
68 | sed <$(srcdir)/dep-in.sed >dep.sed \ | |
69 | -e 's!@INCDIR@!$(INCDIR)!' \ | |
70 | -e 's!@BFDDIR@!$(BFDDIR)!' \ | |
71 | -e 's!@SRCDIR@!$(srcdir)!' \ | |
72 | -e "s!@OBJDIR@!$${objdir}!" | |
73 | ||
74 | dep: DEP | |
75 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile | |
76 | cat DEP >> tmp-Makefile | |
77 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile | |
78 | ||
79 | dep-in: DEP | |
80 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in | |
81 | cat DEP >> tmp-Makefile.in | |
82 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in | |
83 | ||
84 | dep-am: DEP | |
85 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am | |
86 | cat DEP >> tmp-Makefile.am | |
87 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am | |
88 | ||
89 | .PHONY: dep dep-in dep-am | |
90 | ||
91 | CLEANFILES = dep.sed DEP DEP1 DEP2 | |
92 | ||
93 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
94 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
95 | basic_blocks.o: basic_blocks.c basic_blocks.h gprof.h \ | |
96 | $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
97 | gconfig.h $(INCDIR)/bin-bugs.h source.h search_list.h \ | |
98 | symtab.h ../bfd/bfd.h corefile.h gmon_io.h gmon.h gmon_out.h \ | |
99 | $(INCDIR)/libiberty.h sym_ids.h | |
100 | call_graph.o: call_graph.c cg_arcs.h gprof.h $(BFDDIR)/sysdep.h \ | |
101 | ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
102 | symtab.h ../bfd/bfd.h source.h search_list.h call_graph.h \ | |
103 | corefile.h gmon_io.h gmon.h gmon_out.h sym_ids.h | |
104 | cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ | |
105 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
106 | gconfig.h $(INCDIR)/bin-bugs.h call_graph.h symtab.h \ | |
107 | ../bfd/bfd.h source.h search_list.h cg_arcs.h cg_dfn.h \ | |
108 | cg_print.h utils.h sym_ids.h | |
109 | cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ | |
110 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
111 | gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \ | |
112 | source.h search_list.h cg_dfn.h utils.h | |
113 | cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ | |
114 | cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
115 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
116 | symtab.h ../bfd/bfd.h source.h search_list.h cg_print.h \ | |
117 | hist.h utils.h | |
118 | corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ | |
119 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
120 | gconfig.h $(INCDIR)/bin-bugs.h corefile.h ../bfd/bfd.h \ | |
121 | symtab.h source.h search_list.h | |
122 | gmon_io.o: gmon_io.c cg_arcs.h gprof.h $(BFDDIR)/sysdep.h \ | |
123 | ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
124 | symtab.h ../bfd/bfd.h source.h search_list.h basic_blocks.h \ | |
125 | corefile.h call_graph.h gmon_io.h gmon.h gmon_out.h \ | |
126 | hertz.h hist.h $(INCDIR)/libiberty.h | |
127 | gprof.o: gprof.c $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \ | |
128 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
129 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
130 | basic_blocks.h source.h search_list.h symtab.h ../bfd/bfd.h \ | |
131 | call_graph.h cg_arcs.h cg_print.h corefile.h gmon_io.h \ | |
132 | gmon.h hertz.h hist.h sym_ids.h | |
133 | hertz.o: hertz.c hertz.h gprof.h $(BFDDIR)/sysdep.h \ | |
134 | ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h | |
135 | hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ | |
136 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
137 | gconfig.h $(INCDIR)/bin-bugs.h corefile.h ../bfd/bfd.h \ | |
138 | gmon_io.h gmon.h gmon_out.h hist.h symtab.h source.h \ | |
139 | search_list.h sym_ids.h utils.h | |
140 | source.o: source.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
141 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
142 | $(INCDIR)/libiberty.h search_list.h source.h | |
143 | search_list.o: search_list.c $(INCDIR)/libiberty.h \ | |
144 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
145 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
146 | search_list.h | |
147 | symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
148 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
149 | cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ | |
150 | corefile.h | |
151 | sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ | |
152 | cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
153 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
154 | symtab.h ../bfd/bfd.h source.h search_list.h sym_ids.h | |
155 | utils.o: utils.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
156 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
157 | cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h | |
158 | i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
159 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
160 | cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ | |
161 | corefile.h hist.h | |
162 | alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
163 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
164 | cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ | |
165 | corefile.h hist.h | |
166 | vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
167 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
168 | cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ | |
169 | corefile.h hist.h | |
170 | tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
171 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
172 | cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ | |
173 | corefile.h hist.h | |
174 | sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
175 | $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
176 | cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ | |
177 | corefile.h hist.h | |
252b5132 | 178 | flat_bl.o: flat_bl.c |
41b49281 | 179 | bsd_callg_bl.o: bsd_callg_bl.c |
252b5132 | 180 | fsf_callg_bl.o: fsf_callg_bl.c |
41b49281 | 181 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |