aboutsummaryrefslogtreecommitdiffstats
path: root/libft/Makefile
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-03-09 23:08:39 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-03-09 23:08:39 +0100
commita4eae07949127cbdfa9030ad086c1d0edfa8e1f5 (patch)
tree419651274887318990adb6e434d5f5bcfb835340 /libft/Makefile
parentgang_2 (diff)
parentMap update (diff)
download42-cub3d-a4eae07949127cbdfa9030ad086c1d0edfa8e1f5.tar.gz
42-cub3d-a4eae07949127cbdfa9030ad086c1d0edfa8e1f5.tar.bz2
42-cub3d-a4eae07949127cbdfa9030ad086c1d0edfa8e1f5.tar.xz
42-cub3d-a4eae07949127cbdfa9030ad086c1d0edfa8e1f5.tar.zst
42-cub3d-a4eae07949127cbdfa9030ad086c1d0edfa8e1f5.zip
Merge branch 'skybox'
Diffstat (limited to 'libft/Makefile')
-rw-r--r--libft/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/libft/Makefile b/libft/Makefile
index d2053ee..1f93f13 100644
--- a/libft/Makefile
+++ b/libft/Makefile
@@ -119,10 +119,18 @@ USER = $(shell w | grep tty7 | awk '{print $$1}')
#==============================================================================#
#-------------------------------- 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