-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
79 lines (67 loc) · 2.12 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
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: bschwitz <marvin@42lausanne.ch> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2021/10/26 14:13:14 by bschwitz #+# #+# #
# Updated: 2023/10/02 21:56:48 by bschwitz ### ########.fr #
# #
# **************************************************************************** #
SRCS = srcs/ft_atoi.c \
srcs/ft_bzero.c \
srcs/ft_calloc.c \
srcs/ft_isalnum.c \
srcs/ft_isalpha.c \
srcs/ft_isascii.c \
srcs/ft_isdigit.c \
srcs/ft_isprint.c \
srcs/ft_itoa.c \
srcs/ft_lstadd_back.c \
srcs/ft_lstadd_front.c \
srcs/ft_lstclear.c \
srcs/ft_lstdelone.c \
srcs/ft_lstiter.c \
srcs/ft_lstlast.c \
srcs/ft_lstmap.c \
srcs/ft_lstnew.c \
srcs/ft_lstsize.c \
srcs/ft_memchr.c \
srcs/ft_memcmp.c \
srcs/ft_memmove.c \
srcs/ft_memset.c \
srcs/ft_putchar_fd.c \
srcs/ft_putendl_fd.c \
srcs/ft_putnbr_fd.c \
srcs/ft_putstr_fd.c \
srcs/ft_split.c \
srcs/ft_strchr.c \
srcs/ft_strdup.c \
srcs/ft_striteri.c \
srcs/ft_strjoin.c \
srcs/ft_strlcat.c \
srcs/ft_strlcpy.c \
srcs/ft_strlen.c \
srcs/ft_strmapi.c \
srcs/ft_strncmp.c \
srcs/ft_strnstr.c \
srcs/ft_strrchr.c \
srcs/ft_strtrim.c \
srcs/ft_substr.c \
srcs/ft_tolower.c \
srcs/ft_toupper.c \
OBJS = ${SRCS:.c=.o}
NAME = libft.a
CC = gcc
RM = rm -f
CFLAGS = -Wall -Werror -Wextra
all: ${NAME}
${NAME}: ${OBJS}
ar cr ${NAME} ${OBJS}
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re