From 3c18dd46b52b1e45341df1f9423c1654462fbb09 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 2 Jul 2018 21:38:18 +0200 Subject: Make AI choice configurable --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 $@ $< -- cgit v1.2.3-70-g09d2