Blame | Last modification | View Log | Download | RSS feed
MAKE=makeCOMPILER=GCC_MINGW64#COMPILER=GCC#CLEAN_CMD=@rm -f *.o *.bak *.bin *.lrn game.* log.* *~ .#*CLEAN_CMD=del *.o *.gcdaifeq ($(COMPILER),GCC_MINGW64)CC=x86_64-w64-mingw32-gccCPPC=x86_64-w64-mingw32-g++LN=x86_64-w64-mingw32-g++elseCC=gccCPPC=g++LN=g++endifCFLAGS=-O3 -Wall -ansi -pedantic -Wno-long-long -pthread -flto -msse -DNDEBUGprotectordbg: CFLAGS=-Wall -ansi -pedantic -Wno-long-long -pthreadprotectorobjects = protector.o bitboard.o position.o fen.o io.o \movegeneration.o matesearch.o keytable.o hash.o test.o \pgn.o tools.o search.o evaluation.o coordination.o \xboard.o book.o tablebase.oprotectorsources = $(protectorobjects:.o=.c) egtb.cpp.c.o:$(CC) $(CFLAGS) -c $*.c.cpp.o:$(CPPC) $(CPPFLAGS) -O3 -flto -c $*.cppprotector: $(protectorobjects) egtb.o$(LN) -lstdc++ -lm -pthread -static -flto -o Protector $(protectorobjects) egtb.oprotectordbg: $(protectorobjects) egtb.o$(LN) -lstdc++ -lm -pthread -static -flto -o Protector $(protectorobjects) egtb.oprotector_pgogen: $(protectorobjects) egtb.o$(LN) -lstdc++ -lm -pthread -static -flto -fprofile-generate -o Protector $(protectorobjects) egtb.oprotector_pgouse: $(protectorobjects) egtb.o$(LN) -lstdc++ -lm -pthread -static -flto -fprofile-use -o Protector $(protectorobjects) egtb.oall:$(MAKE) clean$(MAKE) protector$(MAKE) cleandebug:$(MAKE) clean$(MAKE) protectordbg$(MAKE) cleanprotectorpgo:$(MAKE) clean$(MAKE) CFLAGS='-fprofile-generate -O3 -Wall -ansi -pedantic -Wno-long-long -pthread -flto -msse -DNDEBUG' CPPFLAGS='-fprofile-generate' protector_pgogendel *.oProtector.exe -t pgo.pgn$(MAKE) CFLAGS='-fprofile-use -O3 -Wall -ansi -pedantic -Wno-long-long -pthread -flto -msse -DNDEBUG' CPPFLAGS='-fprofile-use' protector_pgouse$(MAKE) clean.PHONY: cleanclean:$(CLEAN_CMD)