diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-07-02 21:38:18 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-07-02 21:38:29 +0200 |
commit | 3c18dd46b52b1e45341df1f9423c1654462fbb09 (patch) | |
tree | ab196d5eb6a0a50ae87d7a16a74912f7041d45a7 /Makefile | |
parent | 4a2389a8a97874393d48237ac638bdb51ebbe768 (diff) |
Make AI choice configurable
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 $@ $< |