NAME=ft_nm PRINTF=lib/libftprintf.a all: $(NAME) $(NAME): $(PRINTF) gcc -Wall -Wextra -Werror -o $(NAME) main.c nm/nm32.c nm/nm64.c nm/is.c -I includes -L lib -lftprintf $(PRINTF): make -C ft_printf cp ft_printf/libftprintf.a lib/ cp ft_printf/includes/libft.h includes/ cp ft_printf/includes/ft_printf.h includes/ tests: ./testster.sh debug: gcc -Wall -Wextra -Werror -g -o $(NAME) main.c nm/nm32.c nm/nm64.c nm/is.c -I includes readelf: gcc -DREADELF -g -Wall -Wextra -Werror -o ft_re main.c re/re32.c re/re64.c re/gets.c -I includes clean: ${MAKE} -C ft_printf clean rm -rf ./exterminatests/*/*/logs rm -f $(NAME) fclean: clean ${MAKE} -C ft_printf fclean rm -rf lib/libftprintf.a re: fclean all .PHONY: all clean fclean re