aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index e7b037a..3db5516 100644
--- a/Makefile
+++ b/Makefile
@@ -132,19 +132,16 @@ else
${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -lft -lX11 -lXext -lmlx -lm -lbsd
endif
#--------------------------------------------------------------------------------------------------#
-lft:
+all:
+ifeq (${OS}, Darwin)
+ @$(MAKE) --no-print-directory -C ${MLX_DIR} all
+endif
ifdef ASAN
@$(MAKE) --no-print-directory -C ${LFT_DIR} all ASAN=1
else
@$(MAKE) --no-print-directory -C ${LFT_DIR} all
endif
-#--------------------------------------------------------------------------------------------------#
-mlx:
-ifeq (${OS}, Darwin)
- @$(MAKE) --no-print-directory -C ${MLX_DIR} all
-endif
-#--------------------------------------------------------------------------------------------------#
-all: mlx lft ${NAME}
+ @$(MAKE) ${NAME}
#--------------------------------------------------------------------------------------------------#
clean:
ifeq (${OS}, Darwin)
@@ -153,14 +150,14 @@ endif
@$(MAKE) --no-print-directory -C ${LFT_DIR} clean
${RM} ${OBJS_DIR}
#--------------------------------------------------------------------------------------------------#
-fclean: clean
+fclean: clean
@$(MAKE) --no-print-directory -C ${LFT_DIR} fclean
${RM} ${NAME}
${RM} ${NAME}.dSYM
#--------------------------------------------------------------------------------------------------#
-re: fclean all
+re: fclean all
#--------------------------------------------------------------------------------------------------#
-run: all
+run: all
@./${NAME} "map/map_one.cub"
#--------------------------------------------------------------------------------------------------#
.PHONY: all clean clean fclean re run default