Codeforces/.common/cpp/makefile
Matej Focko 51aa29e572
feat(cpp): unify macros for local testing
Signed-off-by: Matej Focko <mfocko@redhat.com>
2024-02-28 12:25:35 +01:00

14 lines
389 B
Makefile

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