Advertisement
adfasdfadsfasdf

Untitled

Apr 28th, 2023
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. EXE = midnight
  2.  
  3. 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
  4.  
  5. TEMPDIR := tmp/
  6. CXXFLAGS := -O3 -flto -Isrc std=c++20 -march=native -Wall -Wextra -pedantic -DNDEBUG
  7.  
  8. CXX := g++
  9. SUFFIX :=
  10.  
  11. # engine name
  12. NAME := midnight
  13.  
  14. # Detect Windows
  15. ifeq ($(OS), Windows_NT)
  16. SUFFIX := .exe
  17. CXXFLAGS += -static
  18. else
  19. CXXFLAGS += -pthread
  20.  
  21. endif
  22.  
  23. OUT := $(NAME)$(SUFFIX)
  24.  
  25. all: $(EXE)
  26.  
  27. $(EXE) : $(SOURCES)
  28. $(CXX) $(CXXFLAGS) -o $(OUT) $(SOURCES)
  29.  
  30. clean:
  31. rm -rf *.o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement