Update makefiles
This commit is contained in:
parent
58fc4ecc78
commit
16aa4418e0
2 changed files with 10 additions and 11 deletions
10
Makefile
10
Makefile
|
|
@ -6,7 +6,7 @@
|
|||
# By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# 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)"
|
||||
|
|
|
|||
11
Minishell.mk
11
Minishell.mk
|
|
@ -6,7 +6,7 @@
|
|||
# By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# 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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue