Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EXE = midnight
- SOURCES := src/move_generation/position.cpp src/move_generation/tables.cpp src/move_generation/types.cpp src/move_search/tables/transposition_table.cpp src/move_search/tables/pv_table.h src/utils/helpers.cpp src/utils/clock.cpp src/move_search/tables/history_table.cpp src/move_search/tables/lmr_table.cpp src/move_search/move_ordering/move_ordering.cpp src/engine.cpp src/move_search/reductions.cpp src/move_search/search.cpp src/move_search/types.cpp src/move_search/pvs.cpp
- TEMPDIR := tmp/
- CXXFLAGS := -O3 -flto -Isrc std=c++20 -march=native -Wall -Wextra -pedantic -DNDEBUG
- CXX := g++
- SUFFIX :=
- # engine name
- NAME := midnight
- # Detect Windows
- ifeq ($(OS), Windows_NT)
- SUFFIX := .exe
- CXXFLAGS += -static
- else
- CXXFLAGS += -pthread
- endif
- OUT := $(NAME)$(SUFFIX)
- all: $(EXE)
- $(EXE) : $(SOURCES)
- $(CXX) $(CXXFLAGS) -o $(OUT) $(SOURCES)
- clean:
- rm -rf *.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement