1997-08-01 03:49:39 +00:00
|
|
|
## Process this file with automake to generate Makefile.in
|
|
|
|
|
1998-04-22 07:58:44 +00:00
|
|
|
## FIXME: Work around apparent bug in automake.
|
|
|
|
INTLLIBS = @INTLLIBS@
|
|
|
|
|
1998-03-25 18:06:21 +00:00
|
|
|
AUTOMAKE_OPTIONS = cygnus dejagnu
|
1997-08-01 03:49:39 +00:00
|
|
|
|
1998-04-22 05:32:22 +00:00
|
|
|
SUBDIRS = po
|
|
|
|
|
1997-08-01 03:49:39 +00:00
|
|
|
tooldir = $(exec_prefix)/$(target_alias)
|
|
|
|
|
1998-03-25 18:06:21 +00:00
|
|
|
## These aren't set by automake, because they appear in
|
|
|
|
## bfd/acinclude.m4, which is included by binutils/acinclude.m4, and
|
|
|
|
## thus is not seen by automake.
|
1997-08-01 03:49:39 +00:00
|
|
|
CC_FOR_BUILD = @CC_FOR_BUILD@
|
1998-03-25 18:06:21 +00:00
|
|
|
EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
|
1997-08-01 03:49:39 +00:00
|
|
|
|
1998-06-03 23:59:39 +00:00
|
|
|
YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L$(srcdir)/../bison/ ; else echo bison -y ; fi`
|
1997-08-01 03:49:39 +00:00
|
|
|
YFLAGS = -d
|
|
|
|
LEX = `if [ -f ../flex/flex ] ; then echo ../flex/flex ; else echo flex ; fi`
|
|
|
|
|
|
|
|
# these two are almost the same program
|
|
|
|
AR_PROG=ar
|
|
|
|
RANLIB_PROG=ranlib
|
|
|
|
|
|
|
|
# objcopy and strip should be the same program
|
|
|
|
OBJCOPY_PROG=objcopy
|
1997-08-05 04:04:31 +00:00
|
|
|
STRIP_PROG=strip-new
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
STRINGS_PROG=strings
|
|
|
|
|
1998-06-11 21:51:56 +00:00
|
|
|
READELF_PROG=readelf
|
|
|
|
|
1997-08-01 03:49:39 +00:00
|
|
|
# These should all be the same program too.
|
|
|
|
SIZE_PROG=size
|
1997-08-05 04:04:31 +00:00
|
|
|
NM_PROG=nm-new
|
1997-08-01 03:49:39 +00:00
|
|
|
OBJDUMP_PROG=objdump
|
|
|
|
|
|
|
|
# This is the demangler, as a standalone program.
|
|
|
|
# Note: This one is used as the installed name too, unlike the above.
|
|
|
|
DEMANGLER_PROG=c++filt
|
|
|
|
|
|
|
|
ADDR2LINE_PROG=addr2line
|
|
|
|
|
|
|
|
NLMCONV_PROG=nlmconv
|
|
|
|
DLLTOOL_PROG=dlltool
|
|
|
|
WINDRES_PROG=windres
|
1998-11-10 23:33:13 +00:00
|
|
|
DLLWRAP_PROG=dllwrap
|
1997-08-01 03:49:39 +00:00
|
|
|
|
1998-04-30 05:23:50 +00:00
|
|
|
SRCONV_PROG=srconv$(EXEEXT) sysdump$(EXEEXT) coffdump$(EXEEXT)
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
man_MANS = ar.1 nm.1 objdump.1 ranlib.1 size.1 strings.1 strip.1 objcopy.1 \
|
|
|
|
addr2line.1 nlmconv.1 $(DEMANGLER_PROG).1
|
|
|
|
|
1998-11-10 23:33:13 +00:00
|
|
|
PROGS = $(SIZE_PROG) $(OBJDUMP_PROG) $(NM_PROG) $(AR_PROG) $(STRINGS_PROG) $(STRIP_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ $(ADDR2LINE_PROG) $(READELF_PROG) @BUILD_DLLWRAP@
|
1997-08-01 03:49:39 +00:00
|
|
|
|
1998-11-10 23:33:13 +00:00
|
|
|
bin_PROGRAMS = $(SIZE_PROG) $(OBJDUMP_PROG) $(AR_PROG) $(STRINGS_PROG) $(RANLIB_PROG) $(DEMANGLER_PROG) $(OBJCOPY_PROG) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ @BUILD_WINDRES@ $(ADDR2LINE_PROG) $(READELF_PROG) @BUILD_DLLWRAP@
|
1997-08-01 03:49:39 +00:00
|
|
|
|
1997-08-05 04:04:31 +00:00
|
|
|
## We need a special rule to install the programs which are built with -new
|
1997-08-01 03:49:39 +00:00
|
|
|
noinst_PROGRAMS = $(NM_PROG) $(STRIP_PROG)
|
|
|
|
|
1998-06-03 23:59:39 +00:00
|
|
|
EXTRA_PROGRAMS = $(NLMCONV_PROG) srconv sysdump coffdump $(DLLTOOL_PROG) \
|
1998-11-10 23:33:13 +00:00
|
|
|
$(WINDRES_PROG) $(DLLWRAP_PROG)
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
# Stuff that goes in tooldir/ if appropriate
|
1997-08-05 04:04:31 +00:00
|
|
|
TOOL_PROGS = nm-new strip-new ar ranlib dlltool
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
BASEDIR = $(srcdir)/..
|
|
|
|
BFDDIR = $(BASEDIR)/bfd
|
|
|
|
INCDIR = $(BASEDIR)/include
|
|
|
|
|
|
|
|
DEP = mkdep
|
|
|
|
|
1998-04-22 07:58:44 +00:00
|
|
|
INCLUDES = -D_GNU_SOURCE -I. -I$(srcdir) -I../bfd -I$(BFDDIR) -I$(INCDIR) @HDEFINES@ -I$(srcdir)/../intl -I../intl -DLOCALEDIR="\"$(prefix)/share/locale\""
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
HFILES = arsup.h bucomm.h budbg.h coffgrok.h debug.h nlmconv.h dlltool.h \
|
1998-11-10 23:33:13 +00:00
|
|
|
windres.h winduni.h dyn-string.h
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
GENERATED_HFILES = arparse.h sysroff.h sysinfo.h defparse.h
|
|
|
|
|
|
|
|
CFILES = addr2line.c ar.c arsup.c bucomm.c coffdump.c coffgrok.c debug.c \
|
|
|
|
dlltool.c filemode.c ieee.c is-ranlib.c is-strip.c maybe-ranlib.c \
|
|
|
|
maybe-strip.c nlmconv.c nm.c not-ranlib.c not-strip.c \
|
|
|
|
objcopy.c objdump.c prdbg.c rdcoff.c rddbg.c size.c srconv.c \
|
|
|
|
stabs.c strings.c sysdump.c version.c wrstabs.c \
|
1998-10-07 01:21:02 +00:00
|
|
|
windres.c resrc.c rescoff.c resbin.c winduni.c readelf.c \
|
1998-11-10 23:33:13 +00:00
|
|
|
resres.c dyn-string.c dllwrap.c
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
GENERATED_CFILES = \
|
|
|
|
underscore.c arparse.c arlex.c sysroff.c sysinfo.c syslex.c \
|
|
|
|
defparse.c deflex.c nlmheader.c rcparse.c rclex.c
|
|
|
|
|
|
|
|
DEBUG_SRCS = rddbg.c debug.c stabs.c ieee.c rdcoff.c
|
|
|
|
WRITE_DEBUG_SRCS = $(DEBUG_SRCS) wrstabs.c
|
|
|
|
|
|
|
|
# Code shared by all the binutils.
|
|
|
|
BULIBS = bucomm.c version.c filemode.c
|
|
|
|
|
|
|
|
BFDLIB = ../bfd/libbfd.la
|
|
|
|
|
|
|
|
OPCODES = ../opcodes/libopcodes.la
|
|
|
|
|
|
|
|
LIBIBERTY = ../libiberty/libiberty.a
|
|
|
|
|
1998-04-22 05:32:22 +00:00
|
|
|
POTFILES = $(CFILES) $(DEBUG_SRCS) $(HFILES)
|
|
|
|
po/POTFILES.in: @MAINT@ Makefile
|
|
|
|
for file in $(POTFILES); do echo $$file; done | sort > tmp \
|
|
|
|
&& mv tmp $(srcdir)/po/POTFILES.in
|
|
|
|
|
1997-08-01 03:49:39 +00:00
|
|
|
EXPECT = `if [ -f $$r/../expect/expect ] ; then \
|
|
|
|
echo $$r/../expect/expect ; \
|
|
|
|
else echo expect ; fi`
|
|
|
|
RUNTEST = `if [ -f ${srcdir}/../dejagnu/runtest ] ; then \
|
|
|
|
echo ${srcdir}/../dejagnu/runtest ; \
|
|
|
|
else echo runtest ; fi`
|
|
|
|
|
|
|
|
CC_FOR_TARGET = ` \
|
|
|
|
if [ -f $$r/../gcc/xgcc ] ; then \
|
|
|
|
if [ -f $$r/../newlib/Makefile ] ; then \
|
|
|
|
echo $$r/../gcc/xgcc -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
|
|
|
|
else \
|
|
|
|
echo $$r/../gcc/xgcc -B$$r/../gcc/; \
|
|
|
|
fi; \
|
|
|
|
else \
|
|
|
|
if [ "@host@" = "@target@" ] ; then \
|
|
|
|
echo $(CC); \
|
|
|
|
else \
|
1998-03-25 18:06:21 +00:00
|
|
|
echo gcc | sed '$(transform)'; \
|
1997-08-01 03:49:39 +00:00
|
|
|
fi; \
|
|
|
|
fi`
|
|
|
|
|
|
|
|
check-DEJAGNU: site.exp
|
|
|
|
srcdir=`cd $(srcdir) && pwd`; export srcdir; \
|
1997-08-05 04:33:31 +00:00
|
|
|
r=`pwd`; export r; \
|
1997-08-01 03:49:39 +00:00
|
|
|
EXPECT=$(EXPECT); export EXPECT; \
|
|
|
|
if [ -f $(top_builddir)/../expect/expect ]; then \
|
|
|
|
TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
|
|
|
|
export TCL_LIBRARY; \
|
|
|
|
fi; \
|
|
|
|
runtest=$(RUNTEST); \
|
|
|
|
if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
|
|
|
|
$$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
|
|
|
|
CC_FOR_TARGET="$(CC_FOR_TARGET)" \
|
|
|
|
CFLAGS_FOR_TARGET="$(CFLAGS)" $(RUNTESTFLAGS); \
|
|
|
|
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
|
|
|
|
fi
|
|
|
|
|
|
|
|
installcheck:
|
|
|
|
/bin/sh $(srcdir)/sanity.sh $(bindir)
|
|
|
|
|
|
|
|
info_TEXINFOS = binutils.texi
|
|
|
|
|
1998-04-22 05:32:22 +00:00
|
|
|
LDADD = $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
size_SOURCES = size.c $(BULIBS)
|
|
|
|
|
|
|
|
objcopy_SOURCES = objcopy.c not-strip.c $(WRITE_DEBUG_SRCS) $(BULIBS)
|
|
|
|
|
|
|
|
strings_SOURCES = strings.c $(BULIBS)
|
|
|
|
|
1998-06-11 21:51:56 +00:00
|
|
|
readelf_SOURCES = readelf.c version.c
|
1998-06-23 19:01:50 +00:00
|
|
|
readelf_LDADD = $(INTLLIBS) $(LIBIBERTY)
|
1998-06-11 21:51:56 +00:00
|
|
|
|
1997-08-01 03:49:39 +00:00
|
|
|
strip_new_SOURCES = objcopy.c is-strip.c $(WRITE_DEBUG_SRCS) $(BULIBS)
|
|
|
|
|
|
|
|
nm_new_SOURCES = nm.c $(BULIBS)
|
|
|
|
|
|
|
|
objdump_SOURCES = objdump.c prdbg.c $(DEBUG_SRCS) $(BULIBS)
|
1998-04-22 05:32:22 +00:00
|
|
|
objdump_LDADD = $(OPCODES) $(BFDLIB) $(LIBIBERTY) $(INTLLIBS)
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
underscore.c: stamp-under ; @true
|
|
|
|
|
|
|
|
stamp-under: Makefile
|
|
|
|
echo '/*WARNING: This file is automatically generated!*/' >underscore.t
|
|
|
|
echo "int prepends_underscore = @UNDERSCORE@;" >>underscore.t
|
|
|
|
$(SHELL) $(srcdir)/../move-if-change underscore.t underscore.c
|
|
|
|
touch stamp-under
|
|
|
|
|
|
|
|
cplus-dem.o: $(BASEDIR)/libiberty/cplus-dem.c $(INCDIR)/getopt.h
|
|
|
|
$(COMPILE) -c -DMAIN -DVERSION='"$(VERSION)"' $(BASEDIR)/libiberty/cplus-dem.c
|
|
|
|
|
|
|
|
c__filt_SOURCES =
|
1998-04-22 05:32:22 +00:00
|
|
|
c__filt_LDADD = cplus-dem.o underscore.o $(LIBIBERTY) $(INTLLIBS)
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
ar_SOURCES = arparse.y arlex.l ar.c not-ranlib.c arsup.c $(BULIBS)
|
1998-04-22 05:32:22 +00:00
|
|
|
ar_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
ranlib_SOURCES = ar.c is-ranlib.c arparse.y arlex.l arsup.c $(BULIBS)
|
1998-04-22 05:32:22 +00:00
|
|
|
ranlib_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
addr2line_SOURCES = addr2line.c $(BULIBS)
|
|
|
|
|
|
|
|
# The following is commented out for the convertion to automake.
|
|
|
|
# This rule creates a single binary that switches between ar and ranlib
|
|
|
|
# by looking at argv[0]. Use this kludge to save some disk space.
|
|
|
|
# However, you have to install things by hand.
|
|
|
|
# (That is after 'make install', replace the installed ranlib by a link to ar.)
|
|
|
|
# Alternatively, you can install ranlib.sh as ranlib.
|
|
|
|
# ar_with_ranlib: $(ADDL_DEPS) ar.o maybe-ranlib.o
|
|
|
|
# $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(AR_PROG) ar.o maybe-ranlib.o $(ADDL_LIBS) $(EXTRALIBS)
|
|
|
|
# -rm -f $(RANLIB_PROG)
|
|
|
|
# -ln $(AR_PROG) $(RANLIB_PROG)
|
|
|
|
#
|
|
|
|
# objcopy and strip in one binary that uses argv[0] to decide its action.
|
|
|
|
#
|
|
|
|
#objcopy_with_strip: $(ADDL_DEPS) objcopy.o maybe-strip.o
|
|
|
|
# $(HLDENV) $(CC) $(HLDFLAGS) $(CFLAGS) $(LDFLAGS) -o $(OBJCOPY_PROG) objcopy.o maybe-strip.o $(ADDL_LIBS) $(EXTRALIBS)
|
|
|
|
# -rm -f $(STRIP_PROG)
|
|
|
|
# -ln $(OBJCOPY_PROG) $(STRIP_PROG)
|
|
|
|
|
1998-03-25 18:06:21 +00:00
|
|
|
sysroff.c: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
|
|
|
|
./sysinfo$(EXEEXT_FOR_BUILD) -c <$(srcdir)/sysroff.info >sysroff.c
|
|
|
|
./sysinfo$(EXEEXT_FOR_BUILD) -i <$(srcdir)/sysroff.info >>sysroff.c
|
|
|
|
./sysinfo$(EXEEXT_FOR_BUILD) -g <$(srcdir)/sysroff.info >>sysroff.c
|
1997-08-01 03:49:39 +00:00
|
|
|
|
1998-03-25 18:06:21 +00:00
|
|
|
sysroff.h: sysinfo$(EXEEXT_FOR_BUILD) sysroff.info
|
|
|
|
./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h
|
1997-08-01 03:49:39 +00:00
|
|
|
|
1998-03-25 18:06:21 +00:00
|
|
|
sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o
|
1997-08-01 03:49:39 +00:00
|
|
|
$(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o
|
|
|
|
|
|
|
|
syslex.o: syslex.c sysinfo.h
|
|
|
|
if [ -r syslex.c ]; then \
|
|
|
|
$(CC_FOR_BUILD) -c -I. $(CFLAGS) syslex.c ; \
|
|
|
|
else \
|
|
|
|
$(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS) $(srcdir)/syslex.c ;\
|
|
|
|
fi
|
|
|
|
|
|
|
|
sysinfo.o: sysinfo.c
|
|
|
|
if [ -r sysinfo.c ]; then \
|
|
|
|
$(CC_FOR_BUILD) -c -I. $(CFLAGS) sysinfo.c ; \
|
|
|
|
else \
|
|
|
|
$(CC_FOR_BUILD) -c -I. $(CFLAGS) $(srcdir)/sysinfo.c ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
srconv_SOURCES = srconv.c coffgrok.c $(BULIBS)
|
|
|
|
|
|
|
|
dlltool_SOURCES = dlltool.c defparse.y deflex.l $(BULIBS)
|
1998-04-22 05:32:22 +00:00
|
|
|
dlltool_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
dlltool.o:dlltool.c
|
|
|
|
$(COMPILE) -c $(DLLTOOL_DEFS) $(srcdir)/dlltool.c
|
|
|
|
|
|
|
|
coffdump_SOURCES = coffdump.c coffgrok.c $(BULIBS)
|
|
|
|
|
|
|
|
sysdump_SOURCES = sysdump.c $(BULIBS)
|
|
|
|
|
|
|
|
# coff/sym.h and coff/ecoff.h won't be found by the automatic dependency
|
|
|
|
# scripts, since they are only included conditionally.
|
|
|
|
nlmconv.o: nlmconv.c $(INCDIR)/coff/sym.h $(INCDIR)/coff/ecoff.h
|
1998-03-25 18:06:21 +00:00
|
|
|
ldname=`echo ld | sed '$(transform)'`; \
|
1997-08-01 03:49:39 +00:00
|
|
|
$(COMPILE) -c -DLD_NAME="\"$${ldname}\"" @NLMCONV_DEFS@ $(srcdir)/nlmconv.c
|
|
|
|
|
|
|
|
nlmconv_SOURCES = nlmconv.c nlmheader.y $(BULIBS)
|
|
|
|
|
1997-08-04 15:51:44 +00:00
|
|
|
windres_SOURCES = windres.c resrc.c rescoff.c resbin.c rcparse.y rclex.l \
|
1998-10-07 01:21:02 +00:00
|
|
|
winduni.c resres.c $(BULIBS)
|
1998-04-22 05:32:22 +00:00
|
|
|
windres_LDADD = $(BFDLIB) $(LIBIBERTY) @LEXLIB@ $(INTLLIBS)
|
1997-08-01 03:49:39 +00:00
|
|
|
|
1998-11-10 23:33:13 +00:00
|
|
|
dllwrap_SOURCES = dllwrap.c dyn-string.c
|
|
|
|
dllwrap_LDADD = $(LIBIBERTY)
|
|
|
|
|
1998-03-25 18:06:21 +00:00
|
|
|
DISTSTUFF = arparse.c arparse.h arlex.c nlmheader.c sysinfo.c sysinfo.h \
|
1998-04-22 05:32:22 +00:00
|
|
|
syslex.c deflex.c defparse.h defparse.c rclex.c rcparse.h rcparse.c
|
|
|
|
|
1998-03-25 18:06:21 +00:00
|
|
|
diststuff: $(DISTSTUFF) info
|
|
|
|
|
1998-04-03 19:49:49 +00:00
|
|
|
DISTCLEANFILES = stamp-under sysinfo underscore.c sysroff.c sysroff.h \
|
|
|
|
site.exp site.bak
|
1998-03-25 18:06:21 +00:00
|
|
|
|
1997-08-01 03:49:39 +00:00
|
|
|
# Targets to rebuild dependencies in this Makefile.
|
|
|
|
# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
|
|
|
|
.dep: dep.sed $(CFILES) $(HFILES) $(GENERATED_CFILES) $(GENERATED_HFILES) config.h
|
|
|
|
rm -f .dep1
|
|
|
|
$(MAKE) DEP=$(DEP) .dep1
|
|
|
|
sed -f dep.sed <.dep1 >.dep
|
|
|
|
|
|
|
|
# This rule really wants a mkdep that runs "gcc -MM".
|
|
|
|
.dep1: $(CFILES) $(GENERATED_CFILES)
|
|
|
|
rm -f .dep2
|
|
|
|
echo '# DO NOT DELETE THIS LINE -- mkdep uses it.' > .dep2
|
1997-08-05 04:33:31 +00:00
|
|
|
$(DEP) -f .dep2 $(INCLUDES) $?
|
1997-08-01 03:49:39 +00:00
|
|
|
$(SHELL) $(srcdir)/../move-if-change .dep2 .dep1
|
|
|
|
|
|
|
|
dep.sed: dep-in.sed config.status
|
1998-04-03 19:49:49 +00:00
|
|
|
objdir=`pwd`; \
|
1997-08-01 03:49:39 +00:00
|
|
|
sed <$(srcdir)/dep-in.sed >dep.sed \
|
|
|
|
-e 's!@INCDIR@!$(INCDIR)!' \
|
|
|
|
-e 's!@BFDDIR@!$(BFDDIR)!' \
|
1998-04-03 19:49:49 +00:00
|
|
|
-e 's!@SRCDIR@!$(srcdir)!' \
|
|
|
|
-e "s!@OBJDIR@!$${objdir}!"
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
dep: .dep
|
|
|
|
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < Makefile > tmp-Makefile
|
|
|
|
cat .dep >> tmp-Makefile
|
|
|
|
$(SHELL) $(srcdir)/../move-if-change tmp-Makefile Makefile
|
|
|
|
|
|
|
|
dep-in: .dep
|
|
|
|
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.in > tmp-Makefile.in
|
|
|
|
cat .dep >> tmp-Makefile.in
|
|
|
|
$(SHELL) $(srcdir)/../move-if-change tmp-Makefile.in $(srcdir)/Makefile.in
|
|
|
|
|
|
|
|
dep-am: .dep
|
|
|
|
sed -e '/^..DO NOT DELETE THIS LINE/,$$d' < $(srcdir)/Makefile.am > tmp-Makefile.am
|
|
|
|
cat .dep >> tmp-Makefile.am
|
|
|
|
$(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
|
|
|
|
|
|
|
|
.PHONY: dep dep-in dep-am
|
|
|
|
|
|
|
|
###
|
|
|
|
# DOCUMENTATION TARGETS
|
|
|
|
config.texi: Makefile
|
|
|
|
rm -f config.texi
|
|
|
|
echo '@set VERSION $(VERSION)' > config.texi
|
|
|
|
|
|
|
|
binutils.dvi: $(srcdir)/binutils.texi config.texi
|
|
|
|
|
|
|
|
binutils.info: $(srcdir)/binutils.texi config.texi
|
|
|
|
|
1998-07-24 04:27:42 +00:00
|
|
|
MAINTAINERCLEANFILES = config.texi
|
|
|
|
|
1997-08-01 03:49:39 +00:00
|
|
|
$(DEMANGLER_PROG).1: cxxfilt.man Makefile
|
|
|
|
sed -e 's/@PROGRAM@/$(DEMANGLER_PROG)/' < $(srcdir)/cxxfilt.man \
|
|
|
|
> $(DEMANGLER_PROG).1
|
|
|
|
|
1998-04-03 19:49:49 +00:00
|
|
|
MOSTLYCLEANFILES = sysinfo $(DEMANGLER_PROG).1 binutils.log binutils.sum \
|
|
|
|
abcdefgh*
|
|
|
|
mostlyclean-local:
|
|
|
|
-rm -rf tmpdir
|
1998-03-30 22:30:28 +00:00
|
|
|
|
1997-08-01 03:49:39 +00:00
|
|
|
CLEANFILES = dep.sed .dep .dep1
|
|
|
|
|
|
|
|
.PHONY: install-exec-local
|
|
|
|
|
|
|
|
install-exec-local: $(bin_PROGRAMS) $(noinst_PROGRAMS)
|
|
|
|
@list='$(noinst_PROGRAMS)'; for p in $$list; do \
|
|
|
|
if test -f $$p; then \
|
1998-06-23 19:01:50 +00:00
|
|
|
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
|
|
|
|
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/$(EXEEXT)$$//' -e 's/-new//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
1997-08-01 03:49:39 +00:00
|
|
|
else :; fi; \
|
|
|
|
done
|
1997-08-04 19:55:49 +00:00
|
|
|
$(mkinstalldirs) $(tooldir)/bin
|
1997-08-01 03:49:39 +00:00
|
|
|
for i in $(TOOL_PROGS); do \
|
1997-08-05 04:04:31 +00:00
|
|
|
if [ -f $$i$(EXEEXT) ]; then \
|
|
|
|
j=`echo $$i | sed -e 's/-new//'`; \
|
1997-08-01 03:49:39 +00:00
|
|
|
k=`echo $$j | sed '$(transform)'`; \
|
1998-03-25 18:06:21 +00:00
|
|
|
if [ "$(bindir)/$$k$(EXEEXT)" != "$(tooldir)/bin/$$j$(EXEEXT)" ]; then \
|
1998-10-07 01:21:02 +00:00
|
|
|
rm -f $(tooldir)/bin/$$j$(EXEEXT); \
|
1998-03-25 18:06:21 +00:00
|
|
|
ln $(bindir)/$$k$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
|
|
|
|
|| $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$i$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT); \
|
|
|
|
fi; \
|
1997-08-01 03:49:39 +00:00
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
# What appears below is generated by a hacked mkdep using gcc -MM.
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- mkdep uses it.
|
|
|
|
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
|
|
|
|
|
|
|
|
addr2line.o: addr2line.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/getopt.h $(INCDIR)/libiberty.h $(INCDIR)/demangle.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h
|
|
|
|
ar.o: ar.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
|
|
|
$(INCDIR)/aout/ar.h $(BFDDIR)/libbfd.h arsup.h
|
|
|
|
arsup.o: arsup.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
arsup.h $(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/fopen-same.h
|
|
|
|
bucomm.o: bucomm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/fopen-same.h
|
|
|
|
coffdump.o: coffdump.c coffgrok.h bucomm.h config.h \
|
|
|
|
$(INCDIR)/fopen-same.h
|
|
|
|
coffgrok.o: coffgrok.c bucomm.h config.h $(INCDIR)/fopen-same.h \
|
|
|
|
$(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h \
|
|
|
|
coffgrok.h
|
|
|
|
debug.o: debug.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
|
|
|
debug.h
|
|
|
|
dlltool.o: dlltool.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
|
|
|
$(INCDIR)/getopt.h $(INCDIR)/demangle.h dlltool.h
|
|
|
|
filemode.o: filemode.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h
|
|
|
|
ieee.o: ieee.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/ieee.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
|
|
|
debug.h budbg.h
|
|
|
|
is-ranlib.o: is-ranlib.c
|
|
|
|
is-strip.o: is-strip.c
|
|
|
|
maybe-ranlib.o: maybe-ranlib.c
|
|
|
|
maybe-strip.o: maybe-strip.c
|
|
|
|
nlmconv.o: nlmconv.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/libiberty.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
|
|
|
$(BFDDIR)/libnlm.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
|
|
|
|
$(INCDIR)/nlm/external.h nlmconv.h
|
|
|
|
nm.o: nm.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/progress.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/getopt.h \
|
|
|
|
$(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ranlib.h \
|
|
|
|
$(INCDIR)/demangle.h $(INCDIR)/libiberty.h
|
|
|
|
not-ranlib.o: not-ranlib.c
|
|
|
|
not-strip.o: not-strip.c
|
|
|
|
objcopy.o: objcopy.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/progress.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
1998-07-24 19:16:35 +00:00
|
|
|
$(INCDIR)/getopt.h $(INCDIR)/libiberty.h budbg.h
|
1997-08-01 03:49:39 +00:00
|
|
|
objdump.o: objdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/getopt.h $(INCDIR)/progress.h bucomm.h config.h \
|
|
|
|
$(INCDIR)/fopen-same.h $(INCDIR)/dis-asm.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/demangle.h debug.h budbg.h $(INCDIR)/aout/aout64.h
|
|
|
|
prdbg.o: prdbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
|
|
|
debug.h budbg.h
|
|
|
|
rdcoff.o: rdcoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/coff/internal.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
|
|
|
$(INCDIR)/libiberty.h $(INCDIR)/demangle.h debug.h \
|
|
|
|
budbg.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
|
|
|
|
rddbg.o: rddbg.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
|
|
|
debug.h budbg.h
|
|
|
|
size.o: size.c ../bfd/bfd.h $(INCDIR)/ansidecl.h $(INCDIR)/getopt.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h
|
|
|
|
srconv.o: srconv.c bucomm.h config.h $(INCDIR)/fopen-same.h \
|
|
|
|
sysroff.h coffgrok.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \
|
|
|
|
$(INCDIR)/bfdlink.h sysroff.c
|
|
|
|
stabs.o: stabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
|
|
|
$(INCDIR)/demangle.h debug.h budbg.h $(INCDIR)/aout/aout64.h \
|
|
|
|
$(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def
|
|
|
|
strings.o: strings.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h
|
|
|
|
sysdump.o: sysdump.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h sysroff.h \
|
|
|
|
sysroff.c
|
|
|
|
version.o: version.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h
|
|
|
|
wrstabs.o: wrstabs.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
|
|
|
debug.h budbg.h $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h \
|
|
|
|
$(INCDIR)/aout/stab.def
|
|
|
|
windres.o: windres.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/getopt.h bucomm.h config.h $(INCDIR)/fopen-same.h \
|
1998-07-01 18:30:20 +00:00
|
|
|
$(INCDIR)/libiberty.h $(INCDIR)/obstack.h windres.h \
|
|
|
|
winduni.h
|
1997-08-01 03:49:39 +00:00
|
|
|
resrc.o: resrc.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
1998-07-01 18:30:20 +00:00
|
|
|
windres.h winduni.h
|
1997-08-01 03:49:39 +00:00
|
|
|
rescoff.o: rescoff.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
1998-07-01 18:30:20 +00:00
|
|
|
windres.h winduni.h $(INCDIR)/coff/internal.h $(BFDDIR)/libcoff.h \
|
1997-08-01 03:49:39 +00:00
|
|
|
$(INCDIR)/bfdlink.h
|
|
|
|
resbin.o: resbin.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
1998-07-01 18:30:20 +00:00
|
|
|
windres.h winduni.h
|
1998-10-07 01:21:02 +00:00
|
|
|
resres.o: resres.c windres.h
|
1998-07-01 18:30:20 +00:00
|
|
|
winduni.o: winduni.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h winduni.h
|
|
|
|
readelf.o: readelf.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
1998-07-24 04:27:42 +00:00
|
|
|
$(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
|
|
|
|
$(INCDIR)/elf/i386.h $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/v850.h \
|
|
|
|
$(INCDIR)/elf/ppc.h $(INCDIR)/elf/mips.h $(INCDIR)/elf/alpha.h \
|
|
|
|
$(INCDIR)/elf/arm.h $(INCDIR)/elf/m68k.h $(INCDIR)/elf/sparc.h \
|
|
|
|
$(INCDIR)/elf/m32r.h $(INCDIR)/elf/d10v.h $(INCDIR)/elf/d30v.h \
|
|
|
|
$(INCDIR)/elf/sh.h $(INCDIR)/elf/mn10200.h $(INCDIR)/elf/mn10300.h \
|
|
|
|
$(INCDIR)/elf/hppa.h $(INCDIR)/elf/arc.h bucomm.h config.h \
|
1998-11-10 23:33:13 +00:00
|
|
|
$(INCDIR)/fopen-same.h $(INCDIR)/getopt.h $(INCDIR)/elf/fr30.h
|
1997-08-01 03:49:39 +00:00
|
|
|
underscore.o: underscore.c
|
|
|
|
arparse.o: arparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h arsup.h
|
|
|
|
arlex.o: arlex.c $(INCDIR)/libiberty.h arparse.h
|
|
|
|
sysroff.o: sysroff.c
|
|
|
|
sysinfo.o: sysinfo.c
|
|
|
|
syslex.o: syslex.c sysinfo.h
|
|
|
|
defparse.o: defparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h dlltool.h
|
|
|
|
deflex.o: deflex.c $(INCDIR)/libiberty.h $(INCDIR)/ansidecl.h \
|
|
|
|
defparse.h dlltool.h
|
|
|
|
nlmheader.o: nlmheader.c ../bfd/bfd.h bucomm.h config.h \
|
|
|
|
$(INCDIR)/fopen-same.h $(INCDIR)/nlm/common.h $(INCDIR)/nlm/internal.h \
|
|
|
|
nlmconv.h
|
|
|
|
rcparse.o: rcparse.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
1998-07-01 18:30:20 +00:00
|
|
|
windres.h winduni.h
|
1997-08-01 03:49:39 +00:00
|
|
|
rclex.o: rclex.c ../bfd/bfd.h $(INCDIR)/ansidecl.h \
|
|
|
|
bucomm.h config.h $(INCDIR)/fopen-same.h $(INCDIR)/libiberty.h \
|
1998-07-01 18:30:20 +00:00
|
|
|
windres.h winduni.h rcparse.h
|
1998-11-10 23:33:13 +00:00
|
|
|
dllwrap.o: dllwrap.c dyn-string.h $(INCDIR)/ansidecl.h \
|
|
|
|
$(INCDIR)/getopt.h config.h $(INCDIR)/libiberty.h
|
1997-08-01 03:49:39 +00:00
|
|
|
|
|
|
|
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
|