diff options
Diffstat (limited to 'common/Makefile')
| -rw-r--r-- | common/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile new file mode 100644 index 0000000..cf3089c --- /dev/null +++ b/common/Makefile @@ -0,0 +1,38 @@ +# **************************************************************************** # +# # +# ::: :::::::: # +# Makefile :+: :+: :+: # +# +:+ +:+ +:+ # +# By: cacharle <marvin@42.fr> +#+ +:+ +#+ # +# +#+#+#+#+#+ +#+ # +# Created: 2020/02/09 22:39:08 by cacharle #+# #+# # +# Updated: 2020/02/09 23:57:34 by cacharle ### ########.fr # +# # +# **************************************************************************** # + +LIB = ar rcs +RM = rm -rf + +CC = gcc +CCFLAGS = -Wall -Wextra -Werror + +NAME = libphilocommon.a + +SRC = $(shell find . -type f -name "*.c") +OBJ = $(SRC:.c=.o) + +all: $(NAME) + +$(NAME): $(OBJ) + $(LIB) $(NAME) $(OBJ) + +%.o: %.c + $(CC) $(CCFLAGS) -c -o $@ $< + +clean: + $(RM) $(OBJ) + +fclean: clean + $(RM) $(NAME) + +re: fclean all |
