diff options
Diffstat (limited to '')
-rw-r--r-- | libft/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libft/Makefile b/libft/Makefile index d2053ee..1f93f13 100644 --- a/libft/Makefile +++ b/libft/Makefile @@ -119,10 +119,18 @@ USER = $(shell w | grep tty7 | awk '{print $$1}') #==============================================================================# #-------------------------------- Compiler ------------------------------------# #==============================================================================# -DEBUG = -glldb +ifeq (${OS}, Darwin) + DEBUG = -glldb +else + DEBUG = -ggdb +endif FSANITIZE = -fsanitize=address #------------------------------------------------------------------------------# -CC = clang +ifeq (${OS}, Darwin) + CC = clang +else + CC = gcc +endif #------------------------------------------------------------------------------# CFLAGS = -std=c89 CFLAGS += -Wall |