From: Marco Costalba Date: Sat, 8 Aug 2009 16:37:13 +0000 (+0100) Subject: Makefile: added 'make strip' target X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=4a777954e1ede2057bba90219e8dd406f1f7f681 Makefile: added 'make strip' target Binaries are always built with symbol table in to easy debugging and profiling. It is now possible to run: make strip To remove symbol table from the compiled binary. This could be useful to prepare the release version. Patch by Heinz van Saanen. Signed-off-by: Marco Costalba --- diff --git a/src/Makefile b/src/Makefile index c9da6d9b..7ca0495e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -75,6 +75,7 @@ help: @echo "make osx-ppc64 > PPC-Mac OS X 64 bit. Compiler = g++" @echo "make osx-x86 > x86-Mac OS X 32 bit. Compiler = g++" @echo "make osx-x86_64 > x86-Mac OS X 64 bit. Compiler = g++" + @echo "make strip > Strip executable" @echo "make clean > Clean up" @echo "" @@ -157,6 +158,9 @@ osx-x86_64: LDFLAGS+='-arch x86_64' \ all +strip: + strip $(EXE) + ### Compilation. Do not change $(EXE): $(OBJS)