]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprof/Makefile.am
* Makefile.am (install): Depend on install-info.
[thirdparty/binutils-gdb.git] / gprof / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS = cygnus
4
5 SUFFIXES = .m
6
7 SUBDIRS = po
8
9 BASEDIR = $(srcdir)/..
10 BFDDIR = $(BASEDIR)/bfd
11 INCDIR = $(BASEDIR)/include
12
13 WARN_CFLAGS = @WARN_CFLAGS@
14 AM_CFLAGS = $(WARN_CFLAGS)
15
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\""
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 \
26 i386.c alpha.c vax.c tahoe.c sparc.c mips.c
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
36 BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
37 EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
38
39 diststuff: $(BUILT_SOURCES) info $(man_MANS)
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
51 MANCONF = -Dman
52
53 TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl
54
55 POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
56
57 info_TEXINFOS = gprof.texi
58 man_MANS = gprof.1
59
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.
63 gprof.1: $(srcdir)/gprof.texi
64 touch $@
65 -$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
66 -($(POD2MAN) gprof.pod | \
67 sed -e '/^.if n .na/d' > $@.T$$$$ && \
68 mv -f $@.T$$$$ $@) || \
69 (rm -f $@.T$$$$ && exit 1)
70 rm -f gprof.pod
71
72 Makefile: $(BFDDIR)/configure.in
73
74 # We want install to imply install-info as per GNU standards, despite the
75 # cygnus option.
76 install: install-info
77
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
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 \
86 echo 'make DEP failed!'; exit 1; \
87 else \
88 mv -f DEPA $@; \
89 fi
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)!' \
103 -e "s!@OBJDIR@!$${objdir}!"
104
105 dep: 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
110 dep-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
115 dep-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
122 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
123
124 # DO NOT DELETE THIS LINE -- mkdep uses it.
125 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
126 basic_blocks.o: basic_blocks.c basic_blocks.h gprof.h \
127 $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h ../bfd/config.h \
128 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
129 $(INCDIR)/bin-bugs.h source.h search_list.h symtab.h \
130 ../bfd/bfd.h $(INCDIR)/symcat.h corefile.h gmon_io.h \
131 gmon.h gmon_out.h $(INCDIR)/libiberty.h sym_ids.h
132 call_graph.o: call_graph.c cg_arcs.h gprof.h $(INCDIR)/ansidecl.h \
133 $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
134 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
135 symtab.h ../bfd/bfd.h $(INCDIR)/symcat.h source.h search_list.h \
136 call_graph.h corefile.h gmon_io.h gmon.h gmon_out.h \
137 sym_ids.h
138 cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
139 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
140 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
141 call_graph.h symtab.h ../bfd/bfd.h $(INCDIR)/symcat.h \
142 source.h search_list.h cg_arcs.h cg_dfn.h cg_print.h \
143 utils.h sym_ids.h
144 cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
145 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
146 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
147 cg_arcs.h symtab.h ../bfd/bfd.h $(INCDIR)/symcat.h \
148 source.h search_list.h cg_dfn.h utils.h
149 cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
150 cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
151 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
152 $(INCDIR)/bin-bugs.h symtab.h ../bfd/bfd.h $(INCDIR)/symcat.h \
153 source.h search_list.h cg_print.h hist.h utils.h
154 corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
155 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
156 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
157 corefile.h ../bfd/bfd.h $(INCDIR)/symcat.h symtab.h \
158 source.h search_list.h
159 gmon_io.o: gmon_io.c cg_arcs.h gprof.h $(INCDIR)/ansidecl.h \
160 $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
161 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
162 symtab.h ../bfd/bfd.h $(INCDIR)/symcat.h source.h search_list.h \
163 basic_blocks.h corefile.h call_graph.h gmon_io.h gmon.h \
164 gmon_out.h hertz.h hist.h $(INCDIR)/libiberty.h
165 gprof.o: gprof.c $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \
166 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
167 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
168 $(INCDIR)/bin-bugs.h basic_blocks.h source.h search_list.h \
169 symtab.h ../bfd/bfd.h $(INCDIR)/symcat.h call_graph.h \
170 cg_arcs.h cg_print.h corefile.h gmon_io.h gmon.h hertz.h \
171 hist.h sym_ids.h $(INCDIR)/demangle.h
172 hertz.o: hertz.c hertz.h gprof.h $(INCDIR)/ansidecl.h \
173 $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
174 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h
175 hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
176 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
177 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
178 corefile.h ../bfd/bfd.h $(INCDIR)/symcat.h gmon_io.h \
179 gmon.h gmon_out.h hist.h symtab.h source.h search_list.h \
180 sym_ids.h utils.h
181 source.o: source.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
182 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
183 gconfig.h $(INCDIR)/bin-bugs.h $(INCDIR)/libiberty.h \
184 search_list.h source.h
185 search_list.o: search_list.c $(INCDIR)/libiberty.h \
186 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
187 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
188 $(INCDIR)/bin-bugs.h search_list.h
189 symtab.o: symtab.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
190 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
191 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
192 $(INCDIR)/symcat.h source.h search_list.h corefile.h
193 sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
194 $(INCDIR)/safe-ctype.h cg_arcs.h gprof.h $(BFDDIR)/sysdep.h \
195 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
196 gconfig.h $(INCDIR)/bin-bugs.h symtab.h ../bfd/bfd.h \
197 $(INCDIR)/symcat.h source.h search_list.h sym_ids.h
198 utils.o: utils.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
199 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
200 $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
201 $(INCDIR)/symcat.h source.h search_list.h
202 i386.o: i386.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
203 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
204 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
205 $(INCDIR)/symcat.h source.h search_list.h corefile.h \
206 hist.h
207 alpha.o: alpha.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
208 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
209 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
210 $(INCDIR)/symcat.h source.h search_list.h corefile.h \
211 hist.h
212 vax.o: vax.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
213 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
214 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
215 $(INCDIR)/symcat.h source.h search_list.h corefile.h \
216 hist.h
217 tahoe.o: tahoe.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
218 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
219 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
220 $(INCDIR)/symcat.h source.h search_list.h corefile.h \
221 hist.h
222 sparc.o: sparc.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
223 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
224 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
225 $(INCDIR)/symcat.h source.h search_list.h corefile.h \
226 hist.h
227 mips.o: mips.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
228 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
229 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
230 $(INCDIR)/symcat.h source.h search_list.h corefile.h \
231 hist.h
232 flat_bl.o: flat_bl.c
233 bsd_callg_bl.o: bsd_callg_bl.c
234 fsf_callg_bl.o: fsf_callg_bl.c
235 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY