init(make/bonus): bonus rules done

This commit is contained in:
Raphael 2025-06-21 11:59:59 +02:00
parent 94bf51a9fb
commit 6716df3af4
2 changed files with 6 additions and 4 deletions

View file

@ -6,7 +6,7 @@
# By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ # # By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2025/05/02 15:40:00 by rparodi #+# #+# # # 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 (make all)
all: header $(NAME) footer all: header $(NAME) footer
bonus: CPPFLAGS += -D BONUS=1
bonus: all
# Clean (make clean) # Clean (make clean)
clean: clean:
@printf '$(GREY) Removing $(END)$(RED)Objects$(END)\n' @printf '$(GREY) Removing $(END)$(RED)Objects$(END)\n'

View file

@ -6,14 +6,14 @@
/* By: omoudni <omoudni@student.42paris.fr> +#+ +:+ +#+ */ /* By: omoudni <omoudni@student.42paris.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/05/12 14:16:03 by rparodi #+# #+# */ /* 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 #pragma once
#ifdef DEBUG #ifndef BONUS
#define LOG std::endl << CLR_CYAN << "Debug: " << __FILE__ << ":" << __LINE__ << std::endl << CLR_RESET #define BONUS 0
#endif #endif
enum e_code { enum e_code {