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