aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-21 19:34:42 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-02-21 19:34:42 +0100
commitcc757d943744869bc7191bd8e1d2deb9174ac4db (patch)
tree3d063abd5dd898a5dabbe3d80c8614c99da8674e /Makefile
parentFreed leaks (diff)
download42-cub3d-cc757d943744869bc7191bd8e1d2deb9174ac4db.tar.gz
42-cub3d-cc757d943744869bc7191bd8e1d2deb9174ac4db.tar.bz2
42-cub3d-cc757d943744869bc7191bd8e1d2deb9174ac4db.tar.xz
42-cub3d-cc757d943744869bc7191bd8e1d2deb9174ac4db.tar.zst
42-cub3d-cc757d943744869bc7191bd8e1d2deb9174ac4db.zip
Makefile update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index d7bcdea..69fd854 100644
--- a/Makefile
+++ b/Makefile
@@ -130,16 +130,19 @@ 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
+lft:
ifdef ASAN
@$(MAKE) --no-print-directory -C ${LFT_DIR} all ASAN=1
else
@$(MAKE) --no-print-directory -C ${LFT_DIR} all
endif
- @$(MAKE) ${NAME}
+#--------------------------------------------------------------------------------------------------#
+mlx:
+ifeq (${OS}, Darwin)
+ @$(MAKE) --no-print-directory -C ${MLX_DIR} all
+endif
+#--------------------------------------------------------------------------------------------------#
+all: mlx lft ${NAME}
#--------------------------------------------------------------------------------------------------#
clean:
ifeq (${OS}, Darwin)