aboutsummaryrefslogtreecommitdiffstats
path: root/libft
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 17:04:05 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-14 17:04:05 +0200
commit84ac504edbe27a56018b77fd93f289b90b1d8bdc (patch)
tree17e4484db8a227c17cd9fe469ae661714f3e36e7 /libft
parentBad boys do not eat walls anymore (diff)
download42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.tar.gz
42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.tar.bz2
42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.tar.xz
42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.tar.zst
42-cub3d-84ac504edbe27a56018b77fd93f289b90b1d8bdc.zip
Fixed bad boys collision, reroll if hit a wall
Diffstat (limited to 'libft')
-rw-r--r--libft/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/libft/Makefile b/libft/Makefile
index 8ad24a7..2bd6342 100644
--- a/libft/Makefile
+++ b/libft/Makefile
@@ -118,10 +118,18 @@ OS = $(shell uname)
#==============================================================================#
#-------------------------------- 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