File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# :( openbench and fishtest require make
2- TARGET = engine
3-
2+ EXE = engine
43CXX ?= g++
54CXXFLAGS ?= -std=c++17 -Wall -Wextra
65OPTFLAGS ?= -O3
3433 test -d deps/chesslib || git clone https://github.com/winapiadmin/chesslib deps/chesslib
3534 test -d deps/tbprobe || git clone https://github.com/winapiadmin/tb_probing_tool deps/tbprobe
3635all : deps
37- @$(MAKE ) --no-print-directory $(TARGET )
36+ @$(MAKE ) --no-print-directory $(EXE )
3837# Tuning is not required on Makefile, use CMake.
3938SRCS := \
4039 $(filter-out tune_cmd.cpp,$(wildcard * .cpp) ) \
@@ -54,11 +53,11 @@ endif
5453CXXFLAGS += -DBUILD_VERSION=\"$(BUILD_VERSION ) \"
5554.PHONY : all clean deps
5655
57- $(TARGET ) : $(OBJS )
58- $(CXX ) $(CXXFLAGS ) $(OPTFLAGS ) -o $(TARGET ) $(OBJS )
56+ $(EXE ) : $(OBJS )
57+ $(CXX ) $(CXXFLAGS ) $(OPTFLAGS ) -o $(EXE ) $(OBJS )
5958
6059% .o : % .cpp
6160 $(CXX ) $(CXXFLAGS ) $(OPTFLAGS ) -Ideps/chesslib -Ideps/tbprobe/syzygy -c $< -o $@
6261
6362clean :
64- rm -f $(OBJS ) $(TARGET )
63+ rm -f $(OBJS ) $(EXE )
You can’t perform that action at this time.
0 commit comments