From cffe7f69cf28ab0889bee54a18c3f39101b33f16 Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Wed, 17 Jul 2019 19:30:52 +0200 Subject: c10 tail stuff, c11 start, c12/c13 files --- c10/ex02/Makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 c10/ex02/Makefile (limited to 'c10/ex02/Makefile') 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 +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# 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) + -- cgit