From cafb2eb464347c47c3cee1a766c3b96ccf66e5fa Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 24 Mar 2020 14:56:13 +0100 Subject: Back to clang --- Makefile | 12 ++---------- libft/Makefile | 12 ++---------- minilibx_linux/Makefile.gen | 2 +- minilibx_linux/Makefile.mk | 2 +- 4 files changed, 6 insertions(+), 22 deletions(-) diff --git a/Makefile b/Makefile index 4534a1e..9ba75ca 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3