aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/Makefile.in
diff options
context:
space:
mode:
authorHannes Domani <ssbssa@yahoo.de>2020-01-24 15:03:14 +0100
committerHannes Domani <ssbssa@yahoo.de>2020-01-24 19:18:28 +0100
commitbdaed379e9c19ff38a00c9e210e4f7d56f7c5880 (patch)
tree70d1f53f2db321e52d0f1b993d5405ae9f85616a /gdb/gdbserver/Makefile.in
parent3050c6f4bcfd43c526b4a47fcb0ac15d3de5c1fd (diff)
downloadbinutils-bdaed379e9c19ff38a00c9e210e4f7d56f7c5880.zip
binutils-bdaed379e9c19ff38a00c9e210e4f7d56f7c5880.tar.gz
binutils-bdaed379e9c19ff38a00c9e210e4f7d56f7c5880.tar.bz2
Add install-strip target to gdbserver
So far this was only possible indirectly when invoked from the gdb directory. This makes the install-strip target independent from gdb. 2020-01-24 Hannes Domani <ssbssa@yahoo.de> * Makefile.in (install-strip): New target. (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables. * aclocal.m4: Regenerate. * configure: Regenerate. * configure.ac: Add AM_PROG_INSTALL_STRIP.
Diffstat (limited to 'gdb/gdbserver/Makefile.in')
-rw-r--r--gdb/gdbserver/Makefile.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index d8cd505..3922b52 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -45,11 +45,14 @@ htmldir = $(prefix)/html
includedir = @includedir@
CONFIG_SRC_SUBDIR = @CONFIG_SRC_SUBDIR@
+install_sh = @install_sh@
+
SHELL = @SHELL@
EXEEXT = @EXEEXT@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
RANLIB = @RANLIB@
@@ -58,6 +61,7 @@ CXX = @CXX@
CXX_DIALECT = @CXX_DIALECT@
AR = @AR@
AR_FLAGS = rc
+STRIP = @STRIP@
# Dependency tracking information.
DEPMODE = @CCDEPMODE@
@@ -394,6 +398,12 @@ install-only:
# in libiberty.
@$(MAKE) $(FLAGS_TO_PASS) DO=install "DODIRS=$(SUBDIRS)" subdir_do
+install-strip:
+ $(MAKE) $(FLAGS_TO_PASS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
+ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
+ `test -z '$(STRIP)' || \
+ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install-only
+
uninstall: force
n=`echo gdbserver | sed '$(program_transform_name)'`; \
if [ x$$n = x ]; then n=gdbserver; else true; fi; \