aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5feb222..9a5fb36 100644
--- a/Makefile
+++ b/Makefile
@@ -122,7 +122,11 @@ endif
DEBUG = -glldb
FSANITIZE = -fsanitize=address
#--------------------------------------------------------------------------------------------------#
-CC = clang
+ifeq (${OS}, Darwin)
+ CC = clang
+else
+ CC = gcc
+endif
#--------------------------------------------------------------------------------------------------#
CFLAGS = -std=c89
CFLAGS += -Wall
@@ -186,6 +190,9 @@ endif
#--------------------------------------------------------------------------------------------------#
fclean: clean
@$(MAKE) --no-print-directory -C ${LFT_DIR} fclean
+ifeq (${OS}, Linux)
+ ${RM} ${MLX_GNU_DIR}libmlx_x86_64.a
+endif
${RM} ${NAME}
${RM} ${NAME}.dSYM
#--------------------------------------------------------------------------------------------------#