aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile12
-rw-r--r--libft/Makefile12
-rw-r--r--minilibx-linux/Makefile.gen2
-rw-r--r--minilibx-linux/Makefile.mk2
-rw-r--r--minilibx-linux/test/Makefile.gen2
-rw-r--r--minilibx-linux/test/Makefile.mk2
-rw-r--r--src/ft_exit.c3
7 files changed, 9 insertions, 26 deletions
diff --git a/Makefile b/Makefile
index cc6c3ee..609f91d 100644
--- a/Makefile
+++ b/Makefile
@@ -160,18 +160,10 @@ endif
#==================================================================================================#
#------------------------------------------ Compiler ----------------------------------------------#
#==================================================================================================#
-ifeq (${OS}, Linux)
- DBG = -ggdb
-else
- DBG = -glldb
-endif
+DBG = -glldb
FSANITIZE = -fsanitize=address
#--------------------------------------------------------------------------------------------------#
-ifeq (${OS}, Linux)
- CC = gcc
-else
- CC = clang
-endif
+CC = clang
#--------------------------------------------------------------------------------------------------#
CFLAGS = -std=c89
CFLAGS += -Wall
diff --git a/libft/Makefile b/libft/Makefile
index 2bd6342..8ad24a7 100644
--- a/libft/Makefile
+++ b/libft/Makefile
@@ -118,18 +118,10 @@ OS = $(shell uname)
#==============================================================================#
#-------------------------------- Compiler ------------------------------------#
#==============================================================================#
-ifeq (${OS}, Linux)
- DBG = -ggdb
-else
- DBG = -glldb
-endif
+DBG = -glldb
FSANITIZE = -fsanitize=address
#------------------------------------------------------------------------------#
-ifeq (${OS}, Linux)
- CC = gcc
-else
- CC = clang
-endif
+CC = clang
#------------------------------------------------------------------------------#
CFLAGS = -std=c89
CFLAGS += -Wall
diff --git a/minilibx-linux/Makefile.gen b/minilibx-linux/Makefile.gen
index a96eb91..f1b7b36 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 4ebc26d..8aec9f8 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
diff --git a/minilibx-linux/test/Makefile.gen b/minilibx-linux/test/Makefile.gen
index b31bdb4..87788e6 100644
--- a/minilibx-linux/test/Makefile.gen
+++ b/minilibx-linux/test/Makefile.gen
@@ -6,7 +6,7 @@ DOCP=do_cp
INCLIB=$(INC)/../lib
-CC=gcc
+CC=clang
CFLAGS= -I$(INC) -O3 -I..
diff --git a/minilibx-linux/test/Makefile.mk b/minilibx-linux/test/Makefile.mk
index ca55cd3..0f53629 100644
--- a/minilibx-linux/test/Makefile.mk
+++ b/minilibx-linux/test/Makefile.mk
@@ -4,7 +4,7 @@ INC=%%%%
INCLIB=$(INC)/../lib
-CC=gcc
+CC=clang
CFLAGS= -I$(INC) -O3 -I..
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 729dda7..17b7087 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -55,9 +55,8 @@ static void
system(FT_SND_TERM_CMD);
}
i = -1;
- while (++i < FT_TOTAL_SFX)
+ while (clist->wlist.inited && ++i < FT_TOTAL_SFX)
{
- pthread_mutex_destroy(&clist->sfx[i].mutex);
if (FT_OS == 2)
{
pthread_cancel(clist->sfx[i].tid);