UTILS_SRC = utils/ft_is_in_quote.c utils/ft_strncpy.c utils/ft_strreplace.c utils/ft_strnchr.c utils/ft_getstr.c utils/ft_printn.c SRCS = ${UTILS_SRC} main.c file.c infile.c outfile.c heredoc.c syntatics.c ft_split_quoted.c env.c execution.c OBJS = ${SRCS:.c=.o} NAME = minishell CC = gcc CFLAGS = -Wall -Werror -Wextra -g LIBS = libftx/libftx.a %.o: %.c ${CC} ${CFLAGS} -c -o $@ $< all: ${NAME} ${NAME}: ${OBJS} make -C libftx all ${CC} ${OBJS} -o ${NAME} ${LIBS} -lreadline clean: make -C libftx clean rm -f ${OBJS} fclean: clean make -C libftx fclean rm -f ${NAME} re: fclean all .PHONY: all clean fclean re