aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 9db2ba1..9332243 100644
--- a/Makefile
+++ b/Makefile
@@ -144,14 +144,6 @@ endif
#--------------------------------------------------------------------------------------------------#
${NAME}: ${OBJS} ${LFT_SRCS} ${LFT_DIR}${INCS_DIR}libft.h
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
-endif
-#--------------------------------------------------------------------------------------------------#
-all:
-ifeq (${OS}, Darwin)
@$(MAKE) --no-print-directory -C ${MLX_DIR} all
endif
ifdef ASAN
@@ -162,7 +154,14 @@ ifdef POWER
else
@$(MAKE) --no-print-directory -C ${LFT_DIR} all
endif
- @$(MAKE) --no-print-directory ${NAME}
+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
+endif
+#--------------------------------------------------------------------------------------------------#
+all: ${NAME}
#--------------------------------------------------------------------------------------------------#
clean:
ifeq (${OS}, Darwin)