-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
106 lines (93 loc) · 2.1 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bsiguret <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2017/11/06 20:22:27 by bsiguret #+# #+# #
# Updated: 2017/11/09 21:17:35 by bsiguret ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
LINKER = gcc
FLAGS = -c -Werror -Wall -Wextra
SRC = atoi\
bzero\
isalpha\
isdigit\
isalnum\
isascii\
isprint\
memset\
memchr\
memcpy\
memccpy\
memcmp\
memmove\
strchr\
strlen\
strdup\
strcpy\
strncpy\
strcat\
strncat\
strlcat\
strrchr\
strstr\
strnstr\
strcmp\
strncmp\
toupper\
tolower\
memalloc\
memdel\
strnew\
strclr\
strdel\
striter\
striteri\
strmap\
strmapi\
strequ\
strnequ\
strsub\
strjoin\
strtrim\
strsplit\
putchar\
putstr\
putnbr\
putendl\
itoa\
putchar_fd\
putstr_fd\
putendl_fd\
putnbr_fd\
lstnew\
lstdelone\
lstdel\
lstadd\
lstiter\
lstmap\
isspace\
COMP = $(addprefix ft_, $(addsuffix .o, $(SRC)))
OBJECTS = $(addprefix ft_, $(addsuffix .c, $(SRC)))
HEADER_DIR = libft.h
all: $(NAME)
$(NAME):
@echo "##################"
@echo "### LIBFT ###"
@echo "##################\n"
gcc $(FLAGS) $(OBJECTS) -I.$(HEADER_DIR)
@echo "Compilation Done\n"
ar rc $(NAME) $(COMP)
@echo "Libft Done\n"
clean:
rm -f $(COMP)
@echo "Clean complete!\n"
fclean: clean
rm -f $(NAME)
@echo "Fclean complete!\n"
re: fclean all
.PHONY: all clean fclean re