]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gprof/Makefile.am
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gprof / Makefile.am
CommitLineData
252b5132 1## Process this file with automake to generate Makefile.in
5bf135a7 2#
82704155 3# Copyright (C) 2012-2019 Free Software Foundation, Inc.
5bf135a7
NC
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.
f3445b37 9#
5bf135a7
NC
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.
f3445b37 14#
5bf135a7
NC
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#
252b5132 19
d0ac1c44 20AUTOMAKE_OPTIONS = foreign no-dist no-texinfo.tex info-in-builddir
79887925 21ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
959a202e 22TEXINFO_TEX = ../texinfo/texinfo.tex
252b5132 23
63442f6a 24SUFFIXES = .c .m
252b5132
RH
25
26SUBDIRS = po
27
41b49281
AM
28BASEDIR = $(srcdir)/..
29BFDDIR = $(BASEDIR)/bfd
30INCDIR = $(BASEDIR)/include
31
a2d91340 32WARN_CFLAGS = @WARN_CFLAGS@
9e9b66a9 33NO_WERROR = @NO_WERROR@
a2d91340
AC
34AM_CFLAGS = $(WARN_CFLAGS)
35
14ec8efd 36AM_CPPFLAGS = -DDEBUG -I../bfd -I$(srcdir)/../include \
92f01d61 37 -I$(srcdir)/../bfd @INCINTL@ -I. \
92f01d61 38 -DLOCALEDIR="\"$(datadir)/locale\""
252b5132
RH
39
40bin_PROGRAMS = gprof
41
42## Convenience var listing pure sources.
43sources = 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 \
fceadf09 46 i386.c alpha.c vax.c sparc.c mips.c aarch64.c
252b5132 47gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
20e95c23
DJ
48gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL_DEP)
49gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL)
252b5132
RH
50
51noinst_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
252b5132 56BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
c45021f2 57EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
252b5132 58
c45021f2 59diststuff: $(BUILT_SOURCES) info $(man_MANS)
252b5132 60
2e98a7bd
AM
61# development.sh is used to determine -Werror default.
62CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
fe168a19 63
253a2395
NC
64# This empty rule is a hack against gmake patched by Apple.
65%.o:%.m
66
71d3dc74 67.m.c:
b6254dfc 68 awk -f $(srcdir)/gen-c-prog.awk > $@ \
252b5132 69 FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
b6254dfc 70 FILE=$*.m $<
252b5132
RH
71
72POTFILES = $(sources) $(noinst_HEADERS)
73po/POTFILES.in: @MAINT@ Makefile
323ee3f4 74 for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
252b5132
RH
75 && mv tmp $(srcdir)/po/POTFILES.in
76
40f90528
AM
77MANCONF = -Dman
78
e49e529d 79TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
40f90528
AM
80
81POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
82
252b5132 83info_TEXINFOS = gprof.texi
37d037c1 84gprof_TEXINFOS = config.texi
252b5132
RH
85man_MANS = gprof.1
86
9975e4c4
DJ
87AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
88TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
e49e529d 89
dff70155
MM
90config.texi:
91 echo "@set top_srcdir $(top_srcdir)" >> ./config.texi
92
40f90528
AM
93# Build the man page from the texinfo file
94# The sed command removes the no-adjust Nroff command so that
95# the man output looks standard.
dff70155 96gprof.1: $(srcdir)/gprof.texi config.texi
c45021f2 97 touch $@
40f90528
AM
98 -$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
99 -($(POD2MAN) gprof.pod | \
c45021f2
NC
100 sed -e '/^.if n .na/d' > $@.T$$$$ && \
101 mv -f $@.T$$$$ $@) || \
102 (rm -f $@.T$$$$ && exit 1)
40f90528
AM
103 rm -f gprof.pod
104
d5fbea21 105MAINTAINERCLEANFILES = gprof.info