From 6716df3af4818e5a93861496a5786001f7890f02 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 21 Jun 2025 11:59:59 +0200 Subject: [PATCH] init(make/bonus): bonus rules done --- Makefile | 4 +++- include/core/core.hpp | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c16f1b5..7c9244c 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: sben-tay +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2025/05/02 15:40:00 by rparodi #+# #+# # -# Updated: 2025/06/19 11:29:58 by rparodi ### ########.fr # +# Updated: 2025/06/21 11:58:21 by rparodi ### ########.fr # # # # **************************************************************************** # @@ -72,6 +72,8 @@ END = \033[0m # All (make all) all: header $(NAME) footer +bonus: CPPFLAGS += -D BONUS=1 +bonus: all # Clean (make clean) clean: @printf '$(GREY) Removing $(END)$(RED)Objects$(END)\n' diff --git a/include/core/core.hpp b/include/core/core.hpp index 95590bf..1f53655 100644 --- a/include/core/core.hpp +++ b/include/core/core.hpp @@ -6,14 +6,14 @@ /* By: omoudni +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/05/12 14:16:03 by rparodi #+# #+# */ -/* Updated: 2025/06/05 11:10:45 by rparodi ### ########.fr */ +/* Updated: 2025/06/21 11:59:02 by rparodi ### ########.fr */ /* */ /******************************************************************************/ #pragma once -#ifdef DEBUG -#define LOG std::endl << CLR_CYAN << "Debug: " << __FILE__ << ":" << __LINE__ << std::endl << CLR_RESET +#ifndef BONUS +#define BONUS 0 #endif enum e_code {