* target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
[deliverable/binutils-gdb.git] / gprof / Makefile.am
CommitLineData
252b5132
RH
1## Process this file with automake to generate Makefile.in
2
3AUTOMAKE_OPTIONS = cygnus
4
5SUFFIXES = .m
6
7SUBDIRS = po
8
41b49281
AM
9BASEDIR = $(srcdir)/..
10BFDDIR = $(BASEDIR)/bfd
11INCDIR = $(BASEDIR)/include
12
a2d91340 13WARN_CFLAGS = @WARN_CFLAGS@
9e9b66a9 14NO_WERROR = @NO_WERROR@
a2d91340
AC
15AM_CFLAGS = $(WARN_CFLAGS)
16
41b49281
AM
17MKDEP = gcc -MM
18
20e95c23 19INCLUDES = -D_GNU_SOURCE -DDEBUG -I../bfd -I$(srcdir)/../include -I$(srcdir)/../bfd @INCINTL@ -I. -DLOCALEDIR="\"$(datadir)/locale\""
252b5132
RH
20
21bin_PROGRAMS = gprof
22
23## Convenience var listing pure sources.
24sources = 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 28gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
20e95c23
DJ
29gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL_DEP)
30gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL)
252b5132
RH
31
32noinst_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 37BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
c45021f2 38EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
252b5132 39
c45021f2 40diststuff: $(BUILT_SOURCES) info $(man_MANS)
252b5132 41
253a2395
NC
42# This empty rule is a hack against gmake patched by Apple.
43%.o:%.m
44
252b5132
RH
45.m.c:
46 awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
47 FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
48 FILE=$*.m $(srcdir)/$*.m
49
50POTFILES = $(sources) $(noinst_HEADERS)
51po/POTFILES.in: @MAINT@ Makefile
68cdbb4a 52 for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
252b5132
RH
53 && mv tmp $(srcdir)/po/POTFILES.in
54
40f90528
AM
55MANCONF = -Dman
56
57TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl
58
59POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
60
252b5132 61info_TEXINFOS = gprof.texi
37d037c1 62gprof_TEXINFOS = config.texi
252b5132
RH
63man_MANS = gprof.1
64
dff70155
MM
65config.texi:
66 echo "@set top_srcdir $(top_srcdir)" >> ./config.texi
67
40f90528
AM
68# Build the man page from the texinfo file
69# The sed command removes the no-adjust Nroff command so that
70# the man output looks standard.
dff70155 71gprof.1: $(srcdir)/gprof.texi config.texi
c45021f2 72 touch $@
40f90528
AM
73 -$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
74 -($(POD2MAN) gprof.pod | \
c45021f2
NC
75 sed -e '/^.if n .na/d' > $@.T$$$$ && \
76 mv -f $@.T$$$$ $@) || \
77 (rm -f $@.T$$$$ && exit 1)
40f90528
AM
78 rm -f gprof.pod
79
108a6f8e
CD
80.PHONY: install-html install-html-am install-html-recursive
81
82html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
83
84install-html: install-html-recursive install-html-am
85
86install-html-am: $(HTMLS)
87 @$(NORMAL_INSTALL)
88 test -z "$(htmldir)" || $(mkdir_p) "$(DESTDIR)$(htmldir)"
89 @list='$(HTMLS)'; for p in $$list; do \
90 if test -f "$$p" || test -d "$$p"; then d=""; else d="$(srcdir)/"; fi; \
91 f=$(html__strip_dir) \
92 if test -d "$$d$$p"; then \
93 echo " $(mkdir_p) '$(DESTDIR)$(htmldir)/$$f'"; \
94 $(mkdir_p) "$(DESTDIR)$(htmldir)/$$f" || exit 1; \
95 echo " $(INSTALL_DATA) '$$d$$p'/* '$(DESTDIR)$(htmldir)/$$f'"; \
96 $(INSTALL_DATA) "$$d$$p"/* "$(DESTDIR)$(htmldir)/$$f"; \
97 else \
98 echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(htmldir)/$$f'"; \
99 $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(htmldir)/$$f"; \
100 fi; \
101 done
102
103install-html-recursive:
104 @failcom='exit 1'; \
105 for f in x $$MAKEFLAGS; do \
106 case $$f in \
107 *=* | --[!k]*);; \
108 *k*) failcom='fail=yes';; \
109 esac; \
110 done; \
111 dot_seen=no; \
112 target=`echo $@ | sed s/-recursive//`; \
113 list='$(SUBDIRS)'; for subdir in $$list; do \
114 echo "Making $$target in $$subdir"; \
115 if test "$$subdir" = "."; then \
116 dot_seen=yes; \
117 local_target="$$target-am"; \
118 else \
119 local_target="$$target"; \
120 fi; \
121 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
122 || eval $$failcom; \
123 done; \
124 if test "$$dot_seen" = "no"; then \
125 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
126 fi; test -z "$$fail"
127
cd8e197b
HPN
128# We want install to imply install-info as per GNU standards, despite the
129# cygnus option.
6bf9431b 130install-data-local: install-info
cd8e197b 131
41b49281
AM
132# Targets to rebuild dependencies in this Makefile.
133# Have to get rid of DEP1 here so that "$?" later includes all sources.
134DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h
135 rm -f DEP1
136 $(MAKE) MKDEP="$(MKDEP)" DEP1
0bdaf48b
AM
137 sed -f dep.sed < DEP1 > DEPA
138 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
139 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
1581f8c9
AM
140 echo 'make DEP failed!'; exit 1; \
141 else \
0bdaf48b 142 mv -f DEPA $@; \
1581f8c9 143 fi
41b49281
AM
144
145DEP1: $(gprof_SOURCES)
146 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
147 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
148 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
149 mv -f DEP2 $@
150
151dep.sed: dep-in.sed config.status
152 objdir=`pwd`; \
153 sed <$(srcdir)/dep-in.sed >dep.sed \
154 -e 's!@INCDIR@!$(INCDIR)!' \
155 -e 's!@BFDDIR@!$(BFDDIR)!' \
156 -e 's!@SRCDIR@!$(srcdir)!' \
8e42bcb6
AM
157 -e "s!@OBJDIR@!$${objdir}!" \
158 -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!'
41b49281
AM
159
160dep: DEP
161 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
162 cat DEP >> tmp-Makefile
163 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
164
165dep-in: DEP
166 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
167 cat DEP >> tmp-Makefile.in
168 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
169
170dep-am: DEP
171 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
172 cat DEP >> tmp-Makefile.am
173 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
174
175.PHONY: dep dep-in dep-am
176
0bdaf48b 177CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
41b49281 178
d5fbea21
DJ
179MAINTAINERCLEANFILES = gprof.info
180
181# Automake 1.9 will only build info files in the objdir if they are
182# mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
183# though, so we use a bogus condition.
184if GENINSRC_NEVER
185DISTCLEANFILES = gprof.info
186endif
187
41b49281
AM
188# DO NOT DELETE THIS LINE -- mkdep uses it.
189# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
ba323545
AM
190basic_blocks.o: basic_blocks.c $(INCDIR)/libiberty.h \
191 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
192 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \
193 $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h basic_blocks.h \
194 corefile.h gmon_io.h gmon_out.h search_list.h source.h \
195 symtab.h sym_ids.h
196call_graph.o: call_graph.c gprof.h $(BFDDIR)/sysdep.h \
197 $(INCDIR)/ansidecl.h ../bfd/config.h $(INCDIR)/fopen-same.h \
198 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
199 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
200 symtab.h cg_arcs.h call_graph.h corefile.h gmon_io.h \
201 gmon_out.h sym_ids.h
41b49281
AM
202cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
203 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
ba323545
AM
204 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
205 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
206 symtab.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
7997656a 207 utils.h sym_ids.h
41b49281
AM
208cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
209 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
ba323545
AM
210 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
211 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
212 symtab.h cg_arcs.h cg_dfn.h utils.h
41b49281 213cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
ba323545
AM
214 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
215 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
216 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
66477e87 217 symtab.h cg_arcs.h cg_print.h hist.h utils.h corefile.h
41b49281
AM
218corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
219 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
ba323545
AM
220 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
221 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
222 symtab.h corefile.h
223gmon_io.o: gmon_io.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
224 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
225 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
226 search_list.h source.h symtab.h cg_arcs.h basic_blocks.h \
227 corefile.h call_graph.h gmon_io.h gmon_out.h gmon.h \
228 hertz.h hist.h $(INCDIR)/libiberty.h
6f53ec68
AM
229gprof.o: gprof.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
230 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
231 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
232 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
233 symtab.h basic_blocks.h call_graph.h cg_arcs.h cg_print.h \
234 corefile.h gmon_io.h hertz.h hist.h sym_ids.h $(INCDIR)/demangle.h
ba323545
AM
235hertz.o: hertz.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
236 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
237 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
238 hertz.h
41b49281
AM
239hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
240 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
ba323545
AM
241 $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \
242 gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \
243 symtab.h corefile.h gmon_io.h gmon_out.h hist.h sym_ids.h \
244 utils.h
245source.o: source.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
2114f57b 246 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
ba323545
AM
247 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
248 $(INCDIR)/libiberty.h search_list.h source.h
41b49281
AM
249search_list.o: search_list.c $(INCDIR)/libiberty.h \
250 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
ba323545
AM
251 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \
252 $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h
253symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
2114f57b 254 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
ba323545
AM
255 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
256 search_list.h source.h symtab.h cg_arcs.h corefile.h
41b49281 257sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
ba323545
AM
258 $(INCDIR)/safe-ctype.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
259 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \
260 $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \
261 source.h symtab.h cg_arcs.h sym_ids.h
bfa36442
AM
262utils.o: utils.c $(INCDIR)/demangle.h $(INCDIR)/libiberty.h \
263 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
264 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \
265 $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \
266 source.h symtab.h cg_arcs.h utils.h
ba323545 267i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
2114f57b 268 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
ba323545
AM
269 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
270 search_list.h source.h symtab.h cg_arcs.h corefile.h \
7997656a 271 hist.h
ba323545 272alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
2114f57b 273 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
ba323545
AM
274 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
275 search_list.h source.h symtab.h cg_arcs.h corefile.h \
7997656a 276 hist.h
ba323545 277vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
2114f57b 278 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
ba323545
AM
279 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
280 search_list.h source.h symtab.h cg_arcs.h corefile.h \
7997656a 281 hist.h
ba323545 282tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
2114f57b 283 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
ba323545
AM
284 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
285 search_list.h source.h symtab.h cg_arcs.h corefile.h \
7997656a 286 hist.h
ba323545 287sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
2114f57b 288 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
ba323545
AM
289 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
290 search_list.h source.h symtab.h cg_arcs.h corefile.h \
7997656a 291 hist.h
ba323545 292mips.o: mips.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \
ec0806ec 293 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
ba323545
AM
294 ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \
295 search_list.h source.h symtab.h cg_arcs.h corefile.h \
ec0806ec 296 hist.h
3099538b
AM
297flat_bl.o: flat_bl.c $(INCDIR)/ansidecl.h
298bsd_callg_bl.o: bsd_callg_bl.c $(INCDIR)/ansidecl.h
299fsf_callg_bl.o: fsf_callg_bl.c $(INCDIR)/ansidecl.h
41b49281 300# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.300399 seconds and 4 git commands to generate.