mirror of
https://gitlab.com/mfocko/Codeforces.git
synced 2024-12-22 06:01:20 +01:00
chore(cpp): build catch2 only in common directory
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
85ccacae44
commit
9e5f237dfd
1 changed files with 3 additions and 3 deletions
|
@ -3,10 +3,10 @@ CXXFLAGS=-std=c++20 -Wall -Wextra
|
|||
|
||||
COMMON_PATH=../.common/cpp
|
||||
|
||||
catch2.o: $(COMMON_PATH)/catch_amalgamated.cpp $(COMMON_PATH)/catch_amalgamated.hpp
|
||||
$(CXX) $(CXXFLAGS) -g -c $(COMMON_PATH)/catch_amalgamated.cpp -o catch2.o
|
||||
$(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
|
||||
|
||||
%: catch2.o %.cpp
|
||||
%: $(COMMON_PATH)/catch2.o %.cpp
|
||||
$(CXX) $(CXXFLAGS) -DTEST -g $^ -o $@
|
||||
|
||||
format:
|
||||
|
|
Loading…
Reference in a new issue