aboutsummaryrefslogtreecommitdiff
path: root/c10/ex02/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'c10/ex02/Makefile')
-rw-r--r--c10/ex02/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/c10/ex02/Makefile b/c10/ex02/Makefile
new file mode 100644
index 0000000..d36a1f8
--- /dev/null
+++ b/c10/ex02/Makefile
@@ -0,0 +1,35 @@
+# **************************************************************************** #
+# #
+# ::: :::::::: #
+# Makefile :+: :+: :+: #
+# +:+ +:+ +:+ #
+# By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ #
+# +#+#+#+#+#+ +#+ #
+# Created: 2019/07/16 14:50:02 by cacharle #+# #+# #
+# Updated: 2019/07/17 13:05:52 by cacharle ### ########.fr #
+# #
+# **************************************************************************** #
+
+OUT = ft_tail
+CC = gcc
+CCFLAGS = -Wall -Wextra #-Werror
+SRC = main.c file.c handle_error.c helper.c
+OBJ = $(SRC:.c=.o)
+
+.PHONY: all
+all: $(OUT)
+
+$(OUT): $(OBJ)
+ $(CC) $(CCFLAGS) -o $@ $^
+
+%.o: %.c include.h
+ $(CC) $(CCFLAGS) -c $< -o $@
+
+.PHONY: clean
+clean:
+ rm -f $(OBJ)
+
+.PHONY: clean
+fclean: clean
+ rm -f $(OUT)
+