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 | ||
a2d91340 | 13 | WARN_CFLAGS = @WARN_CFLAGS@ |
9e9b66a9 | 14 | NO_WERROR = @NO_WERROR@ |
a2d91340 AC |
15 | AM_CFLAGS = $(WARN_CFLAGS) |
16 | ||
41b49281 AM |
17 | MKDEP = gcc -MM |
18 | ||
32118081 | 19 | INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd -I$(srcdir)/../intl -I../intl -I. -DLOCALEDIR="\"$(datadir)/locale\"" |
252b5132 RH |
20 | |
21 | bin_PROGRAMS = gprof | |
22 | ||
23 | ## Convenience var listing pure sources. | |
24 | sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \ | |
25 | cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \ | |
26 | search_list.c symtab.c sym_ids.c utils.c \ | |
ec0806ec | 27 | i386.c alpha.c vax.c tahoe.c sparc.c mips.c |
252b5132 RH |
28 | gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c |
29 | gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLDEPS) | |
30 | gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLLIBS) | |
31 | ||
32 | noinst_HEADERS = \ | |
33 | basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ | |
34 | corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \ | |
35 | search_list.h source.h sym_ids.h symtab.h utils.h | |
36 | ||
252b5132 | 37 | BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c |
c45021f2 | 38 | EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS) |
252b5132 | 39 | |
c45021f2 | 40 | diststuff: $(BUILT_SOURCES) info $(man_MANS) |
252b5132 RH |
41 | |
42 | .m.c: | |
43 | awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \ | |
44 | FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \ | |
45 | FILE=$*.m $(srcdir)/$*.m | |
46 | ||
47 | POTFILES = $(sources) $(noinst_HEADERS) | |
48 | po/POTFILES.in: @MAINT@ Makefile | |
68cdbb4a | 49 | for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \ |
252b5132 RH |
50 | && mv tmp $(srcdir)/po/POTFILES.in |
51 | ||
40f90528 AM |
52 | MANCONF = -Dman |
53 | ||
54 | TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl | |
55 | ||
56 | POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1 | |
57 | ||
252b5132 RH |
58 | info_TEXINFOS = gprof.texi |
59 | man_MANS = gprof.1 | |
60 | ||
40f90528 AM |
61 | # Build the man page from the texinfo file |
62 | # The sed command removes the no-adjust Nroff command so that | |
63 | # the man output looks standard. | |
c45021f2 NC |
64 | gprof.1: $(srcdir)/gprof.texi |
65 | touch $@ | |
40f90528 AM |
66 | -$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod |
67 | -($(POD2MAN) gprof.pod | \ | |
c45021f2 NC |
68 | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
69 | mv -f $@.T$$$$ $@) || \ | |
70 | (rm -f $@.T$$$$ && exit 1) | |
40f90528 AM |
71 | rm -f gprof.pod |
72 | ||
7997656a AM |
73 | Makefile: $(BFDDIR)/configure.in |
74 | ||
cd8e197b HPN |
75 | # We want install to imply install-info as per GNU standards, despite the |
76 | # cygnus option. | |
6bf9431b | 77 | install-data-local: install-info |
cd8e197b | 78 | |
41b49281 AM |
79 | # Targets to rebuild dependencies in this Makefile. |
80 | # Have to get rid of DEP1 here so that "$?" later includes all sources. | |
81 | DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h | |
82 | rm -f DEP1 | |
83 | $(MAKE) MKDEP="$(MKDEP)" DEP1 | |
0bdaf48b AM |
84 | sed -f dep.sed < DEP1 > DEPA |
85 | echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA | |
86 | if grep ' /' DEPA > /dev/null 2> /dev/null; then \ | |
1581f8c9 AM |
87 | echo 'make DEP failed!'; exit 1; \ |
88 | else \ | |
0bdaf48b | 89 | mv -f DEPA $@; \ |
1581f8c9 | 90 | fi |
41b49281 AM |
91 | |
92 | DEP1: $(gprof_SOURCES) | |
93 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2 | |
94 | echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2 | |
95 | $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2 | |
96 | mv -f DEP2 $@ | |
97 | ||
98 | dep.sed: dep-in.sed config.status | |
99 | objdir=`pwd`; \ | |
100 | sed <$(srcdir)/dep-in.sed >dep.sed \ | |
101 | -e 's!@INCDIR@!$(INCDIR)!' \ | |
102 | -e 's!@BFDDIR@!$(BFDDIR)!' \ | |
103 | -e 's!@SRCDIR@!$(srcdir)!' \ | |
8e42bcb6 AM |
104 | -e "s!@OBJDIR@!$${objdir}!" \ |
105 | -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!' | |
41b49281 AM |
106 | |
107 | dep: DEP | |
108 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile | |
109 | cat DEP >> tmp-Makefile | |
110 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile | |
111 | ||
112 | dep-in: DEP | |
113 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in | |
114 | cat DEP >> tmp-Makefile.in | |
115 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in | |
116 | ||
117 | dep-am: DEP | |
118 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am | |
119 | cat DEP >> tmp-Makefile.am | |
120 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am | |
121 | ||
122 | .PHONY: dep dep-in dep-am | |
123 | ||
0bdaf48b | 124 | CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 |
41b49281 AM |
125 | |
126 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
127 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
ba323545 AM |
128 | basic_blocks.o: basic_blocks.c $(INCDIR)/libiberty.h \ |
129 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
130 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ | |
131 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h basic_blocks.h \ | |
132 | corefile.h gmon_io.h gmon_out.h search_list.h source.h \ | |
133 | symtab.h sym_ids.h | |
134 | call_graph.o: call_graph.c gprof.h $(BFDDIR)/sysdep.h \ | |
135 | $(INCDIR)/ansidecl.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
136 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
137 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
138 | symtab.h cg_arcs.h call_graph.h corefile.h gmon_io.h \ | |
139 | gmon_out.h sym_ids.h | |
41b49281 AM |
140 | cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
141 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
142 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
143 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
144 | symtab.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ | |
7997656a | 145 | utils.h sym_ids.h |
41b49281 AM |
146 | cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
147 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
148 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
149 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
150 | symtab.h cg_arcs.h cg_dfn.h utils.h | |
41b49281 | 151 | cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
ba323545 AM |
152 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ |
153 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
154 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
66477e87 | 155 | symtab.h cg_arcs.h cg_print.h hist.h utils.h corefile.h |
41b49281 AM |
156 | corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
157 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
158 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
159 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
160 | symtab.h corefile.h | |
161 | gmon_io.o: gmon_io.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ | |
162 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
163 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
164 | search_list.h source.h symtab.h cg_arcs.h basic_blocks.h \ | |
165 | corefile.h call_graph.h gmon_io.h gmon_out.h gmon.h \ | |
166 | hertz.h hist.h $(INCDIR)/libiberty.h | |
6f53ec68 AM |
167 | gprof.o: gprof.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
168 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
169 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
170 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
171 | symtab.h basic_blocks.h call_graph.h cg_arcs.h cg_print.h \ | |
172 | corefile.h gmon_io.h hertz.h hist.h sym_ids.h $(INCDIR)/demangle.h | |
ba323545 AM |
173 | hertz.o: hertz.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
174 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
175 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
176 | hertz.h | |
41b49281 AM |
177 | hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
178 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
179 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
180 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
181 | symtab.h corefile.h gmon_io.h gmon_out.h hist.h sym_ids.h \ | |
182 | utils.h | |
183 | source.o: source.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ | |
2114f57b | 184 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
185 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
186 | $(INCDIR)/libiberty.h search_list.h source.h | |
41b49281 AM |
187 | search_list.o: search_list.c $(INCDIR)/libiberty.h \ |
188 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
ba323545 AM |
189 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ |
190 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h | |
191 | symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ | |
2114f57b | 192 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
193 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
194 | search_list.h source.h symtab.h cg_arcs.h corefile.h | |
41b49281 | 195 | sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
ba323545 AM |
196 | $(INCDIR)/safe-ctype.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ |
197 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ | |
198 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \ | |
199 | source.h symtab.h cg_arcs.h sym_ids.h | |
bfa36442 AM |
200 | utils.o: utils.c $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ |
201 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
202 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ | |
203 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \ | |
204 | source.h symtab.h cg_arcs.h utils.h | |
ba323545 | 205 | i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 206 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
207 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
208 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 209 | hist.h |
ba323545 | 210 | alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 211 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
212 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
213 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 214 | hist.h |
ba323545 | 215 | vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 216 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
217 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
218 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 219 | hist.h |
ba323545 | 220 | tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 221 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
222 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
223 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 224 | hist.h |
ba323545 | 225 | sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 226 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
227 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
228 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 229 | hist.h |
ba323545 | 230 | mips.o: mips.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
ec0806ec | 231 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
232 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
233 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
ec0806ec | 234 | hist.h |
3099538b AM |
235 | flat_bl.o: flat_bl.c $(INCDIR)/ansidecl.h |
236 | bsd_callg_bl.o: bsd_callg_bl.c $(INCDIR)/ansidecl.h | |
237 | fsf_callg_bl.o: fsf_callg_bl.c $(INCDIR)/ansidecl.h | |
41b49281 | 238 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |