]>
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 \ | |
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 | EXTRA_DIST = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c bbconv.pl | |
37 | ||
38 | BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c | |
39 | ||
40 | diststuff: $(BUILT_SOURCES) info | |
41 | ||
42 | .m.c: | |
43 | awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \ | |
44 | FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \ | |
45 | FILE=$*.m $(srcdir)/$*.m | |
46 | ||
47 | POTFILES = $(sources) $(noinst_HEADERS) | |
48 | po/POTFILES.in: @MAINT@ Makefile | |
49 | for file in $(POTFILES); do echo $$file; done | sort > tmp \ | |
50 | && mv tmp $(srcdir)/po/POTFILES.in | |
51 | ||
52 | info_TEXINFOS = gprof.texi | |
53 | man_MANS = gprof.1 | |
54 | ||
41b49281 AM |
55 | # Targets to rebuild dependencies in this Makefile. |
56 | # Have to get rid of DEP1 here so that "$?" later includes all sources. | |
57 | DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h | |
58 | rm -f DEP1 | |
59 | $(MAKE) MKDEP="$(MKDEP)" DEP1 | |
0bdaf48b AM |
60 | sed -f dep.sed < DEP1 > DEPA |
61 | echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> DEPA | |
62 | if grep ' /' DEPA > /dev/null 2> /dev/null; then \ | |
1581f8c9 AM |
63 | echo 'make DEP failed!'; exit 1; \ |
64 | else \ | |
0bdaf48b | 65 | mv -f DEPA $@; \ |
1581f8c9 | 66 | fi |
41b49281 AM |
67 | |
68 | DEP1: $(gprof_SOURCES) | |
69 | echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2 | |
70 | echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2 | |
71 | $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2 | |
72 | mv -f DEP2 $@ | |
73 | ||
74 | dep.sed: dep-in.sed config.status | |
75 | objdir=`pwd`; \ | |
76 | sed <$(srcdir)/dep-in.sed >dep.sed \ | |
77 | -e 's!@INCDIR@!$(INCDIR)!' \ | |
78 | -e 's!@BFDDIR@!$(BFDDIR)!' \ | |
79 | -e 's!@SRCDIR@!$(srcdir)!' \ | |
80 | -e "s!@OBJDIR@!$${objdir}!" | |
81 | ||
82 | dep: DEP | |
83 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile | |
84 | cat DEP >> tmp-Makefile | |
85 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile | |
86 | ||
87 | dep-in: DEP | |
88 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in | |
89 | cat DEP >> tmp-Makefile.in | |
90 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in | |
91 | ||
92 | dep-am: DEP | |
93 | sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am | |
94 | cat DEP >> tmp-Makefile.am | |
95 | $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am | |
96 | ||
97 | .PHONY: dep dep-in dep-am | |
98 | ||
0bdaf48b | 99 | CLEANFILES = dep.sed DEP DEPA DEP1 DEP2 |
41b49281 AM |
100 | |
101 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
102 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
103 | basic_blocks.o: basic_blocks.c basic_blocks.h gprof.h \ | |
2114f57b AM |
104 | $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h ../bfd/config.h \ |
105 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \ | |
106 | $(INCDIR)/bin-bugs.h source.h search_list.h symtab.h \ | |
107 | ../bfd/bfd.h corefile.h gmon_io.h gmon.h gmon_out.h \ | |
41b49281 | 108 | $(INCDIR)/libiberty.h sym_ids.h |
2114f57b AM |
109 | call_graph.o: call_graph.c cg_arcs.h gprof.h $(INCDIR)/ansidecl.h \ |
110 | $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
111 | $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
41b49281 AM |
112 | symtab.h ../bfd/bfd.h source.h search_list.h call_graph.h \ |
113 | corefile.h gmon_io.h gmon.h gmon_out.h sym_ids.h | |
114 | cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ | |
115 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
2114f57b AM |
116 | $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \ |
117 | call_graph.h symtab.h ../bfd/bfd.h source.h search_list.h \ | |
118 | cg_arcs.h cg_dfn.h cg_print.h utils.h sym_ids.h | |
41b49281 AM |
119 | cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
120 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
2114f57b AM |
121 | $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \ |
122 | cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \ | |
123 | cg_dfn.h utils.h | |
41b49281 AM |
124 | cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
125 | cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
2114f57b AM |
126 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \ |
127 | $(INCDIR)/bin-bugs.h symtab.h ../bfd/bfd.h source.h \ | |
128 | search_list.h cg_print.h hist.h utils.h | |
41b49281 AM |
129 | corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
130 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
2114f57b AM |
131 | $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \ |
132 | corefile.h ../bfd/bfd.h symtab.h source.h search_list.h | |
133 | gmon_io.o: gmon_io.c cg_arcs.h gprof.h $(INCDIR)/ansidecl.h \ | |
134 | $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
135 | $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \ | |
41b49281 AM |
136 | symtab.h ../bfd/bfd.h source.h search_list.h basic_blocks.h \ |
137 | corefile.h call_graph.h gmon_io.h gmon.h gmon_out.h \ | |
138 | hertz.h hist.h $(INCDIR)/libiberty.h | |
139 | gprof.o: gprof.c $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \ | |
140 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
2114f57b AM |
141 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \ |
142 | $(INCDIR)/bin-bugs.h basic_blocks.h source.h search_list.h \ | |
143 | symtab.h ../bfd/bfd.h call_graph.h cg_arcs.h cg_print.h \ | |
144 | corefile.h gmon_io.h gmon.h hertz.h hist.h sym_ids.h | |
145 | hertz.o: hertz.c hertz.h gprof.h $(INCDIR)/ansidecl.h \ | |
146 | $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
147 | $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h | |
41b49281 AM |
148 | hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
149 | gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \ | |
2114f57b AM |
150 | $(INCDIR)/filenames.h gconfig.h $(INCDIR)/bin-bugs.h \ |
151 | corefile.h ../bfd/bfd.h gmon_io.h gmon.h gmon_out.h \ | |
152 | hist.h symtab.h source.h search_list.h sym_ids.h utils.h | |
153 | source.o: source.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \ | |
154 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
155 | gconfig.h $(INCDIR)/bin-bugs.h $(INCDIR)/libiberty.h \ | |
156 | search_list.h source.h | |
41b49281 AM |
157 | search_list.o: search_list.c $(INCDIR)/libiberty.h \ |
158 | $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
2114f57b AM |
159 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \ |
160 | $(INCDIR)/bin-bugs.h search_list.h | |
161 | symtab.o: symtab.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \ | |
162 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
163 | gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \ | |
164 | source.h search_list.h corefile.h | |
41b49281 AM |
165 | sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \ |
166 | cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ | |
2114f57b AM |
167 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \ |
168 | $(INCDIR)/bin-bugs.h symtab.h ../bfd/bfd.h source.h \ | |
169 | search_list.h sym_ids.h | |
41b49281 | 170 | utils.o: utils.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \ |
2114f57b AM |
171 | $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h gconfig.h \ |
172 | $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \ | |
173 | source.h search_list.h | |
174 | i386.o: i386.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \ | |
175 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
176 | gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \ | |
177 | source.h search_list.h corefile.h hist.h | |
178 | alpha.o: alpha.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \ | |
179 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
180 | gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \ | |
181 | source.h search_list.h corefile.h hist.h | |
182 | vax.o: vax.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \ | |
183 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
184 | gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \ | |
185 | source.h search_list.h corefile.h hist.h | |
186 | tahoe.o: tahoe.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \ | |
187 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
188 | gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \ | |
189 | source.h search_list.h corefile.h hist.h | |
190 | sparc.o: sparc.c gprof.h $(INCDIR)/ansidecl.h $(BFDDIR)/sysdep.h \ | |
191 | ../bfd/config.h $(INCDIR)/fopen-same.h $(INCDIR)/filenames.h \ | |
192 | gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \ | |
193 | source.h search_list.h corefile.h hist.h | |
252b5132 | 194 | flat_bl.o: flat_bl.c |
41b49281 | 195 | bsd_callg_bl.o: bsd_callg_bl.c |
252b5132 | 196 | fsf_callg_bl.o: fsf_callg_bl.c |
41b49281 | 197 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |