1999-05-03 15:29:11 +08:00
|
|
|
## Process this file with automake to generate Makefile.in
|
2012-12-18 00:56:12 +08:00
|
|
|
#
|
2015-01-01 22:15:26 +08:00
|
|
|
# Copyright (C) 2012-2015 Free Software Foundation, Inc.
|
2012-12-18 00:56:12 +08:00
|
|
|
#
|
|
|
|
# This file is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; see the file COPYING3. If not see
|
|
|
|
# <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
1999-05-03 15:29:11 +08:00
|
|
|
|
dependency tracking in gprof
gprof/:
* Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, add 1.11,
foreign, no-dist, no-texinfo.tex.
(TEXINFO_TEX): New variable.
(MKDEP, CLEANFILES): Remove:
(DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove rules.
(install-data-local): Remove now-unneeded dependency on
install-info.
(mkdep section): Remove.
* Makefile.in: Regenerate.
2009-08-23 02:37:50 +08:00
|
|
|
AUTOMAKE_OPTIONS = 1.11 foreign no-dist no-texinfo.tex
|
2007-06-14 23:31:01 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
|
2012-06-02 18:19:24 +08:00
|
|
|
TEXINFO_TEX = ../texinfo/texinfo.tex
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
SUFFIXES = .m
|
|
|
|
|
|
|
|
SUBDIRS = po
|
|
|
|
|
2000-04-04 18:53:56 +08:00
|
|
|
BASEDIR = $(srcdir)/..
|
|
|
|
BFDDIR = $(BASEDIR)/bfd
|
|
|
|
INCDIR = $(BASEDIR)/include
|
|
|
|
|
2000-04-09 20:17:43 +08:00
|
|
|
WARN_CFLAGS = @WARN_CFLAGS@
|
2005-04-14 13:26:44 +08:00
|
|
|
NO_WERROR = @NO_WERROR@
|
2000-04-09 20:17:43 +08:00
|
|
|
AM_CFLAGS = $(WARN_CFLAGS)
|
|
|
|
|
Cleanups in binutils makefiles.
ld/:
* Makefile.am (bin_PROGRAMS): Renamed from ...
(noinst_PROGRAMS): ... this.
(transform): Override, including the renaming of ld-new to ld.
(install-exec-local): Installation of ld in $(bindir) not needed
here any more.
(AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
(MAINTAINERCLEANFILES): Add ld.1.
* Makefile.in: Regenerate.
gold/:
* Makefile.am (AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* testsuite/Makefile.am (AUTOMAKE_OPTIONS): Add -Wno-portability.
(AM_CPPFLAGS): Renamed from ...
(INCLUDE): ... this.
* Makefile.in, testsuite/Makefile.in: Regenerate.
bfd/:
* Makefile.am (libbfd_la_LDFLAGS): Initialize early, to allow
appending.
[INSTALL_LIBBFD] (bfdlib_LTLIBRARIES, bfdinclude_HEADERS): Set
only in this condition.
[!INSTALL_LIBBFD] (noinst_LTLIBRARIES, libbfd_la_LDFLAGS): New,
to build but not install libbfd.la in this condition.
(install-bfdlibLTLIBRARIES, uninstall-bfdlibLTLIBRARIES)
(install_libbfd, install_libbfd): Remove.
* Makefile.in: Regenerate.
binutils/:
* Makefile.am (AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
(bin2c$(EXEEXT_FOR_BUILD): Adjust rule.
(installcheck-local): Renamed from ...
(installcheck): ... this.
* Makefile.in: Regenerate.
gas/:
* Makefile.am (YFLAGS): Remove, not needed any more.
(AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* Makefile.in: Regenerate.
gprof/:
* Makefile.am (AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* Makefile.in: Regenerate.
opcodes/:
* Makefile.am (libopcodes_la_LDFLAGS): Initialize early.
[INSTALL_LIBBFD] (bfdlib_LTLIBRARIES): Set only in this condition.
[INSTALL_LIBBFD] (bfdinclude_DATA): New.
[!INSTALL_LIBBFD] (noinst_LTLIBRARIES): New.
[!INSTALL_LIBBFD] (libopcodes_la_LDFLAGS): Ensure libopcodes.la
is built shared even if it is not to be installed.
(install-bfdlibLTLIBRARIES,uninstall-bfdlibLTLIBRARIES)
(install_libopcodes, uninstall_libopcodes): Remove.
(AM_CPPFLAGS): Renamed from ...
(INCLUDES): ... this.
* Makefile.in: Regenerate.
2009-08-23 03:02:57 +08:00
|
|
|
AM_CPPFLAGS = -DDEBUG -I../bfd -I$(srcdir)/../include \
|
2007-02-17 21:33:57 +08:00
|
|
|
-I$(srcdir)/../bfd @INCINTL@ -I. \
|
|
|
|
-DLOCALEDIR="\"$(datadir)/locale\""
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
bin_PROGRAMS = gprof
|
|
|
|
|
|
|
|
## Convenience var listing pure sources.
|
|
|
|
sources = basic_blocks.c call_graph.c cg_arcs.c cg_dfn.c \
|
|
|
|
cg_print.c corefile.c gmon_io.c gprof.c hertz.c hist.c source.c \
|
|
|
|
search_list.c symtab.c sym_ids.c utils.c \
|
2013-05-22 21:29:43 +08:00
|
|
|
i386.c alpha.c vax.c tahoe.c sparc.c mips.c aarch64.c
|
1999-05-03 15:29:11 +08:00
|
|
|
gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
|
2006-05-31 23:14:46 +08:00
|
|
|
gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL_DEP)
|
|
|
|
gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
noinst_HEADERS = \
|
|
|
|
basic_blocks.h call_graph.h cg_arcs.h cg_dfn.h cg_print.h \
|
|
|
|
corefile.h gmon.h gmon_io.h gmon_out.h gprof.h hertz.h hist.h \
|
|
|
|
search_list.h source.h sym_ids.h symtab.h utils.h
|
|
|
|
|
|
|
|
BUILT_SOURCES = flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
|
2001-06-19 19:57:29 +08:00
|
|
|
EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2001-06-19 19:57:29 +08:00
|
|
|
diststuff: $(BUILT_SOURCES) info $(man_MANS)
|
1999-05-03 15:29:11 +08:00
|
|
|
|
2014-07-04 10:05:16 +08:00
|
|
|
# development.sh is used to determine -Werror default.
|
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/development.sh
|
2010-03-30 23:41:17 +08:00
|
|
|
|
2006-04-26 00:20:47 +08:00
|
|
|
# This empty rule is a hack against gmake patched by Apple.
|
|
|
|
%.o:%.m
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
.m.c:
|
2013-11-02 14:38:44 +08:00
|
|
|
awk -f $(srcdir)/gen-c-prog.awk > $@ \
|
1999-05-03 15:29:11 +08:00
|
|
|
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
|
2013-11-02 14:38:44 +08:00
|
|
|
FILE=$*.m $<
|
1999-05-03 15:29:11 +08:00
|
|
|
|
|
|
|
POTFILES = $(sources) $(noinst_HEADERS)
|
|
|
|
po/POTFILES.in: @MAINT@ Makefile
|
2008-08-04 14:55:33 +08:00
|
|
|
for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
|
1999-05-03 15:29:11 +08:00
|
|
|
&& mv tmp $(srcdir)/po/POTFILES.in
|
|
|
|
|
2001-04-06 20:13:40 +08:00
|
|
|
MANCONF = -Dman
|
|
|
|
|
2007-03-23 05:18:34 +08:00
|
|
|
TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
|
2001-04-06 20:13:40 +08:00
|
|
|
|
|
|
|
POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
|
|
|
|
|
1999-05-03 15:29:11 +08:00
|
|
|
info_TEXINFOS = gprof.texi
|
2006-12-12 22:31:48 +08:00
|
|
|
gprof_TEXINFOS = config.texi
|
1999-05-03 15:29:11 +08:00
|
|
|
man_MANS = gprof.1
|
|
|
|
|
2007-08-13 09:53:01 +08:00
|
|
|
AM_MAKEINFOFLAGS = -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
|
|
|
|
TEXI2DVI = texi2dvi -I "$(srcdir)" -I "$(top_srcdir)/../bfd/doc" -I ../bfd/doc
|
2007-03-23 05:18:34 +08:00
|
|
|
|
2005-11-17 09:01:05 +08:00
|
|
|
config.texi:
|
|
|
|
echo "@set top_srcdir $(top_srcdir)" >> ./config.texi
|
|
|
|
|
2001-04-06 20:13:40 +08:00
|
|
|
# Build the man page from the texinfo file
|
|
|
|
# The sed command removes the no-adjust Nroff command so that
|
|
|
|
# the man output looks standard.
|
2005-11-17 09:01:05 +08:00
|
|
|
gprof.1: $(srcdir)/gprof.texi config.texi
|
2001-06-19 19:57:29 +08:00
|
|
|
touch $@
|
2001-04-06 20:13:40 +08:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
|
|
|
|
-($(POD2MAN) gprof.pod | \
|
2001-06-19 19:57:29 +08:00
|
|
|
sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
|
|
|
mv -f $@.T$$$$ $@) || \
|
|
|
|
(rm -f $@.T$$$$ && exit 1)
|
2001-04-06 20:13:40 +08:00
|
|
|
rm -f gprof.pod
|
|
|
|
|
2006-12-11 23:09:46 +08:00
|
|
|
MAINTAINERCLEANFILES = gprof.info
|
|
|
|
|
|
|
|
# Automake 1.9 will only build info files in the objdir if they are
|
|
|
|
# mentioned in DISTCLEANFILES. It doesn't have to be unconditional,
|
|
|
|
# though, so we use a bogus condition.
|
|
|
|
if GENINSRC_NEVER
|
|
|
|
DISTCLEANFILES = gprof.info
|
|
|
|
endif
|