Optionally skip stripping binaries during install-exec

One may wish to build and install with debug symbols intact, so allow
overriding the arguments sent to install.
This commit is contained in:
Tobias Waldekranz
2016-01-05 14:50:13 +01:00
parent af7b6c17cb
commit 7a3408c173
+4 -1
View File
@@ -1,13 +1,16 @@
# Top directory for building complete system, fall back to this directory
ROOTDIR ?= $(TOPDIR)
# Strip binaries unless user explicitly disables it
STRIPARGS ?= -s --strip-program=$(CROSS)strip -m 0755
# Some junk files we always want to be removed when doing a make clean.
JUNK = *~ *.bak *.map .*.d *.d DEADJOE semantic.cache *.gdb *.elf core core.*
MAKE := @$(MAKE)
MAKEFLAGS = --no-print-directory --silent
CHECK := cppcheck $(CPPFLAGS) --quiet --enable=all
INSTALL := install --backup=off
STRIPINST := $(INSTALL) -s --strip-program=$(CROSS)strip -m 0755
STRIPINST := $(INSTALL) $(STRIPARGS)
ARFLAGS := crus
export libdir plugindir incdir ROOTDIR CPPFLAGS LDFLAGS LDLIBS STATIC