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
|
|
|
#
|
2014-03-05 19:46:15 +08:00
|
|
|
# Copyright (C) 2012-2014 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
|
|
|
|
2010-03-30 23:41:17 +08:00
|
|
|
# We extract version from bfd/configure.in, make sure to rerun configure
|
|
|
|
# when BFD's version changes.
|
Make it easy to make --disable-werror the default for both binutils and gdb
The goal of this patch is to provide an easy way to make
--disable-werror the default when building binutils, or the parts
of binutils that need to get built when building GDB. In development
mode, we want to continue making -Werror the default with GCC.
But, when making releases, I think we want to make it as easy as
possible for regular users to successfully build from sources.
GDB already has this kind of feature to turn -Werror as well as
the use of the libmcheck library. As GDB Release Manager, I take
advantage of it to turn those off after having cut the branch.
I'd like to be able to do the same for the binutils bits. And
perhaps Tristan will want to do the same for his releases too
(not sure, binutils builders might be a little savvier than GDB
builders).
This patch introduces a new file, called development.sh, which
just sets a variable called $development. In our development branches
(Eg. "master"), it's set to true. But setting it to false would allow
us to change the default behavior of various development-related
features to be turned off; in this case, it turns off the use of
-Werror by default (use --enable-werror to turn it back on).
bfd/ChangeLog:
* development.sh: New file.
* warning.m4 (AM_BINUTILS_WARNINGS): Source bfd/development.sh.
Make -Werror the default with GCC only if DEVELOPMENT is true.
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add
$(srcdir)/development.sh.
* Makefile.in, configure: Regenerate.
binutils/ChangeLog:
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
bfd's development.sh.
* Makefile.in, configure: Regenerate.
gas/ChangeLog:
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
bfd's development.sh.
* Makefile.in, configure: Regenerate.
gold/ChangeLog:
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): New.
* Makefile.in, configure: Regenerate.
gprof/ChangeLog:
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
bfd's development.sh.
* Makefile.in, configure: Regenerate.
ld/ChangeLog:
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
bfd's development.sh.
* Makefile.in, configure: Regenerate.
opcodes/ChangeLog:
* Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
bfd's development.sh.
* Makefile.in, configure: Regenerate.
gdb/ChangeLog:
* development.sh: Delete.
* Makefile.in (config.status): Adjust dependency on development.sh.
* configure.ac: Adjust development.sh source call.
* configure: Regenerate.
gdb/gdbserver/ChangeLog:
* configure.ac: Adjust development.sh source call.
* Makefile.in (config.status): Adjust dependency on development.sh.
* configure: Regenerate.
Tested on x86_64-linux by building two ways: One with DEVELOPMENT
set to true, and one with DEVELOPMENT set to false. In the first
case, I could see the use of -Werror, while it disappeared in
the second case.
2014-05-20 05:46:01 +08:00
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in \
|
|
|
|
$(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
|