aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 23:27:54 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 23:27:54 +0100
commit59ea94739fe5205f29e75ceff97156607868e3d0 (patch)
treeb7fe09f1a94b110e6fba4bcffc20bf2c921c8400 /Makefile
parentTweaked shadows (diff)
download42-cub3d-59ea94739fe5205f29e75ceff97156607868e3d0.tar.gz
42-cub3d-59ea94739fe5205f29e75ceff97156607868e3d0.tar.bz2
42-cub3d-59ea94739fe5205f29e75ceff97156607868e3d0.tar.xz
42-cub3d-59ea94739fe5205f29e75ceff97156607868e3d0.tar.zst
42-cub3d-59ea94739fe5205f29e75ceff97156607868e3d0.zip
Looks like I have to pthread this shit
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a7ff053..05f9828 100644
--- a/Makefile
+++ b/Makefile
@@ -128,6 +128,7 @@ CFLAGS += -Wall
CFLAGS += -Wextra
CFLAGS += -Werror
CFLAGS += -pedantic
+CFLAGS += -pthread
#--------------------------------------------------------------------------------------------------#
ifdef ASAN
CFLAGS += ${DEBUG}
@@ -164,10 +165,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}