2023-05-14 14:39:42 +02:00
|
|
|
CXX=clang++
|
|
|
|
CXXFLAGS=-std=c++20 -Wall -Wextra
|
|
|
|
|
2023-07-29 15:59:06 +02:00
|
|
|
MACROS ?= -DTEST
|
2023-07-10 09:53:39 +02:00
|
|
|
|
2023-07-29 15:59:06 +02:00
|
|
|
# COMMON_PATH=../.common/cpp
|
|
|
|
# $(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-29 15:59:06 +02:00
|
|
|
%: %.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) $(MACROS) -DLOCAL -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
|