aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile5
-rw-r--r--libft/Makefile4
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 831850a..e033bb6 100644
--- a/Makefile
+++ b/Makefile
@@ -137,7 +137,10 @@ CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Werror
CFLAGS += -pedantic
-CFLAGS += ${DEBUG}
+#--------------------------------------------------------------------------------------------------#
+ifdef DEBUG
+ CFLAGS += ${DEBUG}
+endif
#--------------------------------------------------------------------------------------------------#
ifdef ASAN
CFLAGS += ${DEBUG}
diff --git a/libft/Makefile b/libft/Makefile
index 138fc40..1d77a29 100644
--- a/libft/Makefile
+++ b/libft/Makefile
@@ -136,7 +136,9 @@ CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Werror
CFLAGS += -pedantic
-CFLAGS += ${DEBUG}
+ifdef DEBUG
+ CFLAGS += ${DEBUG}
+endif
#------------------------------------------------------------------------------#
ifdef ASAN
CFLAGS += ${DEBUG}