42_minishell/Makefile
2023-01-31 15:02:23 +01:00

33 lines
371 B
Makefile

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