-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
69 lines (50 loc) · 1.03 KB
/
Makefile
File metadata and controls
69 lines (50 loc) · 1.03 KB
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
NAME = libft.a
RM = rm -f
CC = gcc
CFLAGS = -Wall -Wextra -Werror
SRCs = etc/ft_atoi.c \
etc/ft_bzero.c \
etc/ft_calloc.c \
etc/ft_split.c \
etc/ft_itoa.c \
is/ft_isalnum.c \
is/ft_isalpha.c \
is/ft_isascii.c \
is/ft_isdigit.c \
is/ft_isprint.c \
str/ft_strlen.c \
str/ft_strncmp.c \
str/ft_strnstr.c \
str/ft_strchr.c \
str/ft_strlcpy.c \
str/ft_strlcat.c \
str/ft_strncmp.c \
str/ft_strrchr.c \
str/ft_strdup.c \
str/ft_strjoin.c \
str/ft_substr.c \
str/ft_strtrim.c \
str/ft_strmapi.c \
str/ft_striteri.c \
to/ft_tolower.c \
to/ft_toupper.c \
mem/ft_memcpy.c \
mem/ft_memcmp.c \
mem/ft_memchr.c \
mem/ft_memset.c \
mem/ft_memmove.c \
fd/ft_putchar_fd.c \
fd/ft_putstr_fd.c \
fd/ft_putnbr_fd.c \
fd/ft_putendl_fd.c \
OBJs = $(SRCs:.c=.o)
all : $(NAME)
$(NAME) : $(OBJs)
ar rcs $(NAME) $(OBJs)
$.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
clean :
$(RM) $(OBJs)
fclean : clean
$(RM) $(NAME)
re : fclean all