-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (26 loc) · 1.27 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: iidzim <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/12/22 17:32:24 by iidzim #+# #+# #
# Updated: 2019/12/22 18:10:26 by iidzim ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_convert_address.c ft_convert_cper.c ft_convert_d.c ft_convert_d2.c\
ft_convert_strings.c ft_convert_u.c ft_convert_x.c ft_more_flags.c\
ft_printf.c ft_printf_utils.c ft_printf_utils2.c\
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME):
gcc -Wall -Wextra -Werror -c $(SRC)
ar -rc $(NAME) $(OBJ)
ranlib $(NAME)
clean:
rm -rf $(OBJ)
fclean:
rm -rf $(NAME)
re: fclean all