aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-24 14:56:13 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-24 14:56:13 +0100
commitcafb2eb464347c47c3cee1a766c3b96ccf66e5fa (patch)
tree7a77609a887f3ca0a87c1bd3458485d5ba73e0f6
parentRam issues fixed (diff)
download42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.tar.gz
42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.tar.bz2
42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.tar.xz
42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.tar.zst
42-cub3d-cafb2eb464347c47c3cee1a766c3b96ccf66e5fa.zip
Back to clang
-rw-r--r--Makefile12
-rw-r--r--libft/Makefile12
-rw-r--r--minilibx_linux/Makefile.gen2
-rw-r--r--minilibx_linux/Makefile.mk2
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