aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 16:01:02 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 16:01:02 +0200
commit0bd2099bd02bf207bfeee571607efa7dfa624d65 (patch)
tree447785702a1999e2c43caa0bc1179bfaffde276d /Makefile
parentDone (diff)
download42-cub3d-0bd2099bd02bf207bfeee571607efa7dfa624d65.tar.gz
42-cub3d-0bd2099bd02bf207bfeee571607efa7dfa624d65.tar.bz2
42-cub3d-0bd2099bd02bf207bfeee571607efa7dfa624d65.tar.xz
42-cub3d-0bd2099bd02bf207bfeee571607efa7dfa624d65.tar.zst
42-cub3d-0bd2099bd02bf207bfeee571607efa7dfa624d65.zip
Back to GCC for correction
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 059ac29..730d8d5 100644
--- a/Makefile
+++ b/Makefile
@@ -159,10 +159,18 @@ endif
#==================================================================================================#
#------------------------------------------ Compiler ----------------------------------------------#
#==================================================================================================#
-DBG = -glldb
+ifeq (${OS}, Linux)
+ DBG = -ggdb
+else
+ DBG = -glldb
+endif
FSANITIZE = -fsanitize=address
#--------------------------------------------------------------------------------------------------#
-CC = clang
+ifeq (${OS}, Linux)
+ CC = gcc
+else
+ CC = clang
+endif
#--------------------------------------------------------------------------------------------------#
CFLAGS = -std=c89
CFLAGS += -Wall