42_minishell/Makefile
Etienne Rey-bethbeder 13d412ea71 Push sur ta branche
2023-02-02 17:40:09 +01:00

35 lines
520 B
Makefile

UTILS_SRC = utils/ft_is_in_quote.c utils/ft_strncpy.c utils/ft_strreplace.c utils/ft_strnchr.c utils/ft_getstr.c
SRCS = env.c ${UTILS_SRC}
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 all
${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