summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-07-02 21:38:18 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-07-02 21:38:29 +0200
commit3c18dd46b52b1e45341df1f9423c1654462fbb09 (patch)
treeab196d5eb6a0a50ae87d7a16a74912f7041d45a7 /Makefile
parent4a2389a8a97874393d48237ac638bdb51ebbe768 (diff)
Make AI choice configurable
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 $@ $<