X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=3963e5589d6fdfc85a87dd230ff0d3ef048830fc;hp=aa7d97f870f3abbb020a534181b89975b6502a42;hb=8d65fcc0f3b26beb19cc838ff2ad0c78ac289120;hpb=cfe59de27ddc42ac555187ae68879f2bc7bd7936 diff --git a/src/Makefile b/src/Makefile index aa7d97f8..3963e558 100644 --- a/src/Makefile +++ b/src/Makefile @@ -68,7 +68,7 @@ LDFLAGS = -lpthread OBJS = application.o bitboard.o pawns.o material.o endgame.o evaluate.o main.o \ misc.o move.o movegen.o history.o movepick.o search.o piece.o \ position.o direction.o tt.o value.o uci.o ucioption.o \ - maxgain.o mersenne.o book.o bitbase.o san.o benchmark.o + mersenne.o book.o bitbase.o san.o benchmark.o ### General rules. Do not change @@ -80,6 +80,7 @@ help: @echo "Makefile options:" @echo "" @echo "make > Default: Compiler = g++" + @echo "make gcc-popcnt > Compiler = g++ + popcnt-support" @echo "make icc > Compiler = icpc" @echo "make icc-profile > Compiler = icpc + automatic pgo-build" @echo "make icc-profile-popcnt > Compiler = icpc + automatic pgo-build + popcnt-support" @@ -108,6 +109,13 @@ gcc: CXXFLAGS="$(GCCFLAGS)" \ all +gcc-popcnt: + $(MAKE) \ + CXX='g++' \ + CXXFLAGS="$(GCCFLAGS) -DUSE_POPCNT" \ + all + + icc: $(MAKE) \ CXX='icpc' \ @@ -301,6 +309,6 @@ $(EXE): $(OBJS) ### Dependencies. Do not change .depend: - $(CXX) -MM $(OBJS:.o=.cpp) > $@ + $(CXX) -msse -MM $(OBJS:.o=.cpp) > $@ include .depend