# Stockfish, a UCI chess playing engine derived from Glaurung 2.1
# Copyright (C) 2004-2008 Tord Romstad (Glaurung author)
# Copyright (C) 2008-2015 Marco Costalba, Joona Kiiski, Tord Romstad
-# Copyright (C) 2015-2018 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad
+# Copyright (C) 2015-2019 Marco Costalba, Joona Kiiski, Gary Linscott, Tord Romstad
#
# Stockfish is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
### Section 1. General Configuration
### ==========================================================================
-### Establish the operating system name
-KERNEL = $(shell uname -s)
-ifeq ($(KERNEL),Linux)
- OS = $(shell uname -o)
-endif
-
### Executable name
+ifeq ($(COMP),mingw)
+EXE = stockfish.exe
+else
EXE = stockfish
+endif
### Installation dir definitions
PREFIX = /usr/local
material.o misc.o movegen.o movepick.o pawns.o position.o psqt.o \
search.o thread.o timeman.o tt.o uci.o ucioption.o syzygy/tbprobe.o
+### Establish the operating system name
+KERNEL = $(shell uname -s)
+ifeq ($(KERNEL),Linux)
+ OS = $(shell uname -o)
+endif
+
### ==========================================================================
### Section 2. High-level Configuration
### ==========================================================================
comp=clang
CXX=clang++
CXXFLAGS += -pedantic -Wextra -Wshadow
-ifneq ($(KERNEL),Darwin)
-ifneq ($(KERNEL),OpenBSD)
- LDFLAGS += -latomic
-endif
-endif
+
+ ifneq ($(KERNEL),Darwin)
+ ifneq ($(KERNEL),OpenBSD)
+ LDFLAGS += -latomic
+ endif
+ endif
ifeq ($(ARCH),armv7)
ifeq ($(OS),Android)
# clean binaries and objects
objclean:
- @rm -f $(EXE) $(EXE).exe *.o ./syzygy/*.o
+ @rm -f $(EXE) *.o ./syzygy/*.o
# clean auxiliary profiling files
profileclean: