mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 13:05:20 +01:00
27 lines
502 B
Makefile
27 lines
502 B
Makefile
CXX=clang++
|
|
CXXFLAGS=-Wall -Wextra -std=c++17 -lstdc++fs
|
|
TESTS=test_parser test_converter test_extractions test_splitter
|
|
|
|
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
|