aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 14:19:01 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 14:19:01 +0200
commit492793f711298d159546b3e118b172983bffb0d9 (patch)
tree319951004c648714941ac106a8be796e97fbcbf7 /Makefile
parentreverted Makefile (diff)
download42-cub3d-492793f711298d159546b3e118b172983bffb0d9.tar.gz
42-cub3d-492793f711298d159546b3e118b172983bffb0d9.tar.bz2
42-cub3d-492793f711298d159546b3e118b172983bffb0d9.tar.xz
42-cub3d-492793f711298d159546b3e118b172983bffb0d9.tar.zst
42-cub3d-492793f711298d159546b3e118b172983bffb0d9.zip
Makefile compliant with vm
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 2a22f24..8ccb29c 100644
--- a/Makefile
+++ b/Makefile
@@ -227,14 +227,11 @@ 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 -lpthread \
--framework OpenGL -framework AppKit
+ ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_DIR} -lft -lmlx -lm -lpthread -framework OpenGL -framework AppKit
else ifeq (${OS}, Linux)
- ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_GNU_DIR} \
--lft -lX11 -lXext -lmlx -lm -lbsd -lpthread
+ ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -L${MLX_GNU_DIR} -lmlx -L/usr/lib -lX11 -lXext -lm -lbsd -lpthread
else
- ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_BSD_DIR} -L/usr/local/lib \
--lft -lX11 -lXext -lmlx -lm -lpthread
+ ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_BSD_DIR} -L/usr/local/lib -lft -lX11 -lXext -lmlx -lm -lpthread
endif
#--------------------------------------------------------------------------------------------------#
all: ${NAME}