diff options
Diffstat (limited to 'libft')
-rw-r--r-- | libft/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libft/Makefile b/libft/Makefile index 502c38a..3073304 100644 --- a/libft/Makefile +++ b/libft/Makefile @@ -118,7 +118,11 @@ OS = $(shell uname) #==============================================================================# #-------------------------------- Compiler ------------------------------------# #==============================================================================# -DEBUG = -glldb +ifeq (${OS}, Darwin) + DBG = -glldb +else + DBG = -ggdb +endif FSANITIZE = -fsanitize=address #------------------------------------------------------------------------------# ifeq (${OS}, Darwin) @@ -132,9 +136,12 @@ CFLAGS += -Wall CFLAGS += -Wextra CFLAGS += -Werror CFLAGS += -pedantic +ifdef DEBUG + CFLAGS += ${DBG} +endif #------------------------------------------------------------------------------# ifdef ASAN - CFLAGS += ${DEBUG} + CFLAGS += ${DBG} CFLAGS += ${FSANITIZE} endif #------------------------------------------------------------------------------# |