2023-05-14 14:39:42 +02:00
|
|
|
CXX=clang++
|
|
|
|
CXXFLAGS=-std=c++20 -Wall -Wextra
|
|
|
|
|
2023-07-10 09:53:39 +02:00
|
|
|
COMMON_PATH=../.common/cpp
|
|
|
|
|
2023-07-10 10:00:36 +02:00
|
|
|
$(COMMON_PATH)/catch2.o: $(COMMON_PATH)/catch_amalgamated.cpp $(COMMON_PATH)/catch_amalgamated.hpp
|
|
|
|
$(CXX) $(CXXFLAGS) -g -c $(COMMON_PATH)/catch_amalgamated.cpp -o $(COMMON_PATH)/catch2.o
|
2023-07-09 22:40:25 +02:00
|
|
|
|
2023-07-10 10:00:36 +02:00
|
|
|
%: $(COMMON_PATH)/catch2.o %.cpp
|
2023-07-09 22:40:25 +02:00
|
|
|
$(CXX) $(CXXFLAGS) -DTEST -g $^ -o $@
|
2023-05-14 14:39:42 +02:00
|
|
|
|
|
|
|
format:
|
2023-05-14 14:56:37 +02:00
|
|
|
clang-format -i -style=google *.cpp
|