* lin-lwp.c (status_to_str): New function.
[deliverable/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
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 # Targets to rebuild dependencies in this Makefile.
73 # Have to get rid of DEP1 here so that "$?" later includes all sources.
74 DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h
75 rm -f DEP1
76 $(MAKE) MKDEP="$(MKDEP)" DEP1
77 sed -f dep.sed < DEP1 > DEPA
78 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA
79 if grep ' /' DEPA > /dev/null 2> /dev/null; then \
80 echo 'make DEP failed!'; exit 1; \
81 else \
82 mv -f DEPA $@; \
83 fi
84
85 DEP1: $(gprof_SOURCES)
86 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
87 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
88 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
89 mv -f DEP2 $@
90
91 dep.sed: dep-in.sed config.status
92 objdir=`pwd`; \
93 sed <$(srcdir)/dep-in.sed >dep.sed \
94 -e 's!@INCDIR@!$(INCDIR)!' \
95 -e 's!@BFDDIR@!$(BFDDIR)!' \
96 -e 's!@SRCDIR@!$(srcdir)!' \
97 -e "s!@OBJDIR@!$${objdir}!"
98
99 dep: DEP
100 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
101 cat DEP >> tmp-Makefile
102 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
103
104 dep-in: DEP
105 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
106 cat DEP >> tmp-Makefile.in
107 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
108
109 dep-am: DEP
110 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
111 cat DEP >> tmp-Makefile.am
112 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
113
114 .PHONY: dep dep-in dep-am
115
116 CLEANFILES = dep.sed DEP DEPA DEP1 DEP2
117
118 # DO NOT DELETE THIS LINE -- mkdep uses it.
119 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
120 basic_blocks.o: basic_blocks.c basic_blocks.h gprof.h \
121 $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h ../bfd/config.h \
122 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
123 $(INCDIR)/bin-bugs.h source.h search_list.h symtab.h \
124 ../bfd/bfd.h corefile.h gmon_io.h gmon.h gmon_out.h \
125 $(INCDIR)/libiberty.h sym_ids.h
126 call_graph.o: call_graph.c cg_arcs.h gprof.h $(INCDIR)/ansidecl.h \
127 $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
128 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
129 symtab.h ../bfd/bfd.h source.h search_list.h call_graph.h \
130 corefile.h gmon_io.h gmon.h gmon_out.h sym_ids.h
131 cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
132 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
133 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
134 call_graph.h symtab.h ../bfd/bfd.h source.h search_list.h \
135 cg_arcs.h cg_dfn.h cg_print.h utils.h sym_ids.h
136 cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
137 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
138 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
139 cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
140 cg_dfn.h utils.h
141 cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
142 cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
143 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
144 $(INCDIR)/bin-bugs.h symtab.h ../bfd/bfd.h source.h \
145 search_list.h cg_print.h hist.h utils.h
146 corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
147 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
148 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
149 corefile.h ../bfd/bfd.h symtab.h source.h search_list.h
150 gmon_io.o: gmon_io.c cg_arcs.h gprof.h $(INCDIR)/ansidecl.h \
151 $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
152 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
153 symtab.h ../bfd/bfd.h source.h search_list.h basic_blocks.h \
154 corefile.h call_graph.h gmon_io.h gmon.h gmon_out.h \
155 hertz.h hist.h $(INCDIR)/libiberty.h
156 gprof.o: gprof.c $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \
157 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
158 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
159 $(INCDIR)/bin-bugs.h basic_blocks.h source.h search_list.h \
160 symtab.h ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \
161 corefile.h gmon_io.h gmon.h hertz.h hist.h sym_ids.h \
162 $(INCDIR)/demangle.h
163 hertz.o: hertz.c hertz.h gprof.h $(INCDIR)/ansidecl.h \
164 $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
165 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h
166 hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
167 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
168 $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \
169 corefile.h ../bfd/bfd.h gmon_io.h gmon.h gmon_out.h \
170 hist.h symtab.h source.h search_list.h sym_ids.h utils.h
171 source.o: source.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
172 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
173 gconfig.h $(INCDIR)/bin-bugs.h $(INCDIR)/libiberty.h \
174 search_list.h source.h
175 search_list.o: search_list.c $(INCDIR)/libiberty.h \
176 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
177 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
178 $(INCDIR)/bin-bugs.h search_list.h
179 symtab.o: symtab.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
180 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
181 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
182 source.h search_list.h corefile.h
183 sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
184 cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
185 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
186 $(INCDIR)/bin-bugs.h symtab.h ../bfd/bfd.h source.h \
187 search_list.h sym_ids.h
188 utils.o: utils.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
189 $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \
190 $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
191 source.h search_list.h
192 i386.o: i386.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
193 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
194 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
195 source.h search_list.h corefile.h hist.h
196 alpha.o: alpha.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
197 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
198 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
199 source.h search_list.h corefile.h hist.h
200 vax.o: vax.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
201 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
202 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
203 source.h search_list.h corefile.h hist.h
204 tahoe.o: tahoe.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
205 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
206 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
207 source.h search_list.h corefile.h hist.h
208 sparc.o: sparc.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \
209 ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \
210 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
211 source.h search_list.h corefile.h hist.h
212 flat_bl.o: flat_bl.c
213 bsd_callg_bl.o: bsd_callg_bl.c
214 fsf_callg_bl.o: fsf_callg_bl.c
215 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.034839 seconds and 4 git commands to generate.