From 7a7262aa245258236f769c1baa5de24a3abb9b15 Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Tue, 8 Oct 2019 15:44:20 +0200 Subject: Working with basic input --- Makefile | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7e09e9d..bb265ac 100644 --- a/Makefile +++ b/Makefile @@ -6,34 +6,27 @@ # By: cacharle +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2019/10/08 08:11:00 by cacharle #+# #+# # -# Updated: 2019/10/08 08:21:06 by cacharle ### ########.fr # +# Updated: 2019/10/08 11:52:21 by cacharle ### ########.fr # # # # **************************************************************************** # -LIBFTPATH = ./libft +$(RM) = rm -f CC = gcc -CCFLAGS = -Wall -Wextra #-Werror -LDFALGS = -L./libft -lft -INCLFLAGS = -I./libft +CCFLAGS = -Wall -Wextra #-Werror -D BUFFER_SIZE=32 NAME = get_next_line -SRC = get_next_line.c +SRC = get_next_line.c get_next_line_utils.c OBJ = $(SRC:.c=.o) INCLUDE = get_next_line.h -$(RM) = rm -f - -# Makefile must not relink ?? - all: $(NAME) $(NAME): $(OBJ) $(INCLUDE) - make -C $(LIBFTPATH) - $(CC) $(LDFLAGS) $(CCFLAGS) -o $(NAME) $(OBJ) + $(CC) $(CCFLAGS) -o $(NAME) $(OBJ) %.o: %.c - $(CC) $(INCLFLAGS) $(CCFLAGS) -c -o $@ $< + $(CC) $(CCFLAGS) -c -o $@ $< clean: $(RM) $(OBJ) -- cgit