-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
78 lines (63 loc) · 1.48 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
##
## EPITECH PROJECT, 2023
## Makefile
## File description:
## Makefile
##
SRC = ./src/graph/add.c \
./src/graph/create.c \
./src/graph/disp.c \
./src/graph/free_lst.c \
./src/graph/link.c \
./src/lst/add.c \
./src/lst/del.c \
./src/lst/disp.c \
./src/lst/free_lst.c \
./src/put/mini_printf.c \
./src/put/my_put_nbr.c \
./src/put/my_putchar.c \
./src/put/my_putstr.c \
./src/put/my_show_word_array.c \
./src/str/is_in_str.c \
./src/str/my_str_to_word_array.c \
./src/str/my_strcmp.c \
./src/str/my_strcpy.c \
./src/str/my_strdup.c \
./src/str/my_strlen.c \
./src/str/my_strsub.c \
./src/str/remoove_tag_str.c \
./src/dijkstra.c \
./src/free.c \
./src/get_start_end_robot.c \
./src/main.c \
./src/my_getnbr.c \
./src/struct_utils.c \
TESTSRC = ./src/put/my_putstr.c \
./tests/put/test_my_putstr.c \
OBJ = $(SRC:.c=.o)
CFLAGS = -Wall -Wextra -I ./include/ -g3
HEADER = my.h
NAME = amazed
TEST = uni_tests
all: $(NAME)
$(NAME): $(OBJ)
$(CC) -o $(NAME) $(OBJ) -g3
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
rm -f $(TEST)
rm -f *~
rm -f *.gc*
rm -f *vgcore*
rm -f *.log
rm -f *.gcno
rm -f *.gcda
re: fclean all
$(TEST): fclean
$(CC) -o $(TEST) $(TESTSRC) --coverage -lcriterion $(CFLAGS)
tests_run: $(TEST)
./$(TEST)
gcovr --exclude tests/
gcovr --exclude tests/ --branches
.PHONY: all $(NAME) clean fclean re $(TEST) tests_run