diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-10-08 20:01:35 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-10-08 20:01:35 +0200 |
| commit | 8f3e1c37b67ae18ece6140e497e48139c43f8253 (patch) | |
| tree | eb48e89c78c3559eba109d82a4509d05c2df149c /Makefile | |
| parent | a92760a9b3a52268e751f6a25db215bcc01cd997 (diff) | |
| download | ft_printf-8f3e1c37b67ae18ece6140e497e48139c43f8253.tar.gz ft_printf-8f3e1c37b67ae18ece6140e497e48139c43f8253.tar.bz2 ft_printf-8f3e1c37b67ae18ece6140e497e48139c43f8253.zip | |
Added Makefile, ft_printf template
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
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 |
