diff options
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 $@ $< |