-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
84 lines (76 loc) · 1.16 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
NAME=libft.a
SRC=./
CLASSES=ft_atoi \
ft_bzero \
ft_isalnum \
ft_isalpha \
ft_isascii \
ft_isdigit \
ft_isprint \
ft_memccpy \
ft_memchr \
ft_memcmp \
ft_memcpy \
ft_memmove \
ft_memset \
ft_strcat \
ft_strchr \
ft_strcmp \
ft_strcpy \
ft_strdup \
ft_strlcat \
ft_strlen \
ft_strncat \
ft_strncmp \
ft_strncpy \
ft_strnstr \
ft_strrchr \
ft_strstr \
ft_tolower \
ft_toupper \
ft_itoa \
ft_memalloc \
ft_memdel \
ft_putchar \
ft_putchar_fd \
ft_putendl \
ft_putendl_fd \
ft_putnbr \
ft_putnbr_fd \
ft_putstr \
ft_putstr_fd \
ft_strclr \
ft_strdel \
ft_strequ \
ft_striter \
ft_striteri \
ft_strjoin \
ft_strmap \
ft_strmapi \
ft_strnequ \
ft_strnew \
ft_strsplit \
ft_strsub \
ft_strtrim \
ft_lstadd \
ft_lstdel \
ft_lstdelone \
ft_lstiter \
ft_lstmap \
ft_lstnew \
ty_haswhitespace \
ft_strndup \
ft_strnlen \
ty_atoi \
ty_charcomp
HEADERS_FOLDER=./
all: $(NAME)
$(NAME):
gcc -Wall -Wextra -Werror -I $(HEADERS_FOLDER) -c $(addprefix $(SRC),$(addsuffix .c, $(CLASSES)))
ar -rv $(NAME) $(addsuffix .o, $(CLASSES))
ranlib $(NAME)
clean:
rm -f $(addsuffix .o, $(CLASSES))
fclean: clean
rm -f $(NAME)
re: fclean all