From 3051df7c3e57d5645a78d87fa63ff1144fd8699a Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 30 Oct 2019 17:05:31 +0100 Subject: exit function works --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 46fce04..fea1e29 100644 --- a/Makefile +++ b/Makefile @@ -23,7 +23,7 @@ SRCS = \ OBJS_DIR = obj/ OBJS = $(patsubst ${SRCS_DIR}%.c,${OBJS_DIR}%.o,${SRCS}) -INCS_DIR = -Iinc/ -Ilibft/ +INCS_DIR = -Iinc/ -Ilibft/inc/ LIB_DIR = -Llibft/ LIB = -lft @@ -40,7 +40,7 @@ RM = rm -rf MKDIR = mkdir -p -${OBJS_DIR}%.o: ${SRCS_DIR}%.c inc/minishell.h libft/libft.h +${OBJS_DIR}%.o: ${SRCS_DIR}%.c inc/minishell.h libft/inc/libft.h @${MKDIR} ${OBJS_DIR} ${CC} ${CFLAGS} ${DEBUG} ${INCS_DIR} -o $@ -c $< @@ -52,10 +52,12 @@ all: ${NAME} clean: ${RM} ${OBJS} ${B_OBJS} -fclean: clean +xclean: ${RM} ${NAME} ${RM} ${NAME}.dSYM +fclean: clean xclean + re: fclean all build: ${OBJS} @@ -63,4 +65,4 @@ build: ${OBJS} default: all -.PHONY: all clean clean fclean re bonus run +.PHONY: all clean clean fclean re -- cgit v1.2.3