fix for the two main files

This commit is contained in:
lbaumberger
2026-05-28 22:49:08 +02:00
parent 29e4c72c4a
commit be0753f9d8
3 changed files with 592 additions and 1 deletions
+11 -1
View File
@@ -63,11 +63,21 @@ endif
VARIANT_SRC := ./variants/variant_$(VARIANT).cpp
# symmetry variants do half the pairwise work, so they use their own main with the
# halved flop-count formula. float_ symmetry variants use the float symmetry main.
ifneq ($(filter float_%,$(VARIANT)),)
ifneq ($(findstring symmetry,$(VARIANT)),)
MAIN_SRC := main-float_symmetry.cpp
else
MAIN_SRC := main-float.cpp
endif
else
ifneq ($(findstring symmetry,$(VARIANT)),)
MAIN_SRC := main-symmetry.cpp
else
MAIN_SRC := main.cpp
endif
endif
SRC := $(MAIN_SRC) $(VARIANT_SRC)
HEADERS := ./headers/board.hpp ./headers/pedestrian.hpp ./headers/vector2d.hpp ./headers/constants.hpp ./headers/util.hpp
@@ -186,7 +196,7 @@ test: clean
# make asm : compile and generate assembly files.
ASM_CPP_SRCS := main.cpp main-float.cpp $(VARIANT_SRC)
ASM_CPP_SRCS := main.cpp main-float.cpp main-symmetry.cpp main-float_symmetry.cpp $(VARIANT_SRC)
ASM_HPP_SRCS := ./headers/util.hpp
ASM_SRCS := $(ASM_CPP_SRCS) $(ASM_HPP_SRCS)