aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ad9d94d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+CC = gcc
+CCFLAGS = -Wall -Wextra #-Werror
+
+RM = rm -f
+
+NAME = ft_printf
+SRC = ft_printf.c
+OBJ = $(SRC:.c=.o)
+INCLUDE = ft_printf.h
+
+all: $(NAME)
+
+$(NAME): $(OBJ) $(INCLUDE)
+ $(CC) $(CCFLAGS) -o $@ $(OBJ)
+
+%.o: %.c
+ $(CC) $(CCFLAGS) -c -o $@ $<
+
+clean:
+ $(RM) $(OBJ)
+
+fclean: clean
+ $(RM) $(OBJ)
+
+re: fclean all