-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (38 loc) · 877 Bytes
/
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
##
## EPITECH PROJECT, 2020
## makefile
## File description:
## Make file
##
SRC = \
src/main.c \
src/sokoban.c \
src/mouvment.c \
src/init.c \
src/get_map.c \
src/display.c \
src/win_detection.c \
src/loose_detection.c \
src/errors_handling.c \
src/loop.c
SRC_TEST = \
TEST = \
INCLUDE = -I include/
LIB = -L lib/my/ -lmy -lncurses
FLAGS = -Wall -ggdb
NAME = my_sokoban
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:
all
find -type f \( -name '*.gcda' -or -name '*.gcno' \) -delete
gcc -o unit_tests $(SRC_TEST) $(TEST) --coverage -lcriterion $(INCLUDE) $(LIB) $(FLAGS)
./unit_tests