fix for the two main files
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user