1 |
205 |
julius |
## Process this file with automake to generate Makefile.in
|
2 |
|
|
|
3 |
|
|
AUTOMAKE_OPTIONS = 1.11 foreign no-dist no-texinfo.tex
|
4 |
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
|
5 |
|
|
TEXINFO_TEX = $(top_srcdir)/../texinfo/texinfo.tex
|
6 |
|
|
|
7 |
|
|
SUFFIXES = .m
|
8 |
|
|
|
9 |
|
|
SUBDIRS = po
|
10 |
|
|
|
11 |
|
|
BASEDIR = $(srcdir)/..
|
12 |
|
|
BFDDIR = $(BASEDIR)/bfd
|
13 |
|
|
INCDIR = $(BASEDIR)/include
|
14 |
|
|
|
15 |
|
|
WARN_CFLAGS = @WARN_CFLAGS@
|
16 |
|
|
NO_WERROR = @NO_WERROR@
|
17 |
|
|
AM_CFLAGS = $(WARN_CFLAGS)
|
18 |
|
|
|
19 |
|
|
AM_CPPFLAGS = -DDEBUG -I../bfd -I$(srcdir)/../include \
|
20 |
|
|
-I$(srcdir)/../bfd @INCINTL@ -I. \
|
21 |
|
|
-DLOCALEDIR="\"$(datadir)/locale\""
|
22 |
|
|
|
23 |
|
|
bin_PROGRAMS = gprof
|
24 |
|
|
|
25 |
|
|
## Convenience var listing pure sources.
|
26 |
|
|
sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
|
27 |
|
|
cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \
|
28 |
|
|
search_list.c symtab.c sym_ids.c utils.c \
|
29 |
|
|
i386.c alpha.c vax.c tahoe.c sparc.c mips.c
|
30 |
|
|
gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
|
31 |
|
|
gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL_DEP)
|
32 |
|
|
gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL)
|
33 |
|
|
|
34 |
|
|
noinst_HEADERS = \
|
35 |
|
|
basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
|
36 |
|
|
corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
|
37 |
|
|
search_list.h source.h sym_ids.h symtab.h utils.h
|
38 |
|
|
|
39 |
|
|
BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
|
40 |
|
|
EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
|
41 |
|
|
|
42 |
|
|
diststuff: $(BUILT_SOURCES) info $(man_MANS)
|
43 |
|
|
|
44 |
|
|
# This empty rule is a hack against gmake patched by Apple.
|
45 |
|
|
%.o:%.m
|
46 |
|
|
|
47 |
|
|
.m.c:
|
48 |
|
|
awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
|
49 |
|
|
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
|
50 |
|
|
FILE=$*.m $(srcdir)/$*.m
|
51 |
|
|
|
52 |
|
|
POTFILES = $(sources) $(noinst_HEADERS)
|
53 |
|
|
po/POTFILES.in: @MAINT@ Makefile
|
54 |
|
|
for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
|
55 |
|
|
&& mv tmp $(srcdir)/po/POTFILES.in
|
56 |
|
|
|
57 |
|
|
MANCONF = -Dman
|
58 |
|
|
|
59 |
|
|
TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
|
60 |
|
|
|
61 |
|
|
POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
|
62 |
|
|
|
63 |
|
|
info_TEXINFOS = gprof.texi
|
64 |
|
|
gprof_TEXINFOS = config.texi
|
65 |
|
|
man_MANS = gprof.1
|
66 |
|
|
|
67 |
|
|
AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
|
68 |
|
|
TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
|
69 |
|
|
|
70 |
|
|
config.texi:
|
71 |
|
|
echo "@set top_srcdir $(top_srcdir)" >> ./config.texi
|
72 |
|
|
|
73 |
|
|
# Build the man page from the texinfo file
|
74 |
|
|
# The sed command removes the no-adjust Nroff command so that
|
75 |
|
|
# the man output looks standard.
|
76 |
|
|
gprof.1: $(srcdir)/gprof.texi config.texi
|
77 |
|
|
touch $@
|
78 |
|
|
-$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
|
79 |
|
|
-($(POD2MAN) gprof.pod | \
|
80 |
|
|
sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
81 |
|
|
mv -f $@.T$$$$ $@) || \
|
82 |
|
|
(rm -f $@.T$$$$ && exit 1)
|
83 |
|
|
rm -f gprof.pod
|
84 |
|
|
|
85 |
|
|
MAINTAINERCLEANFILES = gprof.info
|
86 |
|
|
|
87 |
|
|
# Automake 1.9 will only build info files in the objdir if they are
|
88 |
|
|
# mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
|
89 |
|
|
# though, so we use a bogus condition.
|
90 |
|
|
if GENINSRC_NEVER
|
91 |
|
|
DISTCLEANFILES = gprof.info
|
92 |
|
|
endif
|