libft/Makefile
2024-10-16 15:59:48 +02:00

53 lines
1.5 KiB
Makefile

# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: kcolin <marvin@42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2024/10/14 13:43:59 by kcolin #+# #+# #
# Updated: 2024/10/16 15:38:09 by kcolin ### ########.fr #
# #
# **************************************************************************** #
NAME = libft.a
CFLAGS = -Wall -Wextra -Werror -ggdb
SOURCES = ft_isalpha.c \
ft_isdigit.c \
ft_isalnum.c \
ft_isascii.c \
ft_isprint.c \
ft_strlen.c \
ft_memset.c \
ft_bzero.c \
ft_memcpy.c \
ft_memmove.c \
ft_strlcpy.c \
ft_strlcat.c \
ft_toupper.c \
ft_tolower.c \
ft_strchr.c \
ft_strrchr.c \
ft_strncmp.c \
ft_memchr.c \
ft_memcmp.c \
ft_strnstr.c
OBJECTS = $(SOURCES:.c=.o)
CC = gcc
.PHONY: all
all: $(NAME)
$(NAME): $(OBJECTS)
ar rcs libft.a $(OBJECTS)
.PHONY: fclean
fclean: clean
rm -f libft.a
.PHONY: clean
clean:
rm -f $(OBJECTS)
.PHONY: re
re: fclean all