summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2be8c3c..7536e18 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,10 @@ CXXFLAGS = -Wall -Wextra -O3 -std=c++17 -fwrapv -flto
TARGET = main
+ifneq ($(value AI),)
+ CXXFLAGS += "-DAI_CHOICE=$(value AI)"
+endif
+
.PHONY: all clean
all: $(TARGET)
@@ -12,7 +16,7 @@ clean:
main: $(patsubst %.cpp,%.o,$(wildcard *.cpp))
- $(CXX) $(CXXFLAGS) $^ -o $@ $(LDFLAGS)
+ $(CXX) $(CXXFLAGS) $^ -o $@
%.o: %.cpp $(wildcard *.h)
$(CXX) $(CXXFLAGS) -c -o $@ $<