From fb8df888bf99fa921612ac210a570d9a4b51fb26 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 2 May 2025 16:09:29 +0200 Subject: [PATCH] build(09): adding the debug rules --- cpp09/ex02/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp09/ex02/Makefile b/cpp09/ex02/Makefile index 8e8dac7..496bedd 100644 --- a/cpp09/ex02/Makefile +++ b/cpp09/ex02/Makefile @@ -4,9 +4,8 @@ # Makefile :+: :+: :+: # # +:+ +:+ +:+ # # By: rparodi +#+ +:+ +#+ # -# +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2025/05/02 15:21:01 by rparodi ### ########.fr # +# Updated: 2025/05/02 15:40:00 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -83,11 +82,12 @@ $(OBJDIRNAME)/%.o: %.cpp @printf '$(GREY) Compiling $(END)$(GREEN)$<$(END)\n' @$(CXX) $(CXXFLAGS) $(CPPFLAGS) -o $@ -c $< -test: - debug: CPPFLAGS += -D DEBUG=1 debug: re +test: debug + @./$(NAME) $(shell shuf -i 1-100000 -n 3000 | tr "\n" " ") + # Header header: @clear @@ -134,5 +134,5 @@ clangd: @printf '$(GREY) Now parsing settings is set in $(END)$(GREEN)./.clangd$(END)\n' # Phony -.PHONY: all clean fclean re get_db clangd +.PHONY: all clean fclean re clangd debug test -include ${OBJ:.o=.d}