X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=7ca0495e3f4c76495503b96db16020e45b669179;hp=d7de76c391d9b875cb33a46281266cb230136f0f;hb=cd4604b05c2d61928b26ab50c5864c36ef1d3785;hpb=5b3fcab1adf9407c97992f8827b2c180d2848308 diff --git a/src/Makefile b/src/Makefile index d7de76c3..7ca0495e 100644 --- a/src/Makefile +++ b/src/Makefile @@ -30,6 +30,13 @@ GCCFLAGS = -O3 ICCFLAGS = -fast +### ========================================================================== +### Enable/disable debugging, disabled by default +### ========================================================================== +GCCFLAGS += -DNDEBUG +ICCFLAGS += -DNDEBUG + + ### ========================================================================== ### Run built-in benchmark for pgo-builds with: 32MB hash 1 thread 10 depth ### These settings are generally fast, but may be changed experimentally @@ -38,8 +45,8 @@ PGOBENCH = ./$(EXE) bench 32 1 10 default depth ### General compiler settings. Do not change -GCCFLAGS += -s -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing -ICCFLAGS += -s -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing -wd383,869,981,10187,10188,11505,11503 +GCCFLAGS += -g -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing +ICCFLAGS += -g -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing -wd383,869,981,10187,10188,11505,11503 ### General linker settings. Do not change @@ -68,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 "" @@ -150,6 +158,9 @@ osx-x86_64: LDFLAGS+='-arch x86_64' \ all +strip: + strip $(EXE) + ### Compilation. Do not change $(EXE): $(OBJS)