-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
81 lines (68 loc) · 1.33 KB
/
Makefile
File metadata and controls
81 lines (68 loc) · 1.33 KB
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, 2020
## Makefile
## File description:
## makef
##
SRC = src/hex_decimal_capitalize.c \
src/b_flags.c \
src/o_flags.c \
src/u_flags.c \
src/bigx_flags.c \
src/x_flags.c \
src/s_flags.c \
src/i_flags.c \
src/d_flags.c \
src/c_flags.c \
src/my_printf.c \
src/put_unsigned_nbr.c \
src/put_binary_nbr.c \
src/my_putstr.c \
src/my_putchar.c \
src/my_put_octal.c \
src/my_put_nbr.c \
src/hex_decimal.c \
src/my_put_pointer.c \
src/modulo_flags.c
SRC_UT = tests/tests_my_printf.c \
hex_decimal_capitalize.c \
b_flags.c \
o_flags.c \
u_flags.c \
bigx_flags.c \
x_flags.c \
s_flags.c \
i_flags.c \
d_flags.c \
c_flags.c \
my_printf.c \
put_unsigned_nbr.c \
put_binary_nbr.c \
my_putstr.c \
my_putchar.c \
my_put_octal.c \
my_put_nbr.c \
hex_decimal.c \
my_put_pointer.c \
modulo_flags.c
OBJ = $(SRC:.c=.o)
OBJ_UT = $(SRC:.c=.o)
CPPFLAGS = -I./includes
LDFLAGS = -L./ -lmy
NAME = libmy.a
NAME_UT = units_tests
all: $(NAME)
$(NAME): $(OBJ)
ar rc $(NAME) $(OBJ)
tests_run: $(OBJ) $(OBJ_UT)
make re -C .
gcc -o $(NAME_UT) $(SRC_UT) $(CPPFLAGS) $(LDFLAGS) -lcriterion --coverage
./$(NAME_UT)
clean:
rm -f $(NAME_UT)
rm -f *.gcno
rm -f *.gcda
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: clean fclean all