summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e69de29..226b303 100644
--- a/Makefile
+++ b/Makefile
@@ -0,0 +1,21 @@
+NAME = libftprintf.a
+CC = cc
+CFLAGS = -Wall -Wextra -Werror
+
+SRC_FILES = ft_printf.c
+
+OBJ_FILES = $(SRC_FILES:.c=.o)
+
+all: $(NAME)
+
+$(NAME): $(OBJ_FILES)
+
+clean:
+ rm -f $(OBJ_FILES)
+
+fclean: clean
+ rm -f $(NAME)
+
+re: fclean all
+
+.PHONY: all clean fclean re