diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -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) |