2022-12-22 11:41:31 -05:00
|
|
|
OBJ = ${SRC:.c=.o}
|
|
|
|
|
|
|
|
NAME = libftx.a
|
|
|
|
|
2023-01-04 14:07:13 -05:00
|
|
|
LIBS = libft/libft.a gnl/get_next_line.a printf/ft_printf.a extra/extra.a
|
2022-12-22 11:41:31 -05:00
|
|
|
|
|
|
|
CC = clang
|
|
|
|
|
|
|
|
FLAG = -Wall -Wextra -Werror
|
|
|
|
|
|
|
|
all: ${NAME}
|
|
|
|
|
|
|
|
${NAME}: ${OBJ}
|
2023-01-04 14:07:13 -05:00
|
|
|
make -C extra
|
2022-12-22 11:41:31 -05:00
|
|
|
make -C libft
|
|
|
|
make -C gnl
|
|
|
|
make -C printf
|
|
|
|
ar -rcT $(NAME) $(LIBS)
|
|
|
|
|
|
|
|
clean:
|
2023-01-04 14:07:13 -05:00
|
|
|
make -C extra clean
|
2022-12-22 11:41:31 -05:00
|
|
|
make -C libft clean
|
|
|
|
make -C gnl clean
|
|
|
|
make -C printf clean
|
|
|
|
|
|
|
|
fclean: clean
|
|
|
|
rm -f ${NAME}
|
2023-01-04 14:07:13 -05:00
|
|
|
make -C extra fclean
|
2022-12-22 11:41:31 -05:00
|
|
|
make -C libft fclean
|
|
|
|
make -C printf fclean
|
|
|
|
make -C gnl fclean
|
|
|
|
|
|
|
|
re: fclean all
|
|
|
|
|
|
|
|
.PHONY: all clean fclean re
|