2022-10-06 20:30:03 -04:00
|
|
|
# **************************************************************************** #
|
|
|
|
# #
|
|
|
|
# ::: :::::::: #
|
|
|
|
# Makefile :+: :+: :+: #
|
|
|
|
# +:+ +:+ +:+ #
|
|
|
|
# By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ #
|
|
|
|
# +#+#+#+#+#+ +#+ #
|
|
|
|
# Created: 2022/09/27 08:39:27 by cchauvet #+# #+# #
|
2022-12-07 10:20:42 -05:00
|
|
|
# Updated: 2022/12/07 16:20:21 by cchauvet ### ########.fr #
|
2022-10-06 20:30:03 -04:00
|
|
|
# #
|
|
|
|
# **************************************************************************** #
|
2022-12-07 10:20:42 -05:00
|
|
|
SRCS = ft_dprintul_base.c ft_isdigit.c ft_dprintul.c ft_dprintx.c ft_dprintflag.c ft_skipflag.c ft_vdprintf.c ft_dprintl_base.c ft_dprintX.c ft_dprintptr.c ft_strlen.c ft_putstr_fd.c ft_dprintarg.c ft_printf.c ft_putchar_fd.c ft_isarg.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
|