X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2FMakefile;h=d4a2a01dacac285c45f0f79f4afbf571bb34385e;hp=b383f93afc9e7c5f42f8a10b48019bb5571a790d;hb=977f6349a9bbe52079f826328457cfafb8536014;hpb=32590884df7c258158bc43da5307865680972721 diff --git a/src/Makefile b/src/Makefile index b383f93a..d4a2a01d 100644 --- a/src/Makefile +++ b/src/Makefile @@ -35,8 +35,8 @@ PGOBENCH = ./$(EXE) bench 32 1 10 default depth ### Object files 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 \ - mersenne.o book.o bitbase.o san.o benchmark.o + position.o direction.o tt.o uci.o ucioption.o \ + mersenne.o book.o bitbase.o san.o benchmark.o timeman.o ### ========================================================================== @@ -52,7 +52,7 @@ OBJS = application.o bitboard.o pawns.o material.o endgame.o evaluate.o main.o \ # os = (name) --- --- Target operating system # bits = 64/32 --- -DIS_64BIT --- 64-/32-bit operating system # bigendian = no/yes --- -DBIGENDIAN --- big/little-endian byte order -# prefetch = no/yes --- -DPREFETCH --- Use prefetch x86 asm-instruction +# prefetch = no/yes --- -DUSE_PREFETCH --- Use prefetch x86 asm-instruction # bsfq = no/yes --- -DUSE_BSFQ --- Use bsfq x86_64 asm-instruction # --- (Works only with GCC and ICC 64-bit) # popcnt = no/yes --- -DUSE_POPCNT --- Use popcnt x86_64 asm-instruction @@ -219,7 +219,7 @@ ifeq ($(COMP),icc) endif ### 3.2 General compiler settings -CXXFLAGS += -g -Wall -fno-exceptions -fno-rtti $(EXTRACXXFLAGS) +CXXFLAGS = -g -Wall -fno-exceptions -fno-rtti $(EXTRACXXFLAGS) ifeq ($(comp),icc) CXXFLAGS += -wd383,869,981,10187,10188,11505,11503 @@ -230,7 +230,7 @@ ifeq ($(os),osx) endif ### 3.3 General linker settings -LDFLAGS += -lpthread $(EXTRALDFLAGS) +LDFLAGS = -lpthread $(EXTRALDFLAGS) ifeq ($(os),osx) LDFLAGS += -arch $(arch) @@ -278,8 +278,10 @@ endif ### 3.8 prefetch ifeq ($(prefetch),yes) - CXXFLAGS += -msse -DUSE_PREFETCH + CXXFLAGS += -msse DEPENDFLAGS += -msse +else + CXXFLAGS += -DNO_PREFETCH endif ### 3.9 bsfq @@ -400,13 +402,13 @@ popcnt-profile-build: strip: strip $(EXE) -install: default +install: -mkdir -p -m 755 $(BINDIR) -cp $(EXE) $(BINDIR) -strip $(BINDIR)/$(EXE) clean: - $(RM) $(EXE) *.o .depend *~ core bench.txt + $(RM) $(EXE) *.o .depend *~ core bench.txt *.gcda testrun: @$(PGOBENCH) @@ -467,7 +469,7 @@ gcc-profile-use: all gcc-profile-clean: - @rm -rf *.gcda bench.txt + @rm -rf *.gcda *.gcno bench.txt icc-profile-prepare: $(MAKE) ARCH=$(ARCH) COMP=$(COMP) icc-profile-clean @@ -498,7 +500,7 @@ icc-profile-clean: hpux: $(MAKE) \ - CXX='/opt/aCC/bin/aCC -AA +hpxstd98 -DBIGENDIAN -mt +O3 -DNDEBUG' \ + CXX='/opt/aCC/bin/aCC -AA +hpxstd98 -DBIGENDIAN -mt +O3 -DNDEBUG -DNO_PREFETCH' \ CXXFLAGS="" \ LDFLAGS="" \ all