53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
# **************************************************************************** #
|
|
# #
|
|
# ::: :::::::: #
|
|
# Makefile :+: :+: :+: #
|
|
# +:+ +:+ +:+ #
|
|
# By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ #
|
|
# +#+#+#+#+#+ +#+ #
|
|
# Created: 2022/09/27 08:39:27 by cchauvet #+# #+# #
|
|
# Updated: 2022/10/23 19:00:59 by cchauvet ### ########.fr #
|
|
# #
|
|
# **************************************************************************** #
|
|
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 \
|
|
ft_printf.c \
|
|
ft_putchar_fd.c \
|
|
ft_putstr_fd.c \
|
|
ft_skipflag.c \
|
|
ft_strlen.c \
|
|
ft_vdprintf.c
|
|
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
NAME = libftprintf.a
|
|
|
|
CFLAG = -Wall -Werror -Wextra
|
|
|
|
%.o: %.c libftprintf.h
|
|
${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: bonus extra clean fclean re
|