42_cube3D/libftx/printf/Makefile

40 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

2023-04-26 07:02:44 -04:00
# **************************************************************************** #
# #
# ::: :::::::: #
# Makefile :+: :+: :+: #
# +:+ +:+ +:+ #
# By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/09/27 08:39:27 by cchauvet #+# #+# #
2023-06-01 07:49:12 -04:00
# Updated: 2023/06/01 13:24:02 by erey-bet ### ########.fr #
2023-04-26 07:02:44 -04:00
# #
# **************************************************************************** #
CC = clang
SRCS = ft_dprintarg.c ft_dprintflag.c ft_dprintl_base.c ft_dprintptr.c ft_dprintstrtab.c ft_dprintul_base.c ft_dprintul.c ft_dprintx.c ft_dprintX.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 ft_eprintf.c
OBJS = ${SRCS:.c=.o}
NAME = ft_printf.a
2023-06-01 07:49:12 -04:00
CFLAG = -fPIE -Wall -Werror -Wextra -g
2023-04-26 07:02:44 -04:00
%.o: %.c
${CC} ${CFLAG} -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