SRCS = env.c OBJS = ${SRCS:.c=.o} NAME = minishell CC = clang CFLAGS = -g -Wall -Werror -Wextra LIBS = libftx/libftx.a %.o: %.c ${CC} ${CFLAGS} -c -o $@ $< all: ${NAME} ${NAME}: ${OBJS} make -C libftx ${CC} ${OBJS} -o ${NAME} ${LIBS} 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