1999-05-03 07:29:11 +00:00
|
|
|
## Process this file with automake to generate Makefile.in
|
2012-12-17 16:56:12 +00:00
|
|
|
#
|
2014-03-05 11:46:15 +00:00
|
|
|
# Copyright (C) 2012-2014 Free Software Foundation, Inc.
|
2012-12-17 16:56:12 +00: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 07:29:11 +00: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-22 18:37:50 +00:00
|
|
|
AUTOMAKE_OPTIONS = 1.11 foreign no-dist no-texinfo.tex
|
2007-06-14 15:31:01 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config -I ../bfd
|
2012-06-02 10:19:24 +00:00
|
|
|
TEXINFO_TEX = ../texinfo/texinfo.tex
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
SUFFIXES = .m
|
|
|
|
|
|
|
|
SUBDIRS = po
|
|
|
|
|
2000-04-04 10:53:56 +00:00
|
|
|
BASEDIR = $(srcdir)/..
|
|
|
|
BFDDIR = $(BASEDIR)/bfd
|
|
|
|
INCDIR = $(BASEDIR)/include
|
|
|
|
|
2000-04-09 12:17:43 +00:00
|
|
|
WARN_CFLAGS = @WARN_CFLAGS@
|
2005-04-14 05:26:44 +00:00
|
|
|
NO_WERROR = @NO_WERROR@
|
2000-04-09 12:17:43 +00: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-22 19:02:57 +00:00
|
|
|
AM_CPPFLAGS = -DDEBUG -I../bfd -I$(srcdir)/../include \
|
2007-02-17 13:33:57 +00:00
|
|
|
-I$(srcdir)/../bfd @INCINTL@ -I. \
|
|
|
|
-DLOCALEDIR="\"$(datadir)/locale\""
|
1999-05-03 07:29:11 +00: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 13:29:43 +00:00
|
|
|
i386.c alpha.c vax.c tahoe.c sparc.c mips.c aarch64.c
|
1999-05-03 07:29:11 +00:00
|
|
|
gprof_SOURCES = $(sources) flat_bl.c bsd_callg_bl.c fsf_callg_bl.c
|
2006-05-31 15:14:46 +00:00
|
|
|
gprof_DEPENDENCIES = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL_DEP)
|
|
|
|
gprof_LDADD = ../bfd/libbfd.la ../libiberty/libiberty.a $(LIBINTL)
|
1999-05-03 07:29:11 +00: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 11:57:29 +00:00
|
|
|
EXTRA_DIST = $(BUILT_SOURCES) bbconv.pl $(man_MANS)
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2001-06-19 11:57:29 +00:00
|
|
|
diststuff: $(BUILT_SOURCES) info $(man_MANS)
|
1999-05-03 07:29:11 +00:00
|
|
|
|
2010-03-30 15:41:17 +00:00
|
|
|
# We extract version from bfd/configure.in, make sure to rerun configure
|
|
|
|
# when BFD's version changes.
|
|
|
|
CONFIG_STATUS_DEPENDENCIES = $(BFDDIR)/configure.in
|
|
|
|
|
2006-04-25 16:20:47 +00:00
|
|
|
# This empty rule is a hack against gmake patched by Apple.
|
|
|
|
%.o:%.m
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
.m.c:
|
2013-11-02 06:38:44 +00:00
|
|
|
awk -f $(srcdir)/gen-c-prog.awk > $@ \
|
1999-05-03 07:29:11 +00:00
|
|
|
FUNCTION=`(echo $*|sed -e 's,.*/,,g' -e 's/_bl//')`_blurb \
|
2013-11-02 06:38:44 +00:00
|
|
|
FILE=$*.m $<
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
POTFILES = $(sources) $(noinst_HEADERS)
|
|
|
|
po/POTFILES.in: @MAINT@ Makefile
|
2008-08-04 06:55:33 +00:00
|
|
|
for f in $(POTFILES); do echo $$f; done | LC_ALL=C sort > tmp \
|
1999-05-03 07:29:11 +00:00
|
|
|
&& mv tmp $(srcdir)/po/POTFILES.in
|
|
|
|
|
2001-04-06 12:13:40 +00:00
|
|
|
MANCONF = -Dman
|
|
|
|
|
2007-03-22 21:18:34 +00:00
|
|
|
TEXI2POD = perl $(srcdir)/../etc/texi2pod.pl $(AM_MAKEINFOFLAGS)
|
2001-04-06 12:13:40 +00:00
|
|
|
|
|
|
|
POD2MAN = pod2man --center="GNU" --release="binutils-$(VERSION)" --section=1
|
|
|
|
|
1999-05-03 07:29:11 +00:00
|
|
|
info_TEXINFOS = gprof.texi
|
2006-12-12 14:31:48 +00:00
|
|
|
gprof_TEXINFOS = config.texi
|
1999-05-03 07:29:11 +00:00
|
|
|
man_MANS = gprof.1
|
|
|
|
|
2007-08-13 01:53:01 +00: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-22 21:18:34 +00:00
|
|
|
|
2005-11-17 01:01:05 +00:00
|
|
|
config.texi:
|
|
|
|
echo "@set top_srcdir $(top_srcdir)" >> ./config.texi
|
|
|
|
|
2001-04-06 12:13:40 +00: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 01:01:05 +00:00
|
|
|
gprof.1: $(srcdir)/gprof.texi config.texi
|
2001-06-19 11:57:29 +00:00
|
|
|
touch $@
|
2001-04-06 12:13:40 +00:00
|
|
|
-$(TEXI2POD) $(MANCONF) -Dgprof < $(srcdir)/gprof.texi > gprof.pod
|
|
|
|
-($(POD2MAN) gprof.pod | \
|
2001-06-19 11:57:29 +00:00
|
|
|
sed -e '/^.if n .na/d' > $@.T$$$$ && \
|
|
|
|
mv -f $@.T$$$$ $@) || \
|
|
|
|
(rm -f $@.T$$$$ && exit 1)
|
2001-04-06 12:13:40 +00:00
|
|
|
rm -f gprof.pod
|
|
|
|
|
2006-12-11 15:09:46 +00: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
|