-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
81 lines (66 loc) · 1.7 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
79
80
81
##
## EPITECH PROJECT, 2019
## Makefile
## File description:
## makefile of my cat
##
SRC = src/main.c \
src/eval_expr/eval_expr.c \
src/eval_expr/arguments.c \
src/eval_expr/bracket.c \
src/eval_expr/bracket_extand.c \
src/eval_expr/operand.c \
src/eval_expr/operations.c \
src/eval_expr/ptr_min_max.c \
src/eval_expr/scans.c \
src/infin_calc/general_functions.c \
src/infin_calc/infin_add.c \
src/infin_calc/infin_add_extention.c \
src/infin_calc/infin_mult.c \
src/infin_calc/infin_sub.c \
src/bistro.c \
src/bistro2.c \
src/infin_calc/infin_div.c \
src/infin_calc/infin_mod.c \
src/infin_calc/infin_sub_extention.c
SRC_TEST = tests/test_bistro.c \
src/eval_expr/eval_expr.c \
src/eval_expr/arguments.c \
src/eval_expr/bracket.c \
src/eval_expr/bracket_extand.c \
src/eval_expr/operand.c \
src/eval_expr/operations.c \
src/eval_expr/ptr_min_max.c \
src/eval_expr/scans.c \
src/infin_calc/general_functions.c \
src/infin_calc/infin_add.c \
src/infin_calc/infin_add_extention.c \
src/infin_calc/infin_mult.c \
src/infin_calc/infin_sub.c \
src/bistro.c \
src/bistro2.c \
src/infin_calc/infin_div.c \
src/infin_calc/infin_mod.c \
src/infin_calc/infin_sub_extention.c
OBJ = $(SRC:.c=.o)
OBJ_TEST = $(SRC_TEST:.c=.o);
NAME = calc
NAME_TEST = unit_tests
CFLAGS = -I include
all: $(NAME)
$(NAME): $(OBJ)
make -C lib/my/
gcc -o $(NAME) $(OBJ) $(CFLAGS) -L lib/my -lmy
rm -rf src/*.o
tests_run: $(OBJ_TEST)
make -C lib/my/
gcc -o $(NAME_TEST) $(SRC_TEST) $(CFLAGS) -L lib/my -lmy --coverage -lcriterion
./unit_tests
clean:
rm -rf $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean all
auteur:
echo $(USER) > auteur
.PHONY: all clean fclean re