]>
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 AC |
13 | WARN_CFLAGS = @WARN_CFLAGS@ |
14 | AM_CFLAGS = $(WARN_CFLAGS) | |
15 | ||
41b49281 AM |
16 | MKDEP = gcc -MM |
17 | ||
18 | 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 |
19 | |
20 | bin_PROGRAMS = gprof | |
21 | ||
22 | ## Convenience var listing pure sources. | |
23 | sources = 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 |
27 | gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c |
28 | gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLDEPS) | |
29 | gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(INTLLIBS) | |
30 | ||
31 | noinst_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 | 36 | BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c |
c45021f2 | 37 | EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS) |
252b5132 | 38 | |
c45021f2 | 39 | diststuff: $(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 | ||
46 | POTFILES = $(sources) $(noinst_HEADERS) | |
47 | po/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 |
51 | MANCONF = -Dman |
52 | ||
53 | TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl | |
54 | ||
55 | POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1 | |
56 | ||
252b5132 RH |
57 | info_TEXINFOS = gprof.texi |
58 | man_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 |
63 | gprof.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' > [email protected]$$$$ && \ |
68 | mv -f [email protected]$$$$ $@) || \ | |
69 | (rm -f [email protected]$$$$ && exit 1) | |
40f90528 AM |
70 | rm -f gprof.pod |
71 | ||
7997656a AM |
72 | Makefile: $(BFDDIR)/configure.in |
73 | ||
cd8e197b HPN |
74 | # We want install to imply install-info as per GNU standards, despite the |
75 | # cygnus option. | |
76 | install: 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. | |
80 | DEP: 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 | |
91 | DEP1: $(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 | ||
97 | dep.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)!' \ | |
8e42bcb6 AM |
103 | -e "s!@OBJDIR@!$${objdir}!" \ |
104 | -e 's!@TOPDIR@!'`echo $(srcdir) | sed -e s,/gprof$$,,`'!' | |
41b49281 AM |
105 | |
106 | dep: DEP | |
107 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile | |
108 | cat DEP >> tmp-Makefile | |
109 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile | |
110 | ||
111 | dep-in: DEP | |
112 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in | |
113 | cat DEP >> tmp-Makefile.in | |
114 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in | |
115 | ||
116 | dep-am: DEP | |
117 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am | |
118 | cat DEP >> tmp-Makefile.am | |
119 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am | |
120 | ||
121 | .PHONY: dep dep-in dep-am | |
122 | ||
0bdaf48b | 123 | CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 |
41b49281 AM |
124 | |
125 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
126 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
ba323545 AM |
127 | basic_blocks.o: basic_blocks.c $(INCDIR)/libiberty.h \ |
128 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
129 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ | |
130 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h basic_blocks.h \ | |
131 | corefile.h gmon_io.h gmon_out.h search_list.h source.h \ | |
132 | symtab.h sym_ids.h | |
133 | call_graph.o: call_graph.c gprof.h $(BFDDIR)/sysdep.h \ | |
134 | $(INCDIR)/ansidecl.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
135 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
136 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
137 | symtab.h cg_arcs.h call_graph.h corefile.h gmon_io.h \ | |
138 | gmon_out.h sym_ids.h | |
41b49281 AM |
139 | cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
140 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
141 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
142 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
143 | symtab.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \ | |
7997656a | 144 | utils.h sym_ids.h |
41b49281 AM |
145 | cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
146 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
147 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
148 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
149 | symtab.h cg_arcs.h cg_dfn.h utils.h | |
41b49281 | 150 | cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
ba323545 AM |
151 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ |
152 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
153 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
66477e87 | 154 | symtab.h cg_arcs.h cg_print.h hist.h utils.h corefile.h |
41b49281 AM |
155 | corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
156 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
157 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
158 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
159 | symtab.h corefile.h | |
160 | gmon_io.o: gmon_io.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ | |
161 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
162 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
163 | search_list.h source.h symtab.h cg_arcs.h basic_blocks.h \ | |
164 | corefile.h call_graph.h gmon_io.h gmon_out.h gmon.h \ | |
165 | hertz.h hist.h $(INCDIR)/libiberty.h | |
6f53ec68 AM |
166 | gprof.o: gprof.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
167 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
168 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
169 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
170 | symtab.h basic_blocks.h call_graph.h cg_arcs.h cg_print.h \ | |
171 | corefile.h gmon_io.h hertz.h hist.h sym_ids.h $(INCDIR)/demangle.h | |
ba323545 AM |
172 | hertz.o: hertz.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
173 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
174 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
175 | hertz.h | |
41b49281 AM |
176 | hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
177 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
ba323545 AM |
178 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ |
179 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
180 | symtab.h corefile.h gmon_io.h gmon_out.h hist.h sym_ids.h \ | |
181 | utils.h | |
182 | source.o: source.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ | |
2114f57b | 183 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
184 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
185 | $(INCDIR)/libiberty.h search_list.h source.h | |
41b49281 AM |
186 | search_list.o: search_list.c $(INCDIR)/libiberty.h \ |
187 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
ba323545 AM |
188 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ |
189 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h | |
190 | symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ | |
2114f57b | 191 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
192 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
193 | search_list.h source.h symtab.h cg_arcs.h corefile.h | |
41b49281 | 194 | sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
ba323545 AM |
195 | $(INCDIR)/safe-ctype.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ |
196 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h ../bfd/bfd.h \ | |
197 | $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h search_list.h \ | |
198 | source.h symtab.h cg_arcs.h sym_ids.h | |
8e42bcb6 AM |
199 | utils.o: utils.c $(INCDIR)/demangle.h $(INCDIR)/ansidecl.h \ |
200 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
201 | $(INCDIR)/filenames.h ../bfd/bfd.h $(INCDIR)/symcat.h \ | |
202 | gconfig.h $(INCDIR)/bin-bugs.h search_list.h source.h \ | |
203 | symtab.h cg_arcs.h utils.h | |
ba323545 | 204 | i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 205 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
206 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
207 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 208 | hist.h |
ba323545 | 209 | alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 210 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
211 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
212 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 213 | hist.h |
ba323545 | 214 | vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 215 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
216 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
217 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 218 | hist.h |
ba323545 | 219 | tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 220 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
221 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
222 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 223 | hist.h |
ba323545 | 224 | sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
2114f57b | 225 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
226 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
227 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
7997656a | 228 | hist.h |
ba323545 | 229 | mips.o: mips.c gprof.h $(BFDDIR)/sysdep.h $(INCDIR)/ansidecl.h \ |
ec0806ec | 230 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ |
ba323545 AM |
231 | ../bfd/bfd.h $(INCDIR)/symcat.h gconfig.h $(INCDIR)/bin-bugs.h \ |
232 | search_list.h source.h symtab.h cg_arcs.h corefile.h \ | |
ec0806ec | 233 | hist.h |
3099538b AM |
234 | flat_bl.o: flat_bl.c $(INCDIR)/ansidecl.h |
235 | bsd_callg_bl.o: bsd_callg_bl.c $(INCDIR)/ansidecl.h | |
236 | fsf_callg_bl.o: fsf_callg_bl.c $(INCDIR)/ansidecl.h | |
41b49281 | 237 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |