-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (29 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
37
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: rabduras <rabduras@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/10/29 19:41:05 by kgavrilo #+# #+# #
# Updated: 2019/11/29 15:00:43 by rabduras ### ########.fr #
# #
# **************************************************************************** #
NAME = get_next_line
FLAGS = -Wall -Wextra -Werror
SRC = main.c get_next_line.c
LIBFT = libft/
OBJ = $(SRC:.c=.o)
%.o: %.c
gcc -c -o $@ $< $(FLAGS)
all: $(NAME)
$(NAME): $(OBJ)
make -C $(LIBFT)
gcc $(OBJ) -o $(NAME) -L libft -lft
clean:
rm -f $(OBJ)
make -C $(LIBFT) clean
fclean: clean
rm -f $(NAME)
make -C $(LIBFT) fclean
re: fclean all