aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile6
-rw-r--r--libft/Makefile6
2 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9a5fb36..f21f07a 100644
--- a/Makefile
+++ b/Makefile
@@ -119,7 +119,11 @@ endif
#==================================================================================================#
#------------------------------------------ Compiler ----------------------------------------------#
#==================================================================================================#
-DEBUG = -glldb
+ifeq (${OS}, Darwin)
+ DEBUG = -glldb
+else
+ DEBUG = -ggdb
+endif
FSANITIZE = -fsanitize=address
#--------------------------------------------------------------------------------------------------#
ifeq (${OS}, Darwin)
diff --git a/libft/Makefile b/libft/Makefile
index 502c38a..0c61d4d 100644
--- a/libft/Makefile
+++ b/libft/Makefile
@@ -118,7 +118,11 @@ OS = $(shell uname)
#==============================================================================#
#-------------------------------- Compiler ------------------------------------#
#==============================================================================#
-DEBUG = -glldb
+ifeq (${OS}, Darwin)
+ DEBUG = -glldb
+else
+ DEBUG = -ggdb
+endif
FSANITIZE = -fsanitize=address
#------------------------------------------------------------------------------#
ifeq (${OS}, Darwin)