-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
122 lines (111 loc) · 3.09 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: tomlulu <tomlulu@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/01/09 15:05:31 by tomlulu #+# #+# #
# Updated: 2018/01/24 08:14:30 by tmaraval ### ########.fr #
# #
# **************************************************************************** #
NAME = libftprintf.a
SRC = ft_printf.c \
ft_printf_parser.c \
ft_printf_parser_utils.c \
ft_printf_utils.c \
ft_printf_precision.c \
ft_printf_str_precision.c \
ft_printf_width.c \
ft_printf_width_utils.c \
ft_printf_cwidth.c \
ft_printf_num_flag.c \
ft_printf_flag_utils.c \
conv/ft_conv.c \
conv/ft_conv_integer.c \
conv/ft_lltoa_base.c \
conv/ft_ulltoa_base.c \
conv/ft_conv_char.c \
conv/ft_conv_str.c \
libft/ft_atoi.c \
libft/ft_bzero.c \
libft/ft_isalnum.c \
libft/ft_isalpha.c \
libft/ft_isascii.c \
libft/ft_isdigit.c \
libft/ft_isprint.c \
libft/ft_itoa.c \
libft/ft_itoa_base.c \
libft/ft_lstadd.c \
libft/ft_lstdel.c \
libft/ft_lstdelone.c \
libft/ft_lstiter.c \
libft/ft_lstmap.c \
libft/ft_lstnew.c \
libft/ft_memalloc.c \
libft/ft_memccpy.c \
libft/ft_memchr.c \
libft/ft_memcmp.c \
libft/ft_memcpy.c \
libft/ft_memdel.c \
libft/ft_memmove.c \
libft/ft_memset.c \
libft/ft_putchar.c \
libft/ft_putchar_fd.c \
libft/ft_putendl.c \
libft/ft_putendl_fd.c \
libft/ft_putnbr.c \
libft/ft_putnbr_fd.c \
libft/ft_putstr.c \
libft/ft_putstr_color.c \
libft/ft_putstr_fd.c \
libft/ft_str_is_lowercase.c \
libft/ft_str_is_numeric.c \
libft/ft_strcat.c \
libft/ft_strchr.c \
libft/ft_strclr.c \
libft/ft_strcmp.c \
libft/ft_strcpy.c \
libft/ft_strdel.c \
libft/ft_strdup.c \
libft/ft_strequ.c \
libft/ft_striter.c \
libft/ft_striteri.c \
libft/ft_strjoin.c \
libft/ft_strlcat.c \
libft/ft_strlen.c \
libft/ft_strlowcase.c \
libft/ft_strmap.c \
libft/ft_strmapi.c \
libft/ft_strncat.c \
libft/ft_strncmp.c \
libft/ft_strncpy.c \
libft/ft_strnequ.c \
libft/ft_strnew.c \
libft/ft_strnstr.c \
libft/ft_strrchr.c \
libft/ft_strrev.c \
libft/ft_strrpl.c \
libft/ft_strsplit.c \
libft/ft_strstr.c \
libft/ft_strsub.c \
libft/ft_strtrim.c \
libft/ft_strupcase.c \
libft/ft_tolower.c \
libft/ft_toupper.c \
libft/ft_wcstrlen.c \
libft/ft_wcstrsub.c \
libft/ft_wcstrjoin.c
OBJ = $(SRC:.c=.o)
all: $(NAME)
$(NAME): $(OBJ)
ar rc $(NAME) $(OBJ)
ranlib $(NAME)
./%.o: %.c
gcc -g -c $< -o $@
clean:
/bin/rm -f $(OBJ)
fclean: clean
/bin/rm -f $(NAME)
re: fclean all
.PHONY: all clean fclean re