|
|
@ -14,31 +14,34 @@ ifeq ($(UNAME_S), Darwin) |
|
|
|
LIB = -L ~/.brew/lib -lreadline -L ~/.brew/lib -lhistory -L. -lft |
|
|
|
endif |
|
|
|
|
|
|
|
all: $(NAME) |
|
|
|
|
|
|
|
$(VERBOSE).SILENT: |
|
|
|
|
|
|
|
$(NAME): $(LIBFT) $(OBJS) |
|
|
|
@echo "Making Minishell." |
|
|
|
@gcc -g ${OBJS} ${LIB} -o ${NAME} |
|
|
|
@echo "Done." |
|
|
|
echo Making Minishell... |
|
|
|
gcc -g ${OBJS} ${LIB} -o ${NAME} |
|
|
|
echo ✅ |
|
|
|
|
|
|
|
$(LIBFT): |
|
|
|
@${MAKE} -C ./libft |
|
|
|
@cp ./libft/libft.a . |
|
|
|
${MAKE} -C ./libft |
|
|
|
cp ./libft/libft.a . |
|
|
|
|
|
|
|
all: $(NAME) |
|
|
|
|
|
|
|
%.o: %.c |
|
|
|
@gcc -Werror -Wextra -Wall -g -c $< ${READLINE_INC} |
|
|
|
gcc -Werror -Wextra -Wall -g -c $< ${READLINE_INC} |
|
|
|
|
|
|
|
clean: |
|
|
|
@echo "Cleaning objects." |
|
|
|
@rm -rf ${OBJS} |
|
|
|
@echo "Done." |
|
|
|
|
|
|
|
fclean: clean |
|
|
|
@${MAKE} -C ./libft fclean |
|
|
|
@rm -rf libft.a |
|
|
|
@echo "Cleaning binary." |
|
|
|
@rm -rf ${NAME} |
|
|
|
@echo "Done." |
|
|
|
echo Cleaning objects... |
|
|
|
rm -rf ${OBJS} |
|
|
|
echo ✅ |
|
|
|
|
|
|
|
fclean: clean |
|
|
|
${MAKE} -C ./libft fclean |
|
|
|
rm -rf libft.a |
|
|
|
echo Cleaning binary... |
|
|
|
rm -rf ${NAME} |
|
|
|
echo ✅ |
|
|
|
|
|
|
|
re: fclean all |
|
|
|
|
|
|
|