42_cube3D/libftx/Makefile
Camille Chauvet 537283e940 add: libftx
2023-04-26 11:02:44 +00:00

36 lines
527 B
Makefile

OBJ = ${SRC:.c=.o}
NAME = libftx.a
LIBS = libft/libft.a gnl/get_next_line.a printf/ft_printf.a extra/extra.a
CC = clang
FLAG = -Wall -Wextra -Werror
all: ${NAME}
${NAME}: ${OBJ}
make -C extra
make -C libft
make -C gnl
make -C printf
ar -rcT $(NAME) $(LIBS)
clean:
make -C extra clean
make -C libft clean
make -C gnl clean
make -C printf clean
fclean: clean
rm -f ${NAME}
make -C extra fclean
make -C libft fclean
make -C printf fclean
make -C gnl fclean
re: fclean all
.PHONY: all clean fclean re