~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/gprof/Makefile.am

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## Process this file with automake to generate Makefile.in
 
2
#
 
3
#   Copyright 2012 Free Software Foundation
 
4
#
 
5
# This file is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation; either version 3 of the License, or
 
8
# (at your option) any later version.
 
9
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
# GNU General Public License for more details.
 
14
 
15
# You should have received a copy of the GNU General Public License
 
16
# along with this program; see the file COPYING3.  If not see
 
17
# <http://www.gnu.org/licenses/>.
 
18
#
 
19
 
 
20
AUTOMAKE_OPTIONS = 1.11 foreign no-dist no-texinfo.tex
 
21
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
 
22
TEXINFO_TEX = ../texinfo/texinfo.tex
 
23
 
 
24
SUFFIXES = .m
 
25
 
 
26
SUBDIRS = po
 
27
 
 
28
BASEDIR = $(srcdir)/..
 
29
BFDDIR = $(BASEDIR)/bfd
 
30
INCDIR  = $(BASEDIR)/include
 
31
 
 
32
WARN_CFLAGS = @WARN_CFLAGS@
 
33
NO_WERROR = @NO_WERROR@
 
34
AM_CFLAGS = $(WARN_CFLAGS)
 
35
 
 
36
AM_CPPFLAGS = -DDEBUG -I../bfd -I$(srcdir)/../include \
 
37
        -I$(srcdir)/../bfd @INCINTL@ -I. \
 
38
        -DLOCALEDIR="\"$(datadir)/locale\""
 
39
 
 
40
bin_PROGRAMS = gprof
 
41
 
 
42
## Convenience var listing pure sources.
 
43
sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
 
44
        cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \
 
45
        search_list.c symtab.c sym_ids.c utils.c \
 
46
        i386.c alpha.c vax.c tahoe.c sparc.c mips.c aarch64.c
 
47
gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
 
48
gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL_DEP)
 
49
gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL)
 
50
 
 
51
noinst_HEADERS = \
 
52
        basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
 
53
        corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
 
54
        search_list.h source.h sym_ids.h symtab.h utils.h
 
55
 
 
56
BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
 
57
EXTRA_DIST    = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
 
58
 
 
59
diststuff: $(BUILT_SOURCES) info $(man_MANS)
 
60
 
 
61
# We extract version from bfd/configure.in, make sure to rerun configure
 
62
# when BFD's version changes.
 
63
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
 
64
 
 
65
# This empty rule is a hack against gmake patched by Apple.
 
66
%.o:%.m
 
67
 
 
68
.m.c:
 
69
        awk -f $(srcdir)/gen-c-prog.awk > ./$*.c \
 
70
            FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
 
71
            FILE=$*.m $(srcdir)/$*.m
 
72
 
 
73
POTFILES = $(sources) $(noinst_HEADERS)
 
74
po/POTFILES.in: @MAINT@ Makefile
 
75
        for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
 
76
          && mv tmp $(srcdir)/po/POTFILES.in
 
77
 
 
78
MANCONF  = -Dman
 
79
 
 
80
TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
 
81
 
 
82
POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
 
83
 
 
84
info_TEXINFOS = gprof.texi
 
85
gprof_TEXINFOS = config.texi
 
86
man_MANS = gprof.1
 
87
 
 
88
AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
 
89
TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
 
90
 
 
91
config.texi:
 
92
        echo "@set top_srcdir $(top_srcdir)" >> ./config.texi
 
93
 
 
94
# Build the man page from the texinfo file
 
95
# The sed command removes the no-adjust Nroff command so that
 
96
# the man output looks standard.
 
97
gprof.1: $(srcdir)/gprof.texi config.texi
 
98
        touch $@
 
99
        -$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
 
100
        -($(POD2MAN) gprof.pod | \
 
101
               sed -e '/^.if n .na/d' > $@.T$$$$ && \
 
102
               mv -f $@.T$$$$ $@) || \
 
103
               (rm -f $@.T$$$$ && exit 1)
 
104
        rm -f gprof.pod
 
105
 
 
106
MAINTAINERCLEANFILES = gprof.info
 
107
 
 
108
# Automake 1.9 will only build info files in the objdir if they are
 
109
# mentioned in DISTCLEANFILES.  It doesn't have to be unconditional,
 
110
# though, so we use a bogus condition.
 
111
if GENINSRC_NEVER
 
112
DISTCLEANFILES = gprof.info
 
113
endif