aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 38fbeca..4ff78cc 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,8 @@ MLX_DIR = libmlx/
INCS = cub3d.h
#------------------------------------------------------------------------------#
SRCS_NAME = main.c
+SRCS_NAME += ft_init_lists.c
+# SRCS_NAME += ft_parse_map.c
#------------------------------------------------------------------------------#
SRCS = $(addprefix ${SRCS_DIR},${SRCS_NAME})
#------------------------------------------------------------------------------#
@@ -49,11 +51,11 @@ RM = rm -rf
#==============================================================================#
${OBJS_DIR}%.o: ${SRCS_DIR}%.c ${INCS_DIR}${INCS}
@${MKDIR} ${OBJS_DIR}
- ${CC} -c ${CFLAGS} -I${LFT_DIR}${INCS_DIR} -I${MLX_DIR} \
--I${INCS_DIR} -o $@ $<
+ ${CC} -c ${CFLAGS} -I${LFT_DIR}${INCS_DIR} -I${MLX_DIR} -I${INCS_DIR} \
+-o $@ $<
#------------------------------------------------------------------------------#
${NAME}: ${OBJS}
- ${CC} ${CFLAGS} -o $@ $< -L${LFT_DIR} -L${MLX_DIR} -lft -lmlx -lm \
+ ${CC} ${CFLAGS} -o $@ ${OBJS} -L${LFT_DIR} -L${MLX_DIR} -lft -lmlx -lm \
-framework OpenGL -framework AppKit
#------------------------------------------------------------------------------#
all: