42_solong/libftx/printf/Makefile

40 lines
1.4 KiB
Makefile
Raw Normal View History

2022-12-22 11:54:17 -05:00
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/09/27 08:39:27 by cchauvet #+# #+# #
2023-01-04 14:07:13 -05:00
# Updated: 2023/01/04 15:36:08 by cchauvet ### ########.fr #
2022-12-22 11:54:17 -05:00
# #
# **************************************************************************** #
2023-01-04 14:07:13 -05:00
CC = clang
2022-12-22 11:54:17 -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
OBJS = ${SRCS:.c=.o}
NAME = ft_printf.a
CFLAG = -Wall -Werror -Wextra
%.o: %.c
${CC} ${CFLAGS} -c -o $@ $<
all: ${NAME}
${NAME}: ${OBJS}
ar -rc ${NAME} ${OBJS}
clean:
rm -f ${OBJS} ${BOBJS}
fclean: clean
rm -f ${NAME}
re: fclean all
.PHONY: all clean fclean re