X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;fp=src%2FMakefile;h=cf4f4ecf15c1c4c9e03f9cf1732d5e45cde36c1d;hp=e85cba59bac421663c14efe33bde4b60f5b70807;hb=4be5348194e12801abd556f7ced60c3e3f3c7c8b;hpb=d558f8a673b56b32ab6da8050f41b9e02fe1758b diff --git a/src/Makefile b/src/Makefile index e85cba59..cf4f4ecf 100644 --- a/src/Makefile +++ b/src/Makefile @@ -41,7 +41,7 @@ endif SRCS = benchmark.cpp bitbase.cpp bitboard.cpp endgame.cpp evaluate.cpp main.cpp \ material.cpp misc.cpp movegen.cpp movepick.cpp pawns.cpp position.cpp psqt.cpp \ search.cpp thread.cpp timeman.cpp tt.cpp uci.cpp ucioption.cpp tune.cpp syzygy/tbprobe.cpp \ - nnue/evaluate_nnue.cpp nnue/features/half_ka_v2.cpp \ + nnue/evaluate_nnue.cpp nnue/features/half_ka_v2_hm.cpp \ hashprobe.grpc.pb.cc hashprobe.pb.cc CLISRCS = client.cpp hashprobe.grpc.pb.cc hashprobe.pb.cc uci.cpp @@ -371,7 +371,7 @@ ifeq ($(COMP),mingw) CXX=g++ endif - CXXFLAGS += -Wextra -Wshadow + CXXFLAGS += -pedantic -Wextra -Wshadow LDFLAGS += -static endif @@ -408,8 +408,12 @@ ifeq ($(COMP),clang) endif ifeq ($(KERNEL),Darwin) - CXXFLAGS += -arch $(arch) -mmacosx-version-min=10.14 - LDFLAGS += -arch $(arch) -mmacosx-version-min=10.14 + CXXFLAGS += -mmacosx-version-min=10.14 + LDFLAGS += -mmacosx-version-min=10.14 + ifneq ($(arch),any) + CXXFLAGS += -arch $(arch) + LDFLAGS += -arch $(arch) + endif XCRUN = xcrun endif @@ -937,7 +941,7 @@ client: $(CLIOBJS) # Other stuff -.depend: +.depend: $(SRCS) -@$(CXX) $(DEPENDFLAGS) -MM $(SRCS) > $@ 2> /dev/null -include .depend