42_ft_printf/Makefile

52 lines
1.4 KiB
Makefile
Raw Normal View History

2022-10-06 20:30:03 -04:00
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/09/27 08:39:27 by cchauvet #+# #+# #
2022-10-10 13:33:47 -04:00
# Updated: 2022/10/10 14:34:40 by cchauvet ### ########.fr #
2022-10-06 20:30:03 -04:00
# #
# **************************************************************************** #
2022-10-10 13:33:47 -04:00
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
2022-10-06 20:30:03 -04:00
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