-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (25 loc) · 1.23 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: yel-aoun <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/11/30 20:42:32 by yel-aoun #+# #+# #
# Updated: 2021/12/03 21:19:41 by yel-aoun ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_printf.c ft_printchar.c ft_printstr.c ft_printhexa.c ft_printadd.c ft_printdec.c \
ft_cal_dec.c ft_cal_hexa.c ft_printunsigned.c
OBJ = $(SRC:.c=.o)
CFLAGS = -Wall -Wextra -Werror -c
$(NAME): $(OBJ)
ar rcs $(NAME) $(OBJ)
all: $(NAME)
clean:
rm -rf $(OBJ)
fclean:
rm -rf $(OBJ) $(NAME)
re: fclean all
.PHONY: all clean fclean re