aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 6 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index 7e09e9d..bb265ac 100644
--- a/Makefile
+++ b/Makefile
@@ -6,34 +6,27 @@
# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# 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)