aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-15 16:54:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-15 16:54:12 +0200
commiteff45a482b40ddb5857adce9f6740282b04ab4a2 (patch)
tree213399609d267cbb1b376161e0297d6ee709ab8f /Makefile
parentNow BSD compliant (diff)
download42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.gz
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.bz2
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.xz
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.tar.zst
42-cub3d-eff45a482b40ddb5857adce9f6740282b04ab4a2.zip
Pretty compliant but mutex problems
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c024768..2a22f24 100644
--- a/Makefile
+++ b/Makefile
@@ -178,6 +178,7 @@ CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Werror
CFLAGS += -pedantic
+CFLAGS += -pthread
#--------------------------------------------------------------------------------------------------#
ifdef DEBUG
CFLAGS += ${DBG}
@@ -192,8 +193,10 @@ CDEFS = -D_DEFAULT_SOURCE
CDEFS += -DFT_SCR_SIZE=\"${SCR_SZE}\"
ifeq (${OS}, Darwin)
CDEFS += -DFT_OS=1
-else
+else ifeq (${OS}, Linux)
CDEFS += -DFT_OS=2
+else
+ CDEFS += -DFT_OS=3
endif
#--------------------------------------------------------------------------------------------------#
NAME = Cub3D
@@ -257,6 +260,7 @@ ifeq (${OS}, FreeBSD)
endif
${RM} ${NAME}
${RM} ${NAME}.dSYM
+ ${RM} ${NAME}.core
#--------------------------------------------------------------------------------------------------#
re: fclean all
#--------------------------------------------------------------------------------------------------#