Move stripping from install to LDFLAGS.

This allows to easily build and install an unstripped binary, e.g. for Fedora
where stripping is performed by the build system to store the removed
information in a debuginfo subpackage.
This commit is contained in:
Till Maas 2010-08-20 10:44:13 +12:00 committed by Daniel Beer
parent a58a8d2f58
commit d240fe0994
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
CC = gcc
INSTALL = /usr/bin/install
PREFIX ?= /usr/local
LDFLAGS ?= -s
ifdef WITHOUT_READLINE
READLINE_CFLAGS =
@ -48,7 +49,7 @@ clean:
install: mspdebug mspdebug.man
mkdir -p $(DESTDIR)$(PREFIX)/bin
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
$(INSTALL) -m 0755 -s mspdebug $(DESTDIR)$(PREFIX)/bin/mspdebug
$(INSTALL) -m 0755 mspdebug $(DESTDIR)$(PREFIX)/bin/mspdebug
$(INSTALL) -m 0644 mspdebug.man $(DESTDIR)$(PREFIX)/share/man/man1/mspdebug.1
.SUFFIXES: .c .o