-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (29 loc) · 832 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
CC = gcc
CFG = -Wall -Wextra -Werror -I. -pthread
SRC = sq_main.c sq_get_next_line.c sq_get_next_line_utils.c
all : setup exec test
exec: $(SRC)
@$(CC) -o t0.esq $^ $(CFG) -D BUFFER_SIZE=0
@$(CC) -o t1.esq $^ $(CFG) -D BUFFER_SIZE=1
@$(CC) -o t2.esq $^ $(CFG) -D BUFFER_SIZE=2
@$(CC) -o t42.esq $^ $(CFG) -D BUFFER_SIZE=42
@$(CC) -o t42000.esq $^ $(CFG) -D BUFFER_SIZE=42000
setup : clean
git fetch --all
git reset --hard
git pull
clear
@cp ../get_next_line.h ./get_next_line.h
@cp ../get_next_line.c ./sq_get_next_line.c
@cp ../get_next_line_utils.c ./sq_get_next_line_utils.c
test :
@./sloquet.sh
clean :
@rm -f get_next_line.h
@rm -f sq_get_next_line.c
@rm -f sq_get_next_line_utils.c
@rm -f *.esq
@rm -f log_norminette
fco : clean
@rm -rf out_*
.PHONY : all exec setup test clean fco