-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (46 loc) · 1.04 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
##
## EPITECH PROJECT, 2020
## makefile
## File description:
## Make file
##
SRC = \
src/bsq.c \
src/check_sizemap.c \
src/check_square.c \
src/display_tab.c \
src/first_line_length.c \
src/main.c \
src/map_to_tab.c \
src/max_square.c \
src/try_square.c
SRC_TEST = \
src/bsq.c \
src/check_sizemap.c \
src/check_square.c \
src/display_tab.c \
src/first_line_length.c \
src/map_to_tab.c \
src/max_square.c \
src/try_square.c
TEST = \
tests/test_bsq.c \
tests/test_error.c
INCLUDE = -I include/
LIB = -L lib/my/ -lmy
FLAGS = -Wall -Wextra
NAME = bsq
all:
(cd lib/my && make && cd ../../)
gcc -o $(NAME) $(SRC) $(INCLUDE) $(LIB) $(FLAGS)
clean:
rm -f $(NAME)
find -type f \( -name '*~' -or -name '#*#' \) -delete
find -type f \( -name '*.gcda' -or -name '*.gcno' \) -delete
fclean: clean
rm -f $(NAME)
re: fclean all
tests_run:
find -type f \( -name '*.gcda' -or -name '*.gcno' \) -delete
gcc -o unit_tests $(SRC_TEST) $(TEST) --coverage -lcriterion $(INCLUDE) $(LIB) $(FLAGS)
./unit_tests