aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCabergs Charles <cacharle@w-r4-p5.s19.be>2019-10-08 08:23:40 +0200
committerCabergs Charles <cacharle@w-r4-p5.s19.be>2019-10-08 08:23:40 +0200
commit8e2add1a6c7a923f16162af6b47df577163f7151 (patch)
tree4f62c7582dc4b62ee81ce6efd64c3b9648792e21 /Makefile
parente851a2a0f58cd15c6eba46805e8890613430ffe1 (diff)
downloadget_next_line-8e2add1a6c7a923f16162af6b47df577163f7151.tar.gz
get_next_line-8e2add1a6c7a923f16162af6b47df577163f7151.tar.bz2
get_next_line-8e2add1a6c7a923f16162af6b47df577163f7151.zip
Added Makefile and subject.pdf
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 44 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..7e09e9d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,44 @@
+# **************************************************************************** #
+# #
+# ::: :::::::: #
+# Makefile :+: :+: :+: #
+# +:+ +:+ +:+ #
+# By: cacharle <marvin@42.fr> +#+ +:+ +#+ #
+# +#+#+#+#+#+ +#+ #
+# Created: 2019/10/08 08:11:00 by cacharle #+# #+# #
+# Updated: 2019/10/08 08:21:06 by cacharle ### ########.fr #
+# #
+# **************************************************************************** #
+
+LIBFTPATH = ./libft
+
+CC = gcc
+CCFLAGS = -Wall -Wextra #-Werror
+LDFALGS = -L./libft -lft
+INCLFLAGS = -I./libft
+
+NAME = get_next_line
+SRC = get_next_line.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)
+
+%.o: %.c
+ $(CC) $(INCLFLAGS) $(CCFLAGS) -c -o $@ $<
+
+clean:
+ $(RM) $(OBJ)
+
+fclean: clean
+ $(RM) $(NAME)
+
+re: fclean all