missed this in the last commit.
[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 \
26 i386.c alpha.c vax.c tahoe.c sparc.c
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
36EXTRA_DIST = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c bbconv.pl
37
38BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
39
40diststuff: $(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
47POTFILES = $(sources) $(noinst_HEADERS)
48po/POTFILES.in: @MAINT@ Makefile
49 for file in $(POTFILES); do echo $$file; done | sort > tmp \
50 && mv tmp $(srcdir)/po/POTFILES.in
51
52info_TEXINFOS = gprof.texi
53man_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.
57DEP: dep.sed $(gprof_SOURCES) $(noinst_HEADERS) gconfig.h
58 rm -f DEP1
59 $(MAKE) MKDEP="$(MKDEP)" DEP1
60 sed -f dep.sed < DEP1 > $@
61 echo '# IF YOU PUT ANYTHING HERE IT WILL GO AWAY' >> $@
62
63DEP1: $(gprof_SOURCES)
64 echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > DEP2
65 echo '# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.' >> DEP2
66 $(MKDEP) $(INCLUDES) $(CFLAGS) $? >> DEP2
67 mv -f DEP2 $@
68
69dep.sed: dep-in.sed config.status
70 objdir=`pwd`; \
71 sed <$(srcdir)/dep-in.sed >dep.sed \
72 -e 's!@INCDIR@!$(INCDIR)!' \
73 -e 's!@BFDDIR@!$(BFDDIR)!' \
74 -e 's!@SRCDIR@!$(srcdir)!' \
75 -e "s!@OBJDIR@!$${objdir}!"
76
77dep: DEP
78 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
79 cat DEP >> tmp-Makefile
80 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
81
82dep-in: DEP
83 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
84 cat DEP >> tmp-Makefile.in
85 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
86
87dep-am: DEP
88 sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
89 cat DEP >> tmp-Makefile.am
90 $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
91
92.PHONY: dep dep-in dep-am
93
94CLEANFILES = dep.sed DEP DEP1 DEP2
95
96# DO NOT DELETE THIS LINE -- mkdep uses it.
97# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
98basic_blocks.o: basic_blocks.c basic_blocks.h gprof.h \
99 $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
100 gconfig.h $(INCDIR)/bin-bugs.h source.h search_list.h \
101 symtab.h ../bfd/bfd.h corefile.h gmon_io.h gmon.h gmon_out.h \
102 $(INCDIR)/libiberty.h sym_ids.h
103call_graph.o: call_graph.c cg_arcs.h gprof.h $(BFDDIR)/sysdep.h \
104 ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
105 symtab.h ../bfd/bfd.h source.h search_list.h call_graph.h \
106 corefile.h gmon_io.h gmon.h gmon_out.h sym_ids.h
107cg_arcs.o: cg_arcs.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
108 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
109 gconfig.h $(INCDIR)/bin-bugs.h call_graph.h symtab.h \
110 ../bfd/bfd.h source.h search_list.h cg_arcs.h cg_dfn.h \
111 cg_print.h utils.h sym_ids.h
112cg_dfn.o: cg_dfn.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
113 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
114 gconfig.h $(INCDIR)/bin-bugs.h cg_arcs.h symtab.h ../bfd/bfd.h \
115 source.h search_list.h cg_dfn.h utils.h
116cg_print.o: cg_print.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
117 cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
118 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
119 symtab.h ../bfd/bfd.h source.h search_list.h cg_print.h \
120 hist.h utils.h
121corefile.o: corefile.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
122 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
123 gconfig.h $(INCDIR)/bin-bugs.h corefile.h ../bfd/bfd.h \
124 symtab.h source.h search_list.h
125gmon_io.o: gmon_io.c cg_arcs.h gprof.h $(BFDDIR)/sysdep.h \
126 ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
127 symtab.h ../bfd/bfd.h source.h search_list.h basic_blocks.h \
128 corefile.h call_graph.h gmon_io.h gmon.h gmon_out.h \
129 hertz.h hist.h $(INCDIR)/libiberty.h
130gprof.o: gprof.c $(INCDIR)/getopt.h $(INCDIR)/libiberty.h \
131 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
132 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
133 basic_blocks.h source.h search_list.h symtab.h ../bfd/bfd.h \
134 call_graph.h cg_arcs.h cg_print.h corefile.h gmon_io.h \
135 gmon.h hertz.h hist.h sym_ids.h
136hertz.o: hertz.c hertz.h gprof.h $(BFDDIR)/sysdep.h \
137 ../bfd/config.h $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h
138hist.o: hist.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
139 gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h $(INCDIR)/fopen-same.h \
140 gconfig.h $(INCDIR)/bin-bugs.h corefile.h ../bfd/bfd.h \
141 gmon_io.h gmon.h gmon_out.h hist.h symtab.h source.h \
142 search_list.h sym_ids.h utils.h
143source.o: source.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
144 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
145 $(INCDIR)/libiberty.h search_list.h source.h
146search_list.o: search_list.c $(INCDIR)/libiberty.h \
147 $(INCDIR)/ansidecl.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
148 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
149 search_list.h
150symtab.o: symtab.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
151 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
152 cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
153 corefile.h
154sym_ids.o: sym_ids.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
155 cg_arcs.h gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
156 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
157 symtab.h ../bfd/bfd.h source.h search_list.h sym_ids.h
158utils.o: utils.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
159 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
160 cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h
161i386.o: i386.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
162 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
163 cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
164 corefile.h hist.h
165alpha.o: alpha.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
166 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
167 cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
168 corefile.h hist.h
169vax.o: vax.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
170 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
171 cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
172 corefile.h hist.h
173tahoe.o: tahoe.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
174 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
175 cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
176 corefile.h hist.h
177sparc.o: sparc.c gprof.h $(BFDDIR)/sysdep.h ../bfd/config.h \
178 $(INCDIR)/fopen-same.h gconfig.h $(INCDIR)/bin-bugs.h \
179 cg_arcs.h symtab.h ../bfd/bfd.h source.h search_list.h \
180 corefile.h hist.h
252b5132 181flat_bl.o: flat_bl.c
41b49281 182bsd_callg_bl.o: bsd_callg_bl.c
252b5132 183fsf_callg_bl.o: fsf_callg_bl.c
41b49281 184# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
This page took 0.049641 seconds and 4 git commands to generate.