aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-09 00:03:59 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-09 00:03:59 +0100
commitf9bbbc0211caaaf835fbaceb78f5b8d3417dfb44 (patch)
treeeee8b9d4b5c570830c5c313d89569a1e6782e709 /Makefile
parentMore consitant music (diff)
download42-cub3d-f9bbbc0211caaaf835fbaceb78f5b8d3417dfb44.tar.gz
42-cub3d-f9bbbc0211caaaf835fbaceb78f5b8d3417dfb44.tar.bz2
42-cub3d-f9bbbc0211caaaf835fbaceb78f5b8d3417dfb44.tar.xz
42-cub3d-f9bbbc0211caaaf835fbaceb78f5b8d3417dfb44.tar.zst
42-cub3d-f9bbbc0211caaaf835fbaceb78f5b8d3417dfb44.zip
The smartest Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 59de80d..7f06fa7 100644
--- a/Makefile
+++ b/Makefile
@@ -98,10 +98,18 @@ endif
#==================================================================================================#
#------------------------------------------ Compiler ----------------------------------------------#
#==================================================================================================#
-DEBUG = -glldb
+ifeq (${OS}, Darwin)
+ DEBUG = -glldb
+else
+ DEBUG = -ggdb
+endif
FSANITIZE = -fsanitize=address
#--------------------------------------------------------------------------------------------------#
-CC = clang
+ifeq (${OS}, Darwin)
+ CC = clang
+else
+ CC = gcc
+endif
#--------------------------------------------------------------------------------------------------#
CFLAGS = -std=c89
CFLAGS += -Wall