2## EPITECH PROJECT, 2024
8SRC_MAIN = ./src/main.cpp
10SRC = ./src/sub_main.cpp \
11 ./src/ArgumentHandling.cpp \
20OBJ_MAIN = $(SRC_MAIN:.cpp=.o)
22CXXFLAGS = -Wall -Wextra
24CPPFLAGS = -iquote ./include
32NAME_TEST = $(NAME)_test
34all: $(NAME) update_binary_location
36$(NAME): $(OBJ) $(OBJ_MAIN)
37 $(CXX) $(OBJ_MAIN) $(OBJ) -o $(NAME) $(LDFLAGS) $(LDLIBS)
39update_binary_location:
40 cp -vf $(NAME) ../../$(NAME)
58tests_run: LDLIBS += -lcriterion
59tests_run: CXXFLAGS += -coverage
61tests_run: $(NAME_TEST)
64 $(CXX) $(SRC) -o $(NAME_TEST) $(LDFLAGS) $(LDLIBS)
68 gcovr --exclude ./tests
69 gcovr --exclude ./tests --branches
71.PHONY: all clean fclean re debug tests_run coverage update_binary_location