diff --git a/Makefile b/Makefile index 735f0abf..5ed2a6bf 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: rparodi +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2023/11/12 11:05:05 by rparodi #+# #+# # -# Updated: 2024/07/24 12:21:26 by maiboyer ### ########.fr # +# Updated: 2024/07/26 14:04:45 by maiboyer ### ########.fr # # # # **************************************************************************** # @@ -40,6 +40,14 @@ ifeq ($(shell uname), Darwin) endif endif +# TODO: ADD THIS WHEN FINISHING THIS: +# CFLAGS_ADDITIONAL += -DNVALGRIND + +# TODO: REMOVE THIS WHEN FINISHING THIS: +CFLAGS_ADDITIONAL += -DPRINT_BACKTRACE +CFLAGS_ADDITIONAL += -gcolumn-info +CFLAGS_ADDITIONAL += '-DERROR=((void)printf("ERROR HERE: " __FILE__ ":%d in %s\n", __LINE__, __func__), 1)' + # All (make all) all: @$(MAKE) --no-print-directory header "BUILD_DIR=$(BUILD_DIR)" "BASE_PATH=$(shell pwd)" diff --git a/Minishell.mk b/Minishell.mk index a7826372..e6f5e019 100644 --- a/Minishell.mk +++ b/Minishell.mk @@ -6,7 +6,7 @@ # By: maiboyer +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2024/04/28 17:28:30 by maiboyer #+# #+# # -# Updated: 2024/07/26 13:52:19 by maiboyer ### ########.fr # +# Updated: 2024/07/26 14:04:41 by maiboyer ### ########.fr # # # # **************************************************************************** # @@ -18,15 +18,6 @@ link_group = -Wl,--start-group $(1) -Wl,--end-group ANAME = sh BUILD_DIR ?= $(shell realpath ./build/) -# TODO: ADD THIS WHEN FINISHING THIS: -# CFLAGS_ADDITIONAL += -DNVALGRIND - -# TODO: REMOVE THIS WHEN FINISHING THIS: -CFLAGS_ADDITIONAL += -DPRINT_BACKTRACE -CFLAGS_ADDITIONAL += -gcolumn-info -CFLAGS_ADDITIONAL += '-DERROR=((void)printf("ERROR HERE: " __FILE__ ":%d in %s\n", __LINE__, __func__), 1)' - - # Flags CFLAGS = -Werror -Wextra -Wall -Wno-unused-command-line-argument -g3 -MMD -I./includes -I./output/include -I./stdme/output/include -rdynamic -Wl,-E CFLAGS += $(CFLAGS_ADDITIONAL)