From 3df8cabb8483db5d843c41c54aa79544f0a09457 Mon Sep 17 00:00:00 2001 From: Joost VandeVondele Date: Fri, 27 Apr 2018 00:07:56 +0200 Subject: [PATCH] Fix 'make strip' for mingw. Currently the make strip target is broken on mingw as the exe name is wrong (stockfish instead of stockfish.exe). Needs some testing by mingw users (both profile-build and strip, native and cross). No functional change. --- src/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 25436e25..34264e78 100644 --- a/src/Makefile +++ b/src/Makefile @@ -22,7 +22,11 @@ ### ========================================================================== ### Executable name +ifeq ($(COMP),mingw) +EXE = stockfish.exe +else EXE = stockfish +endif ### Installation dir definitions PREFIX = /usr/local @@ -437,7 +441,7 @@ clean: objclean profileclean # clean binaries and objects objclean: - @rm -f $(EXE) $(EXE).exe *.o ./syzygy/*.o + @rm -f $(EXE) *.o ./syzygy/*.o # clean auxiliary profiling files profileclean: -- 2.39.2