-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 1.22 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kperreau <kperreau@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2014/11/03 14:06:54 by kperreau #+# #+# #
# Updated: 2014/11/25 17:10:54 by kperreau ### ########.fr #
# #
# **************************************************************************** #
NAME = test_gnl
SRCS = get_next_line.c
OFILES = $(SRCS:.c=.o)
FLAGS = -Wall -Wextra -Werror -I libft/includes/ -c
all: $(NAME)
$(NAME):
@make -C libft/ fclean
@make -C libft/
@gcc $(FLAGS) $(SRCS)
@gcc $(FLAGS) main.c
@gcc -o $(NAME) get_next_line.o main.o -L libft/ -lft
clean:
@rm -f $(OFILES)
fclean: clean
@rm -f $(NAME)
re: fclean all