-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (30 loc) · 1.35 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mmasuda <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/04/30 10:18:56 by mmasuda #+# #+# #
# Updated: 2021/05/15 18:45:43 by mmasuda ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRCS = ft_printf.c ft_printf_char.c ft_printf_hex.c ft_printf_int.c \
ft_printf_utils.c ft_printf_utils_add.c ft_printf_unsigned_int.c \
ft_printf_octal_percent.c ft_printf_libft.c
CC = gcc
CFLAGS = -Wall -Wextra -Werror
OBJS = $(SRCS:%.c=%.o)
RM = rm -f
.c.o:
$(CC) $(CFLAGS) -c $< -o $(<:.c=.o)
$(NAME): $(OBJS)
ar rcs $(NAME) $(OBJS)
all: $(NAME)
clean:
$(RM) $(OBJS) $(B_OBJS)
fclean: clean
$(RM) $(NAME)
re: fclean all
.PHONY: all clean fclean re