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 | ||
dff70155 MM |
61 | $(srcdir)/gprof.info: gprof.texi config.texi |
62 | ||
63 | config.texi: | |
64 | echo "@set top_srcdir $(top_srcdir)" >> ./config.texi | |
65 | ||
40f90528 AM |
66 | # Build the man page from the texinfo file |
67 | # The sed command removes the no-adjust Nroff command so that | |
68 | # the man output looks standard. | |
dff70155 | 69 | gprof.1: $(srcdir)/gprof.texi config.texi |
c45021f2 | 70 | touch $@ |
40f90528 AM |
71 | -$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod |
72 | -($(POD2MAN) gprof.pod | \ | |
c45021f2 NC |
73 | sed -e '/^.if n .na/d' > $@.T$$$$ && \ |
74 | mv -f $@.T$$$$ $@) || \ | |
75 | (rm -f $@.T$$$$ && exit 1) | |
40f90528 AM |
76 | rm -f gprof.pod |
77 | ||
cd8e197b HPN |
78 | # We want install to imply install-info as per GNU standards, despite the |
79 | # cygnus option. | |
6bf9431b | 80 | install-data-local: install-info |
cd8e197b | 81 | |
41b49281 AM |
82 | # Targets to rebuild dependencies in this Makefile. |
83 | # Have to get rid of DEP1 here so that "$?" later includes all sources. | |
84 | DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h | |
85 | rm -f DEP1 | |
86 | $(MAKE) MKDEP="$(MKDEP)" DEP1 | |
0bdaf48b AM |
87 | sed -f dep.sed < DEP1 > DEPA |
88 | echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA | |
89 | if grep ' /' DEPA > /dev/null 2> /dev/null; then \ | |
1581f8c9 AM |
90 | echo 'make DEP failed!'; exit 1; \ |
91 | else \ | |
0bdaf48b | 92 | mv -f DEPA $@; \ |
1581f8c9 | 93 | fi |
41b49281 AM |
94 | |
95 | DEP1: $(gprof_SOURCES) | |
96 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2 | |
97 | echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2 | |
98 | $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2 | |
99 | mv -f DEP2 $@ | |
100 | ||
101 | dep.sed: dep-in.sed config.status | |
102 | objdir=`pwd`; \ | |
103 | sed <$(srcdir)/dep-in.sed >dep.sed \ | |
104 | -e 's!@INCDIR@!$(INCDIR)!' \ | |
105 | -e 's!@BFDDIR@!$(BFDDIR)!' \ | |
106 | -e 's!@SRCDIR@!$(srcdir)!' \ | |
8e42bcb6 AM |
107 | -e "s!@OBJDIR@!$${objdir}!" \ |
108 | -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!' | |
41b49281 AM |
109 | |
110 | dep: DEP | |
111 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile | |
112 | cat DEP >> tmp-Makefile | |
113 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile | |
114 | ||
115 | dep-in: DEP | |
116 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in | |
117 | cat DEP >> tmp-Makefile.in | |
118 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in | |
119 | ||
120 | dep-am: DEP | |
121 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am | |
122 | cat DEP >> tmp-Makefile.am | |
123 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am | |
124 | ||
125 | .PHONY: dep dep-in dep-am | |
126 | ||
0bdaf48b | 127 | CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 |
41b49281 AM |
128 | |
129 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
130 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
ba323545 AM |
131 | basic_blocks.o: basic_blocks.c $(INCDIR)/libiberty.h \ |
132 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
133 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ | |
134 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h basic_blocks.h \ | |
135 | corefile.h gmon_io.h gmon_out.h search_list.h source.h \ | |
136 | symtab.h sym_ids.h | |
137 | call_graph.o: call_graph.c gprof.h $(BFDDIR)/sysdep.h \ | |
138 | $(INCDIR)/ansidecl.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
139 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
140 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
141 | symtab.h cg_arcs.h call_graph.h corefile.h gmon_io.h \ | |
142 | gmon_out.h sym_ids.h | |
41b49281 AM |
143 | cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
144 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
145 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
146 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
147 | symtab.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ | |
7997656a | 148 | utils.h sym_ids.h |
41b49281 AM |
149 | cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
150 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
151 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
152 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
153 | symtab.h cg_arcs.h cg_dfn.h utils.h | |
41b49281 | 154 | cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
ba323545 AM |
155 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ |
156 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
157 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
66477e87 | 158 | symtab.h cg_arcs.h cg_print.h hist.h utils.h corefile.h |
41b49281 AM |
159 | corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
160 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
161 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
162 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
163 | symtab.h corefile.h | |
164 | gmon_io.o: gmon_io.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ | |
165 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
166 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
167 | search_list.h source.h symtab.h cg_arcs.h basic_blocks.h \ | |
168 | corefile.h call_graph.h gmon_io.h gmon_out.h gmon.h \ | |
169 | hertz.h hist.h $(INCDIR)/libiberty.h | |
6f53ec68 AM |
170 | gprof.o: gprof.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
171 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
172 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
173 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
174 | symtab.h basic_blocks.h call_graph.h cg_arcs.h cg_print.h \ | |
175 | corefile.h gmon_io.h hertz.h hist.h sym_ids.h $(INCDIR)/demangle.h | |
ba323545 AM |
176 | hertz.o: hertz.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
177 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
178 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
179 | hertz.h | |
41b49281 AM |
180 | hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
181 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
182 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
183 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
184 | symtab.h corefile.h gmon_io.h gmon_out.h hist.h sym_ids.h \ | |
185 | utils.h | |
186 | source.o: source.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ | |
2114f57b | 187 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
188 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
189 | $(INCDIR)/libiberty.h search_list.h source.h | |
41b49281 AM |
190 | search_list.o: search_list.c $(INCDIR)/libiberty.h \ |
191 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
ba323545 AM |
192 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ |
193 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h | |
194 | symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ | |
2114f57b | 195 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
196 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
197 | search_list.h source.h symtab.h cg_arcs.h corefile.h | |
41b49281 | 198 | sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
ba323545 AM |
199 | $(INCDIR)/safe-ctype.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ |
200 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ | |
201 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \ | |
202 | source.h symtab.h cg_arcs.h sym_ids.h | |
bfa36442 AM |
203 | utils.o: utils.c $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \ |
204 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
205 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ | |
206 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \ | |
207 | source.h symtab.h cg_arcs.h utils.h | |
ba323545 | 208 | i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 209 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
210 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
211 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 212 | hist.h |
ba323545 | 213 | alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 214 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
215 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
216 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 217 | hist.h |
ba323545 | 218 | vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 219 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
220 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
221 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 222 | hist.h |
ba323545 | 223 | tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 224 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
225 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
226 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 227 | hist.h |
ba323545 | 228 | sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 229 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
230 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
231 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 232 | hist.h |
ba323545 | 233 | mips.o: mips.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
ec0806ec | 234 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
235 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
236 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
ec0806ec | 237 | hist.h |
3099538b AM |
238 | flat_bl.o: flat_bl.c $(INCDIR)/ansidecl.h |
239 | bsd_callg_bl.o: bsd_callg_bl.c $(INCDIR)/ansidecl.h | |
240 | fsf_callg_bl.o: fsf_callg_bl.c $(INCDIR)/ansidecl.h | |
41b49281 | 241 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |