-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (50 loc) · 1.88 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: thifranc <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/02/04 19:24:34 by thifranc #+# #+# #
# Updated: 2017/11/30 15:25:06 by thifranc ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
FLAGS = -Wall -Werror -Wextra
SRC = atoi itoa ptrf\
memalloc bzero memccpy memchr memset\
memmove memcmp memcpy memdel\
putnb_base putendl putendl_fd\
putnbr putnbr_fd putstr putstr_fd putstrdel\
putchar putchar_fd write_fd\
strcat striter strncpy strtrim\
strchr striteri strnequ\
strlcat strclr strjoin strnew\
strcmpi strcmp strlen strnstr\
strcpy strmap strrchr\
strdel strmapi strsplit\
strdup strncat strstr\
strequ strncmp strsub\
strlower tolower isalnum toupper isalpha\
isascii isdigit isprint\
lstadd lstnew lstdelone lstiter lstmap lstdel\
get_char\
max min power lower\
base_10 higher\
print_n_char nblen nb_len_base\
tabnew\
strdup_del strjoin_del deltab\
gnl swap realloc\
exiting abs get_rank
SRC:= $(addprefix ft_, $(SRC))
SRC:= $(addsuffix .c, $(SRC))
OBJ = $(SRC:%.c=%.o)
all: $(NAME)
$(NAME):
@gcc -c $(FLAGS) $(SRC)
@ar rc $(NAME) $(OBJ)
clean :
@/bin/rm -f $(OBJ)
fclean : clean
@/bin/rm -f $(NAME)
re : fclean all