X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=25436e25d5da58d9837408e7e18f0d0d148c6521;hp=5f50c3808c09885a48588578535a8d97972d8843;hb=94b3cdd908f68e20a09f67dba40103fd671f5f17;hpb=94abc2a0cfa262e2e040886394c782af226bc1bd diff --git a/src/Makefile b/src/Makefile index 5f50c380..25436e25 100644 --- a/src/Makefile +++ b/src/Makefile @@ -21,12 +21,6 @@ ### Section 1. General Configuration ### ========================================================================== -### Establish the operating system name -KERNEL = $(shell uname -s) -ifeq ($(KERNEL),Linux) - OS = $(shell uname -o) -endif - ### Executable name EXE = stockfish @@ -42,6 +36,12 @@ OBJS = benchmark.o bitbase.o bitboard.o endgame.o evaluate.o main.o \ 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 ### ========================================================================== @@ -204,11 +204,12 @@ ifeq ($(COMP),clang) 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)