-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (24 loc) · 1.21 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
all:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=32 main.c get_next_line.c get_next_line_utils.c && ./a.out
1:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=1 main.c get_next_line.c get_next_line_utils.c && ./a.out
2:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=2 main.c get_next_line.c get_next_line_utils.c && ./a.out
5:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=5 main.c get_next_line.c get_next_line_utils.c && ./a.out
6:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=6 main.c get_next_line.c get_next_line_utils.c && ./a.out
20:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=20 main.c get_next_line.c get_next_line_utils.c && ./a.out
25:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=25 main.c get_next_line.c get_next_line_utils.c && ./a.out
1024:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=1024 main.c get_next_line.c get_next_line_utils.c && ./a.out
5000:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=5000 main.c get_next_line.c get_next_line_utils.c && ./a.out
10000000:
gcc -g -Wall -Wextra -Werror -D BUFFER_SIZE=10000000 main.c get_next_line.c get_next_line_utils.c && ./a.out
leaks:
valgrind --leak-check=full ./a.out
fsan:
gcc -D BUFFER_SIZE=8 -fsanitize=address get_next_line.c get_next_line_utils.c main.c