-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (42 loc) · 1.51 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: ysoroko <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/01/02 15:19:22 by ysoroko #+# #+# #
# Updated: 2021/01/18 11:30:45 by ysoroko ### ########.fr #
# #
# **************************************************************************** #
CC = gcc
CFLAGS = -Wall -Wextra -Werror
SRC = ft_printf.c \
ft_analyze_first_arg.c \
ft_flags_processing.c \
\
ft_itoa.c \
ft_libft_utils.c \
ft_libft_utils2.c \
ft_uitoa_base.c \
ft_ultoa_base.c \
\
ft_csp_percent_flags.c \
ft_diux_flags.c \
ft_width_prec_zero_minus.c \
\
ft_atoi_for_printf.c \
ft_printf_utils.c \
ft_precision.c
OBJS = $(SRC:.c=.o)
NAME = libftprintf.a
LINK = ar rc
all: $(NAME)
$(NAME): $(OBJS)
$(LINK) $(NAME) $(OBJS)
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re