diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 16:48:19 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 16:48:19 +0200 |
commit | 86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe (patch) | |
tree | e9c89ec16372d95bf10e96e6707d2258b0ea1b68 /Makefile | |
parent | Update (diff) | |
download | 42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.tar.gz 42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.tar.bz2 42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.tar.xz 42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.tar.zst 42-minishell-86382acdb6cc8a94f98f4d8fe8d60f24b13fdebe.zip |
Good
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |