-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
88 lines (75 loc) · 1.9 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: fraqioui <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/10/16 09:36:04 by fraqioui #+# #+# #
# Updated: 2022/10/19 08:43:08 by fraqioui ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
CC=gcc
CL=ar -csr
CN=rm -rf
FLAGS=-Wall -Wextra -Werror
FILES = ft_isalpha \
ft_isdigit \
ft_isalnum \
ft_isascii \
ft_strlen \
ft_toupper \
ft_tolower\
ft_strchr \
ft_strrchr \
ft_strncmp \
ft_strnstr \
ft_strlcpy \
ft_strlcat \
ft_atoi \
ft_memcpy \
ft_memmove \
ft_memset \
ft_memcmp \
ft_memchr \
ft_strdup \
ft_substr \
ft_strjoin \
ft_split \
ft_itoa \
ft_strmapi \
ft_putchar_fd\
ft_putstr_fd \
ft_putendl_fd \
ft_isprint \
ft_putnbr_fd \
ft_strtrim \
ft_bzero \
ft_calloc \
ft_striteri
BFILES= ft_lstnew \
ft_lstadd_front \
ft_striteri \
ft_lstsize \
ft_lstlast \
ft_lstadd_back \
ft_lstdelone \
ft_lstclear \
ft_lstiter \
ft_lstmap
OBJ=${FILES:=.o}
BOBJ=${BFILES:=.o}
.PHONY: all bonus clean fclean re
all: ${NAME}
${NAME}: ${OBJ}
@${CL} ${NAME} ${OBJ}
bonus: ${BOBJ}
@${CL} ${NAME} ${BOBJ}
%.o: %.c libft.h
@${CC} ${FLAGS} -c $< -o $@
clean:
@${CN} ${OBJ} ${BOBJ}
fclean: clean
@${CN} ${NAME}
re: fclean all