2022-10-06 20:30:03 -04:00
|
|
|
# **************************************************************************** #
|
|
|
|
# #
|
|
|
|
# ::: :::::::: #
|
|
|
|
# Makefile :+: :+: :+: #
|
|
|
|
# +:+ +:+ +:+ #
|
|
|
|
# By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ #
|
|
|
|
# +#+#+#+#+#+ +#+ #
|
|
|
|
# Created: 2022/09/27 08:39:27 by cchauvet #+# #+# #
|
2022-11-07 13:47:30 -05:00
|
|
|
# Updated: 2022/11/07 19:43:10 by cchauvet ### ########.fr #
|
2022-10-06 20:30:03 -04:00
|
|
|
# #
|
|
|
|
# **************************************************************************** #
|
2022-10-23 13:01:50 -04:00
|
|
|
SRCS = ft_dprintarg.c \
|
|
|
|
ft_dprintf.c \
|
|
|
|
ft_dprintflag.c \
|
|
|
|
ft_dprintl_base.c \
|
|
|
|
ft_dprintx.c \
|
|
|
|
ft_dprintX.c \
|
|
|
|
ft_dprintptr.c \
|
|
|
|
ft_dprintul_base.c \
|
|
|
|
ft_dprintul.c \
|
|
|
|
ft_isarg.c \
|
|
|
|
ft_isdigit.c \
|
2022-10-10 13:33:47 -04:00
|
|
|
ft_printf.c \
|
|
|
|
ft_putchar_fd.c \
|
|
|
|
ft_putstr_fd.c \
|
2022-10-23 13:01:50 -04:00
|
|
|
ft_skipflag.c \
|
2022-10-10 13:33:47 -04:00
|
|
|
ft_strlen.c \
|
2022-10-23 13:01:50 -04:00
|
|
|
ft_vdprintf.c
|
2022-10-06 20:30:03 -04:00
|
|
|
|
|
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
|
2022-10-23 13:01:50 -04:00
|
|
|
NAME = libftprintf.a
|
2022-10-06 20:30:03 -04:00
|
|
|
|
|
|
|
CFLAG = -Wall -Werror -Wextra
|
|
|
|
|
2022-11-07 13:47:30 -05:00
|
|
|
%.o: %.c
|
2022-10-06 20:30:03 -04:00
|
|
|
${CC} ${CFLAGS} -c -o $@ $<
|
|
|
|
|
|
|
|
all: ${NAME}
|
|
|
|
|
|
|
|
${NAME}: ${OBJS}
|
2022-10-23 13:01:50 -04:00
|
|
|
ar -rc ${NAME} ${OBJS}
|
2022-10-06 20:30:03 -04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${OBJS} ${BOBJS}
|
|
|
|
|
|
|
|
fclean: clean
|
2022-10-23 13:01:50 -04:00
|
|
|
rm -f ${NAME}
|
2022-10-06 20:30:03 -04:00
|
|
|
|
|
|
|
re: fclean all
|
|
|
|
|
2022-11-07 13:47:30 -05:00
|
|
|
.PHONY: all clean fclean re
|