42_ft_printf/Makefile
Camille Chauvet af946dbf97 v1
2022-10-10 19:33:47 +02:00

52 lines
1.4 KiB
Makefile

# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/09/27 08:39:27 by cchauvet #+# #+# #
# Updated: 2022/10/10 14:34:40 by cchauvet ### ########.fr #
# #
# **************************************************************************** #
SRCS = ft_ctoa.c \
ft_itoa.c \
ft_ltoabase.c \
ft_printf.c \
ft_ptoa.c \
ft_putchar_fd.c \
ft_putendl_fd.c \
ft_putstr_fd.c \
ft_strchr.c \
ft_strdup.c \
ft_strjoin.c \
ft_strlen.c \
ft_ultoabase.c \
ft_vdprintf.c \
ft_vprintf.c \
ft_vsprintf.c
OBJS = ${SRCS:.c=.o}
NAME = libftprintf
CFLAG = -Wall -Werror -Wextra
%.o: %.c libftprintf.h
${CC} ${CFLAGS} -c -o $@ $<
all: ${NAME}
${NAME}: ${OBJS}
ar -rc ${NAME}.a ${OBJS}
clean:
rm -f ${OBJS} ${BOBJS}
fclean: clean
rm -f ${NAME}.a
re: fclean all
.PHONY: bonus extra clean fclean re