aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 16:16:50 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 16:16:50 +0100
commit676cdc452bf3f54f0013400fcf6adce9c8990150 (patch)
tree0b9f7f5a368106e66fa0bda5ff0b4daca1db65f4 /Makefile
parentTrying to close (diff)
download42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.tar.gz
42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.tar.bz2
42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.tar.xz
42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.tar.zst
42-cub3d-676cdc452bf3f54f0013400fcf6adce9c8990150.zip
nice
Diffstat (limited to '')
-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: