Codeforces/.common/cpp/makefile
Matej Focko f6e3929fee
chore(cpp): don't use Catch2 to allow faster iterations
* Also rework the way ‹main› is done

Signed-off-by: Matej Focko <me@mfocko.xyz>
2023-07-29 15:59:06 +02:00

14 lines
393 B
Makefile

CXX=clang++
CXXFLAGS=-std=c++20 -Wall -Wextra
MACROS ?= -DTEST
# 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
%: %.cpp
$(CXX) $(CXXFLAGS) $(MACROS) -DLOCAL -g $^ -o $@
format:
clang-format -i -style=google *.cpp