aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1997-08-04 19:32:56 +0000
committerIan Lance Taylor <ian@airs.com>1997-08-04 19:32:56 +0000
commitbf2a3cb1af5100a9bc0d4b574891aaaf82dbbad9 (patch)
treeee991cfbc0b7e0185b8165d0f4d50e2d64a5243c /binutils
parent0426955144915aaff23fd800780b44ce279309f7 (diff)
downloadgdb-bf2a3cb1af5100a9bc0d4b574891aaaf82dbbad9.zip
gdb-bf2a3cb1af5100a9bc0d4b574891aaaf82dbbad9.tar.gz
gdb-bf2a3cb1af5100a9bc0d4b574891aaaf82dbbad9.tar.bz2
* Makefile.am (TOOL_PROGS): Use an explicit $(EXEEXT).
(install-exec-local): When handling $(noinst_PROGRAMS), only use $(EXEEXT) on the installed file. When handling $(TOOL_PROGS), handle $(EXEEXT) correctly. * configure.in: Add an explicit $(EXEEXT) when substituting for the name of a program to build. * Makefile.in, configure: Rebuild.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog8
-rw-r--r--binutils/Makefile.am14
-rw-r--r--binutils/Makefile.in27
-rwxr-xr-xbinutils/configure26
-rw-r--r--binutils/configure.in26
5 files changed, 55 insertions, 46 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 7733238..2444671 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,5 +1,13 @@
Mon Aug 4 11:47:31 1997 Ian Lance Taylor <ian@cygnus.com>
+ * Makefile.am (TOOL_PROGS): Use an explicit $(EXEEXT).
+ (install-exec-local): When handling $(noinst_PROGRAMS), only use
+ $(EXEEXT) on the installed file. When handling $(TOOL_PROGS),
+ handle $(EXEEXT) correctly.
+ * configure.in: Add an explicit $(EXEEXT) when substituting for
+ the name of a program to build.
+ * Makefile.in, configure: Rebuild.
+
* aclocal.m4, configure, Makefile.in: Rebuild with new automake
patches.
diff --git a/binutils/Makefile.am b/binutils/Makefile.am
index 970f5c9..9123653 100644
--- a/binutils/Makefile.am
+++ b/binutils/Makefile.am
@@ -52,7 +52,7 @@ noinst_PROGRAMS = $(NM_PROG) $(STRIP_PROG)
EXTRA_PROGRAMS = $(NLMCONV_PROG) $(SRCONV_PROG) $(DLLTOOL_PROG) $(WINDRES_PROG)
# Stuff that goes in tooldir/ if appropriate
-TOOL_PROGS = nm.new strip.new ar ranlib $(DLLTOOL_PROG)
+TOOL_PROGS = nm.new strip.new ar$(EXEEXT) ranlib$(EXEEXT) dlltool$(EXEEXT)
BASEDIR = $(srcdir)/..
BFDDIR = $(BASEDIR)/bfd
@@ -300,17 +300,17 @@ CLEANFILES = dep.sed .dep .dep1
install-exec-local: $(bin_PROGRAMS) $(noinst_PROGRAMS)
@list='$(noinst_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
- echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT)"; \
- $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT); \
+ echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT)"; \
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT); \
else :; fi; \
done
for i in $(TOOL_PROGS); do \
if [ -f $$i ]; then \
- j=`echo $$i | sed -e 's/.new//'`; \
- rm -f $(tooldir)/bin/$$j; \
+ j=`echo $$i | sed -e 's/.new//' -e 's/$(EXEEXT)//'`; \
+ rm -f $(tooldir)/bin/$$j$(EXEEXT); \
k=`echo $$j | sed '$(transform)'`; \
- ln $(bindir)/$$k $(tooldir)/bin/$$j >/dev/null 2>/dev/null \
- || $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$j; \
+ ln $(bindir)/$$k$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
+ || $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$j$(EXEEXT); \
else true; \
fi; \
done
diff --git a/binutils/Makefile.in b/binutils/Makefile.in
index 68a9236..2d5d343 100644
--- a/binutils/Makefile.in
+++ b/binutils/Makefile.in
@@ -126,7 +126,7 @@ noinst_PROGRAMS = $(NM_PROG) $(STRIP_PROG)
EXTRA_PROGRAMS = $(NLMCONV_PROG) $(SRCONV_PROG) $(DLLTOOL_PROG) $(WINDRES_PROG)
# Stuff that goes in tooldir/ if appropriate
-TOOL_PROGS = nm.new strip.new ar ranlib $(DLLTOOL_PROG)
+TOOL_PROGS = nm.new strip.new ar$(EXEEXT) ranlib$(EXEEXT) dlltool$(EXEEXT)
BASEDIR = $(srcdir)/..
BFDDIR = $(BASEDIR)/bfd
@@ -236,8 +236,9 @@ CONFIG_HEADER = config.h
CONFIG_CLEAN_FILES =
bin_PROGRAMS = size$(EXEEXT) objdump$(EXEEXT) ar$(EXEEXT) \
strings$(EXEEXT) ranlib$(EXEEXT) c++filt$(EXEEXT) objcopy$(EXEEXT) \
-addr2line$(EXEEXT)
-noinst_PROGRAMS = nm.new$(EXEEXT) strip.new$(EXEEXT)
+addr2line$(EXEEXT) @BUILD_NLMCONV@ @BUILD_SRCONV@ @BUILD_DLLTOOL@ \
+@BUILD_WINDRES@
+noinst_PROGRAMS = nm.new strip.new
PROGRAMS = $(bin_PROGRAMS) $(noinst_PROGRAMS)
@@ -496,12 +497,12 @@ addr2line$(EXEEXT): $(addr2line_OBJECTS) $(addr2line_DEPENDENCIES)
@rm -f addr2line$(EXEEXT)
$(LINK) $(addr2line_LDFLAGS) $(addr2line_OBJECTS) $(addr2line_LDADD) $(LIBS)
-nm.new$(EXEEXT): $(nm_new_OBJECTS) $(nm_new_DEPENDENCIES)
- @rm -f nm.new$(EXEEXT)
+nm.new: $(nm_new_OBJECTS) $(nm_new_DEPENDENCIES)
+ @rm -f nm.new
$(LINK) $(nm_new_LDFLAGS) $(nm_new_OBJECTS) $(nm_new_LDADD) $(LIBS)
-strip.new$(EXEEXT): $(strip_new_OBJECTS) $(strip_new_DEPENDENCIES)
- @rm -f strip.new$(EXEEXT)
+strip.new: $(strip_new_OBJECTS) $(strip_new_DEPENDENCIES)
+ @rm -f strip.new
$(LINK) $(strip_new_LDFLAGS) $(strip_new_OBJECTS) $(strip_new_LDADD) $(LIBS)
.y.c:
$(SHELL) $(YLWRAP) "$(YACC)" $< y.tab.c $*.c y.tab.h $*.h -- $(YFLAGS)
@@ -1003,17 +1004,17 @@ $(DEMANGLER_PROG).1: cxxfilt.man Makefile
install-exec-local: $(bin_PROGRAMS) $(noinst_PROGRAMS)
@list='$(noinst_PROGRAMS)'; for p in $$list; do \
if test -f $$p; then \
- echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT)"; \
- $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p$(EXEEXT) $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT); \
+ echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT)"; \
+ $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed -e 's/.new//'|sed '$(transform)'`$(EXEEXT); \
else :; fi; \
done
for i in $(TOOL_PROGS); do \
if [ -f $$i ]; then \
- j=`echo $$i | sed -e 's/.new//'`; \
- rm -f $(tooldir)/bin/$$j; \
+ j=`echo $$i | sed -e 's/.new//' -e 's/$(EXEEXT)//'`; \
+ rm -f $(tooldir)/bin/$$j$(EXEEXT); \
k=`echo $$j | sed '$(transform)'`; \
- ln $(bindir)/$$k $(tooldir)/bin/$$j >/dev/null 2>/dev/null \
- || $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$j; \
+ ln $(bindir)/$$k$(EXEEXT) $(tooldir)/bin/$$j$(EXEEXT) >/dev/null 2>/dev/null \
+ || $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$j$(EXEEXT); \
else true; \
fi; \
done
diff --git a/binutils/configure b/binutils/configure
index 2799449..42584b2 100755
--- a/binutils/configure
+++ b/binutils/configure
@@ -2901,46 +2901,46 @@ for targ in $target $canon_targets
do
if test "x$targ" = "xall"; then
all_targets=true
- BUILD_NLMCONV='$(NLMCONV_PROG)'
- BUILD_SRCONV='$(SRCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
+ BUILD_SRCONV='$(SRCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
else
case $targ in
i[3456]86*-*-netware*)
- BUILD_NLMCONV='$(NLMCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
;;
alpha*-*-netware*)
- BUILD_NLMCONV='$(NLMCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
;;
powerpc*-*-netware*)
- BUILD_NLMCONV='$(NLMCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
;;
sparc*-*-netware*)
- BUILD_NLMCONV='$(NLMCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
;;
esac
case $targ in
- *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
+ *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)$(EXEEXT)' ;;
esac
case $targ in
arm-*pe*)
- BUILD_DLLTOOL='$(DLLTOOL_PROG)'
+ BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
- BUILD_WINDRES='$(WINDRES_PROG)'
+ BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
;;
i[3-6]86-*pe* | i[3-6]86-*-cygwin32)
- BUILD_DLLTOOL='$(DLLTOOL_PROG)'
+ BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
- BUILD_WINDRES='$(WINDRES_PROG)'
+ BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
;;
powerpc*-*-*pe* | powerpc*-*-cygwin32)
- BUILD_DLLTOOL='$(DLLTOOL_PROG)'
+ BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
- BUILD_WINDRES='$(WINDRES_PROG)'
+ BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
;;
esac
fi
diff --git a/binutils/configure.in b/binutils/configure.in
index db82531..da0a28d 100644
--- a/binutils/configure.in
+++ b/binutils/configure.in
@@ -140,50 +140,50 @@ for targ in $target $canon_targets
do
if test "x$targ" = "xall"; then
all_targets=true
- BUILD_NLMCONV='$(NLMCONV_PROG)'
- BUILD_SRCONV='$(SRCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
+ BUILD_SRCONV='$(SRCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="-DNLMCONV_I386 -DNLMCONV_ALPHA -DNLMCONV_POWERPC -DNLMCONV_SPARC"
else
case $targ in
changequote(,)dnl
i[3456]86*-*-netware*)
changequote([,])dnl
- BUILD_NLMCONV='$(NLMCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_I386"
;;
alpha*-*-netware*)
- BUILD_NLMCONV='$(NLMCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_ALPHA"
;;
powerpc*-*-netware*)
- BUILD_NLMCONV='$(NLMCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_POWERPC"
;;
sparc*-*-netware*)
- BUILD_NLMCONV='$(NLMCONV_PROG)'
+ BUILD_NLMCONV='$(NLMCONV_PROG)$(EXEEXT)'
NLMCONV_DEFS="$NLMCONV_DEFS -DNLMCONV_SPARC"
;;
esac
case $targ in
- *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)' ;;
+ *-*-hms*) BUILD_SRCONV='$(SRCONV_PROG)$(EXEEXT)' ;;
esac
case $targ in
arm-*pe*)
- BUILD_DLLTOOL='$(DLLTOOL_PROG)'
+ BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_ARM"
- BUILD_WINDRES='$(WINDRES_PROG)'
+ BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
;;
changequote(,)dnl
i[3-6]86-*pe* | i[3-6]86-*-cygwin32)
changequote([,])dnl
- BUILD_DLLTOOL='$(DLLTOOL_PROG)'
+ BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_I386"
- BUILD_WINDRES='$(WINDRES_PROG)'
+ BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
;;
powerpc*-*-*pe* | powerpc*-*-cygwin32)
- BUILD_DLLTOOL='$(DLLTOOL_PROG)'
+ BUILD_DLLTOOL='$(DLLTOOL_PROG)$(EXEEXT)'
DLLTOOL_DEFS="$DLLTOOL_DEFS -DDLLTOOL_PPC"
- BUILD_WINDRES='$(WINDRES_PROG)'
+ BUILD_WINDRES='$(WINDRES_PROG)$(EXEEXT)'
;;
esac
fi