diff options
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | libft/Makefile | 12 | ||||
-rw-r--r-- | minilibx_linux/Makefile.gen | 2 | ||||
-rw-r--r-- | minilibx_linux/Makefile.mk | 2 |
4 files changed, 6 insertions, 22 deletions
@@ -153,18 +153,10 @@ endif #==================================================================================================# #------------------------------------------ Compiler ----------------------------------------------# #==================================================================================================# -ifeq (${OS}, Darwin) - DBG = -glldb -else - DBG = -ggdb -endif +DBG = -glldb FSANITIZE = -fsanitize=address #--------------------------------------------------------------------------------------------------# -ifeq (${OS}, Darwin) - CC = clang -else - CC = gcc -endif +CC = clang #--------------------------------------------------------------------------------------------------# CFLAGS = -std=c89 CFLAGS += -Wall diff --git a/libft/Makefile b/libft/Makefile index 3073304..8ad24a7 100644 --- a/libft/Makefile +++ b/libft/Makefile @@ -118,18 +118,10 @@ OS = $(shell uname) #==============================================================================# #-------------------------------- Compiler ------------------------------------# #==============================================================================# -ifeq (${OS}, Darwin) - DBG = -glldb -else - DBG = -ggdb -endif +DBG = -glldb FSANITIZE = -fsanitize=address #------------------------------------------------------------------------------# -ifeq (${OS}, Darwin) - CC = clang -else - CC = gcc -endif +CC = clang #------------------------------------------------------------------------------# CFLAGS = -std=c89 CFLAGS += -Wall diff --git a/minilibx_linux/Makefile.gen b/minilibx_linux/Makefile.gen index f93b892..5e2b3c1 100644 --- a/minilibx_linux/Makefile.gen +++ b/minilibx_linux/Makefile.gen @@ -15,7 +15,7 @@ DOCP=do_cp -CC = gcc +CC = clang NAME = libmlx.a diff --git a/minilibx_linux/Makefile.mk b/minilibx_linux/Makefile.mk index 4f919ac..189d072 100644 --- a/minilibx_linux/Makefile.mk +++ b/minilibx_linux/Makefile.mk @@ -15,7 +15,7 @@ INC = %%%% HT = %%%% DOCP = %%%% -CC = gcc +CC = clang NAME = libmlx.a |