aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-02 16:09:57 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-02 16:09:57 +0100
commit48ccff3d712a2b30de8b94a5688afae7ee91a1c6 (patch)
treeb21d77ba9be46b0ad4f5341487359cd2befa6e58 /Makefile
parentMusic is bav but can't kill (diff)
download42-cub3d-48ccff3d712a2b30de8b94a5688afae7ee91a1c6.tar.gz
42-cub3d-48ccff3d712a2b30de8b94a5688afae7ee91a1c6.tar.bz2
42-cub3d-48ccff3d712a2b30de8b94a5688afae7ee91a1c6.tar.xz
42-cub3d-48ccff3d712a2b30de8b94a5688afae7ee91a1c6.tar.zst
42-cub3d-48ccff3d712a2b30de8b94a5688afae7ee91a1c6.zip
YES
Diffstat (limited to '')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bc9c5fb..8f1b21c 100644
--- a/Makefile
+++ b/Makefile
@@ -128,7 +128,7 @@ ${OBJS_DIR}%.o: ${SRCS_DIR}%.c ${INCS_DIR}
ifeq (${OS}, Darwin)
${CC} -c ${CFLAGS} ${CDEFS} -I${LFT_DIR}${INCS_DIR} -I${MLX_DIR} -I${INCS_DIR} -o $@ $<
else
- ${CC} -c ${CFLAGS} ${CDEFS} -I${LFT_DIR}${INCS_DIR} -I${INCS_DIR} -o $@ $<
+ ${CC} -c -pthread ${CFLAGS} ${CDEFS} -I${LFT_DIR}${INCS_DIR} -I${INCS_DIR} -o $@ $<
endif
#--------------------------------------------------------------------------------------------------#
${NAME}: ${OBJS} ${LFT_SRCS} ${LFT_DIR}${INCS_DIR}libft.h
@@ -147,7 +147,7 @@ ifeq (${OS}, Darwin)
${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_DIR} -lft -lmlx -lm -framework OpenGL \
-framework AppKit
else
- ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -lX11 -lXext -lmlx -lm -lbsd -pthread
+ ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -lX11 -lXext -lmlx -lm -lbsd -lpthread
endif
#--------------------------------------------------------------------------------------------------#
all: ${NAME}