aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-06 17:48:57 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-06 17:48:57 +0100
commit76e99a94fb4ec45d9490074849c26e09bdbfa493 (patch)
tree20ad37656f1a4c2e6530c203ac9166e8974ea38e /Makefile
parentBack to when it worked (diff)
download42-cub3d-76e99a94fb4ec45d9490074849c26e09bdbfa493.tar.gz
42-cub3d-76e99a94fb4ec45d9490074849c26e09bdbfa493.tar.bz2
42-cub3d-76e99a94fb4ec45d9490074849c26e09bdbfa493.tar.xz
42-cub3d-76e99a94fb4ec45d9490074849c26e09bdbfa493.tar.zst
42-cub3d-76e99a94fb4ec45d9490074849c26e09bdbfa493.zip
No pthread in Makefile
Diffstat (limited to '')
-rw-r--r--Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index cea6294..19212ab 100644
--- a/Makefile
+++ b/Makefile
@@ -131,9 +131,9 @@ endif
${OBJS_DIR}%.o: ${SRCS_DIR}%.c ${INCS_DIR}
@${MKDIR} ${OBJS_DIR}
ifeq (${OS}, Darwin)
- ${CC} -c -pthread ${CFLAGS} ${CDEFS} -I${LFT_DIR}${INCS_DIR} -I${MLX_DIR} -I${INCS_DIR} -o $@ $<
+ ${CC} -c ${CFLAGS} ${CDEFS} -I${LFT_DIR}${INCS_DIR} -I${MLX_DIR} -I${INCS_DIR} -o $@ $<
else
- ${CC} -c -pthread ${CFLAGS} ${CDEFS} -I${LFT_DIR}${INCS_DIR} -I${INCS_DIR} -o $@ $<
+ ${CC} -c ${CFLAGS} ${CDEFS} -I${LFT_DIR}${INCS_DIR} -I${INCS_DIR} -o $@ $<
endif
#--------------------------------------------------------------------------------------------------#
${NAME}: ${OBJS} ${LFT_SRCS} ${LFT_DIR}${INCS_DIR}libft.h
@@ -149,10 +149,10 @@ else
@$(MAKE) --no-print-directory -C ${LFT_DIR} all
endif
ifeq (${OS}, Darwin)
- ${CC} -pthread ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_DIR} -lft -lmlx -lm -lpthread \
+ ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_DIR} -lft -lmlx -lm \
-framework OpenGL -framework AppKit
else
- ${CC} -pthread ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -lX11 -lXext -lmlx -lm -lbsd -lpthread
+ ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -lX11 -lXext -lmlx -lm -lbsd
endif
#--------------------------------------------------------------------------------------------------#
all: ${NAME}