summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index de7c82c..5be0b78 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ LFT_SRCS_DIR = ${LFT_DIR}src/
#--------------------------------- FILES --------------------------------------#
#==============================================================================#
SRCS_NAME = minishell.c
+SRCS_NAME += ft_m_prompt.c
SRCS_NAME += ft_s_init.c
SRCS_NAME += ft_s_destroy.c
#------------------------------------------------------------------------------#
@@ -22,6 +23,7 @@ SRCS = $(addprefix ${SRCS_DIR}, ${SRCS_NAME})
#------------------------------------------------------------------------------#
INCS_NAME = ft_s_struct.h
INCS_NAME += ft_d_enum.h
+INCS_NAME += ft_d_define.h
INCS_NAME += $(patsubst %.c,%.h,${SRCS_NAME})
#------------------------------------------------------------------------------#
INCS = $(addprefix ${SRCS_DIR}, ${INCS_NAME})
@@ -59,7 +61,7 @@ LFTRULE = all
#------------------------------------------------------------------------------#
${OBJS_DIR}%.o: ${SRCS_DIR}%.c ${INCS}
@${MKDIR} ${OBJS_DIR}
- ${CC} -c ${CFLAGS} ${CDEFS} -I${SRCS_DIR} -I${LFT_INCS_DIR} -o $@ $<
+ ${CC} -c ${CFLAGS} ${CDEFS} -I${LFT_INCS_DIR} -o $@ $<
#------------------------------------------------------------------------------#
$(NAME): ${OBJS} ${LFT_SRCS} ${LFT_INCS_DIR}libft.h
@$(MAKE) --no-print-directory -C ${LFT_DIR} ${LFTRULE}
@@ -80,10 +82,10 @@ clean:
@$(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} ${NAME}.dSYM/ ${HISTFILE}
+ ${RM} ${NAME} ${NAME}.core ${NAME}.dSYM/ ${HISTFILE}
#------------------------------------------------------------------------------#
-re: fclean all
+re: fclean all
#------------------------------------------------------------------------------#
.PHONY: all clean clean fclean re debug asan