diff options
Diffstat (limited to 'libft')
-rw-r--r-- | libft/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/libft/Makefile b/libft/Makefile index 8ad24a7..2bd6342 100644 --- a/libft/Makefile +++ b/libft/Makefile @@ -118,10 +118,18 @@ OS = $(shell uname) #==============================================================================# #-------------------------------- Compiler ------------------------------------# #==============================================================================# -DBG = -glldb +ifeq (${OS}, Linux) + DBG = -ggdb +else + DBG = -glldb +endif FSANITIZE = -fsanitize=address #------------------------------------------------------------------------------# -CC = clang +ifeq (${OS}, Linux) + CC = gcc +else + CC = clang +endif #------------------------------------------------------------------------------# CFLAGS = -std=c89 CFLAGS += -Wall |