ssp/test/makefile
2021-01-10 23:51:20 +01:00

27 lines
465 B
Makefile

CXX=clang++-9
CXXFLAGS=-Wall -Wextra -std=c++17 -O0 -lstdc++fs
TESTS=test_converter
all: $(TESTS)
# pattern rule, replacing built-in implicit .cpp-suffix rule
%: %.cpp
$(CXX) $(CXXFLAGS) $< -o $@
debug: CXXFLAGS += -g
debug: all
clean:
@$(RM) -fv $(TESTS)
@$(RM) *.csv
test:
@for i in $(TESTS); do \
./$$i; \
done
# don't use any implicit rules
.SUFFIXES:
# these rules won't actually build the targets they're named after
.PHONY: all clean run debug