-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
103 lines (93 loc) · 2.58 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: mcancela <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2018/12/07 08:21:12 by mcancela #+# #+# #
# Updated: 2019/02/28 11:20:57 by mcancela ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
SRCS = srcs/ft_atoi.c \
srcs/ft_bzero.c \
srcs/ft_isalnum.c \
srcs/ft_isalpha.c \
srcs/ft_isascii.c \
srcs/ft_isdigit.c \
srcs/ft_isprint.c \
srcs/ft_is_white.c \
srcs/ft_itoa.c \
srcs/ft_lstadd.c \
srcs/ft_lstdel.c \
srcs/ft_lstdelone.c \
srcs/ft_lstiter.c \
srcs/ft_lstmap.c \
srcs/ft_lstnew.c \
srcs/ft_lstput.c \
srcs/ft_memalloc.c \
srcs/ft_memccpy.c \
srcs/ft_memchr.c \
srcs/ft_memcmp.c \
srcs/ft_memcpy.c \
srcs/ft_memdel.c \
srcs/ft_memmove.c \
srcs/ft_memset.c \
srcs/ft_nb_idx.c \
srcs/ft_nb_words.c \
srcs/ft_nb_digits.c \
srcs/ft_nb_to_char.c \
srcs/ft_power.c \
srcs/ft_putchar.c \
srcs/ft_putchar_fd.c \
srcs/ft_putendl.c \
srcs/ft_putendl_fd.c \
srcs/ft_putnbr.c \
srcs/ft_putnbr_fd.c \
srcs/ft_putstr.c \
srcs/ft_putstr_fd.c \
srcs/ft_sqrt.c \
srcs/ft_strcat.c \
srcs/ft_strchr.c \
srcs/ft_strclr.c \
srcs/ft_strcmp.c \
srcs/ft_strcpy.c \
srcs/ft_strdel.c \
srcs/ft_strdup.c \
srcs/ft_strequ.c \
srcs/ft_striter.c \
srcs/ft_striteri.c \
srcs/ft_strjoin.c \
srcs/ft_strlcat.c \
srcs/ft_strlen.c \
srcs/ft_strmap.c \
srcs/ft_strmapi.c \
srcs/ft_strncat.c \
srcs/ft_strncmp.c \
srcs/ft_strncpy.c \
srcs/ft_strnequ.c \
srcs/ft_strnew.c \
srcs/ft_strnstr.c \
srcs/ft_strrchr.c \
srcs/ft_strsplit.c \
srcs/ft_strstr.c \
srcs/ft_strsub.c \
srcs/ft_strtrim.c \
srcs/ft_swap.c \
srcs/ft_tolower.c \
srcs/ft_toupper.c \
srcs/ft_realloc.c
OBJS = $(SRCS:.c=.o)
CFLAGS = -c -Wall -Wextra -Werror -Iincludes
all: $(NAME)
$(NAME): $(OBJS)
@ ar -rc $(NAME) $(OBJS)
@ ranlib $(NAME)
%.o : %.c
@ gcc $(CFLAGS) -o $@ $<
clean:
rm -f $(OBJS)
fclean: clean
rm -f $(NAME)
re: fclean all