From 9db52bc5ef545a3fa9973002e9a28a2ece68d029 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 31 Jan 2020 08:08:59 +0100 Subject: Setup unit test with unity --- script/template.makefile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 script/template.makefile (limited to 'script/template.makefile') diff --git a/script/template.makefile b/script/template.makefile new file mode 100644 index 0000000..b0902ec --- /dev/null +++ b/script/template.makefile @@ -0,0 +1,38 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# Makefile :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2019/10/08 15:45:53 by cacharle #+# #+# # +# Updated: 2020/01/31 06:51:18 by cacharle ### ########.fr # +# # +# **************************************************************************** # + +RM = rm -f +LIB = ar rcs + +CC = gcc +CCFLAGS = -Iinclude -Wall -Wextra -Werror + +#INSERTSRC + +OBJ = $(SRC:.c=.o) +NAME = libft.a + +all: $(NAME) + +$(NAME): $(OBJ) + $(LIB) $@ $(OBJ) + +%.o: %.c + $(CC) $(CCFLAGS) -c -o $@ $< + +clean: + $(RM) -r $(OBJ_DIR) + +fclean: clean + $(RM) $(NAME) + +re: fclean all -- cgit