aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 19:50:46 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-13 19:50:46 +0100
commitc58517b56574ad6e32d88ebab5bcbfa2da543808 (patch)
tree84371cd4ac3f5c6e571138e5c8714116919d3181 /Makefile
parentGotta figure out (diff)
download42-cub3d-c58517b56574ad6e32d88ebab5bcbfa2da543808.tar.gz
42-cub3d-c58517b56574ad6e32d88ebab5bcbfa2da543808.tar.bz2
42-cub3d-c58517b56574ad6e32d88ebab5bcbfa2da543808.tar.xz
42-cub3d-c58517b56574ad6e32d88ebab5bcbfa2da543808.tar.zst
42-cub3d-c58517b56574ad6e32d88ebab5bcbfa2da543808.zip
I actually need to thread
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7c24e8b..e27b411 100644
--- a/Makefile
+++ b/Makefile
@@ -127,6 +127,7 @@ CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Werror
CFLAGS += -pedantic
+CFLAGS += -pthread
#--------------------------------------------------------------------------------------------------#
ifdef ASAN
CFLAGS += ${DEBUG}
@@ -163,10 +164,10 @@ else
@$(MAKE) --no-print-directory -C ${LFT_DIR} all
endif
ifeq (${OS}, Darwin)
- ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_DIR} -lft -lmlx -lm \
+ ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_DIR} -lft -lmlx -lm -lpthread \
-framework OpenGL -framework AppKit
else
- ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -lX11 -lXext -lmlx -lm -lbsd
+ ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -lX11 -lXext -lmlx -lm -lbsd -lpthread
endif
#--------------------------------------------------------------------------------------------------#
all: ${NAME}