-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (41 loc) · 1.22 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
###################################################
## ___ ##
## /\__\ MathiDEV - github.com/MathiDEV ##
## /::L_L_ ##
## /:/L:\__\ Prj: Fractals - Lang: C ##
## \/_/:/ / ##
## /:/ / © MathiDEV 2022 ##
## \/__/ ##
###################################################
SRC = fractals.c \
src/arguments_parser.c\
src/apply_iterations.c \
src/error_handling.c \
src/display_fractal.c
TEST_SRC = tests/tests_fractals.c \
src/arguments_parser.c\
src/apply_iterations.c \
src/error_handling.c \
src/display_fractal.c
OBJ = $(SRC:.c=.o)
NAME = fractals
TESTS = -lcriterion --coverage
LIB = -L./lib -lmy
CFLAGS = -I./include $(LIB)
${NAME}: ${OBJ}
make -C./lib/my
gcc -o ${NAME} ${OBJ} $(CFLAGS)
all : ${NAME}
clean:
rm -f ${OBJ}
make clean -C./lib/my
fclean: clean
rm -f ${NAME}
make fclean -C./lib/my
rm -f *.gcno *.gcda unit_tests
re: fclean all
unit_tests: re
gcc -o unit_tests $(TEST_SRC) $(CFLAGS) $(TESTS)
tests_run: unit_tests
./unit_tests
.PHONY: all clean fclean re unit_tests tests_run