-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (32 loc) · 1.8 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
# **************************************************************************** #
#
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: aizsak <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/07 11:49:45 by aizsak #+# #+# #
# Updated: 2022/11/19 13:42:27 by aizsak ### ########.fr #
# #
# **************************************************************************** #
SRC = ft_memset ft_bzero ft_memcpy ft_memmove ft_memchr ft_memcmp ft_strlen ft_isalpha ft_isdigit ft_isalnum ft_isascii ft_isprint ft_toupper ft_tolower ft_strchr ft_strrchr ft_strncmp ft_strlcpy ft_strlcat ft_strnstr ft_atoi ft_calloc ft_strdup ft_substr ft_strjoin ft_strtrim ft_split ft_itoa ft_strmapi ft_putchar_fd ft_putstr_fd ft_putendl_fd ft_putnbr_fd ft_striteri ft_lstnew ft_lstadd_front ft_lstsize ft_lstadd_back ft_lstdelone ft_lstclear ft_lstiter ft_lstlast ft_printf ft_pchar ft_pstr ft_pnbr ft_ppercent ft_phexa ft_pnbr_unsigned ft_pptr get_next_line get_next_line_utils
SRCS = $(addsuffix .c, ${SRC})
HEAD = ./includes/
OBJS = ${SRCS:.c=.o}
NAME = libft.a
CC = gcc
RM = rm -f
AR = ar rc
RN = ranlib
CFLAGS = -Wall -Wextra -Werror
$(NAME): ${OBJS}
${AR} ${NAME} ${OBJS}
${RN} ${NAME}
all: $(NAME)
clean:
${RM} ${OBJS}
fclean: clean
${RM} $(NAME)
re: fclean all
.PHONY: all bonus clean fclean re