-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (62 loc) · 1.94 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: abadidi <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/02/18 00:19:42 by abadidi #+# #+# #
# Updated: 2021/04/23 00:28:45 by abadidi ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
FLAGS = -Wall -Wextra -Werror -c
SRCS = ft_printf.c \
tools/ft_router.c \
tools/ft_atoi.c \
tools/ft_print_p.c \
tools/ft_print_x.c \
tools/convert/ft_itoa.c \
tools/ft_isdigit.c \
tools/ft_print_s.c \
tools/ft_str/ft_putchar.c \
tools/convert/ft_tohex.c \
tools/ft_print_c.c \
tools/ft_print_smol_x.c \
tools/ft_str/ft_putstr.c \
tools/convert/ft_utoa.c \
tools/ft_print_i.c \
tools/ft_print_ui.c \
tools/ft_varwidth.c
OBJ = ft_printf.o \
ft_atoi.o \
ft_print_p.o \
ft_router.o \
ft_print_x.o \
ft_itoa.o \
ft_isdigit.o \
ft_print_s.o \
ft_putchar.o \
ft_tohex.o \
ft_print_c.o \
ft_print_smol_x.o \
ft_putstr.o \
ft_utoa.o \
ft_print_i.o \
ft_print_ui.o \
ft_varwidth.o
$(NAME):
clang $(FLAGS) $(SRCS)
ar -rc $(NAME) $(OBJ)
ranlib $(NAME)
all: $(NAME)
clean:
rm -f $(OBJ)
fclean: clean
rm -f $(NAME)
re: fclean
make all
bonus: fclean
gcc $(FLAGS) $(SRCS) $(BONUS)
ar -rc $(NAME) $(SRCS:.o=.o)
ranlib $(NAME)