Skip to content

Commit e22e149

Browse files
authored
Update Makefile
1 parent ff443a1 commit e22e149

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

Makefile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# :( openbench and fishtest require make
2-
TARGET = engine
3-
2+
EXE = engine
43
CXX ?= g++
54
CXXFLAGS ?= -std=c++17 -Wall -Wextra
65
OPTFLAGS ?= -O3
@@ -34,7 +33,7 @@ deps:
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
3635
all: deps
37-
@$(MAKE) --no-print-directory $(TARGET)
36+
@$(MAKE) --no-print-directory $(EXE)
3837
# Tuning is not required on Makefile, use CMake.
3938
SRCS := \
4039
$(filter-out tune_cmd.cpp,$(wildcard *.cpp)) \
@@ -54,11 +53,11 @@ endif
5453
CXXFLAGS += -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

6362
clean:
64-
rm -f $(OBJS) $(TARGET)
63+
rm -f $(OBJS) $(EXE)

0 commit comments

Comments
 (0)