diff options
Diffstat (limited to 'test_mini/libft/vendor/_unity/Makefile')
| -rw-r--r-- | test_mini/libft/vendor/_unity/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/test_mini/libft/vendor/_unity/Makefile b/test_mini/libft/vendor/_unity/Makefile new file mode 100644 index 0000000..d9700ea --- /dev/null +++ b/test_mini/libft/vendor/_unity/Makefile @@ -0,0 +1,41 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# Makefile :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle <marvin@42.fr> +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2020/01/31 07:27:12 by cacharle #+# #+# # +# Updated: 2020/01/31 08:39:24 by cacharle ### ########.fr # +# # +# **************************************************************************** # + +CC = gcc +CCFLAGS = -Iinclude -Wall -Wextra -Werror + +NAME = libunity.a + +INCLUDE = $(shell find include -type f -name "*.h") +SRC = $(shell find src -type f -name "*.c") +OBJ = $(SRC:.c=.o) + +.PHONY: all +all: $(NAME) + +$(NAME): $(OBJ) + @echo "Unity: Linking: $@" + @ar rcs $@ $^ + +%.o: %.c $(INCLUDE) + @echo "Unity: Compiling: $@" + @$(CC) $(CCFLAGS) -c -o $@ $< + +clean: + @echo "Unity: Removing objects" + @rm -f $(OBJ) + +fclean: clean + @echo "Unity: Removing: $(NAME)" + @rm -f $(NAME) + +re: fclean all |
