X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=3963e5589d6fdfc85a87dd230ff0d3ef048830fc;hp=b975522704447da17b150b694c92d9ad7333a2e5;hb=8d65fcc0f3b26beb19cc838ff2ad0c78ac289120;hpb=53ce6ce49c024631c1bd788e10507bdb4f76eb70 diff --git a/src/Makefile b/src/Makefile index b9755227..3963e558 100644 --- a/src/Makefile +++ b/src/Makefile @@ -40,11 +40,11 @@ ICCFLAGS-OSX += -DNDEBUG ### ========================================================================== -### Enable/disable compile for a big-endian CPU, disabled by default +### Remove below comments to compile for a big-endian machine ### ========================================================================== -GCCFLAGS += -DNBIGENDIAN -ICCFLAGS += -DNBIGENDIAN -ICCFLAGS-OSX += -DNBIGENDIAN +#GCCFLAGS += -DBIGENDIAN +#ICCFLAGS += -DBIGENDIAN +#ICCFLAGS-OSX += -DBIGENDIAN ### ========================================================================== @@ -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' \