-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (29 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
36
37
38
39
40
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: shomami <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/04/10 15:52:49 by shomami #+# #+# #
# Updated: 2018/04/17 14:03:43 by shomami ### ########.fr #
# #
# **************************************************************************** #
NAME = gnl
FILES = get_next_line.c\
main.c
OBJ = $(FILES:.c=.o)
LIBFT = libft -lft
CFLAGS = -Wall -Wextra -Werror -g
all: $(NAME)
$(NAME):
make -C $(LIBFT)
gcc $(CFLAGS) -c $(FILES)
gcc $(OBJ) -L $(LIBFT) -o $(NAME)
clean:
make -C libft/ clean
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
make -C libft/ fclean
re: fclean all