2023-01-31 08:40:15 -05:00
|
|
|
SRCS = main.c
|
|
|
|
|
|
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
|
|
|
|
NAME = minishell
|
|
|
|
|
|
|
|
CC = clang
|
|
|
|
|
|
|
|
CFLAGS = -Wall -Werror -Wextra
|
|
|
|
|
2023-01-31 09:02:23 -05:00
|
|
|
LIBS = libftx/libftx.a
|
|
|
|
|
2023-01-31 08:40:15 -05:00
|
|
|
%.o: %.c
|
|
|
|
${CC} ${CFLAGS} -c -o $@ $<
|
|
|
|
|
|
|
|
all: ${NAME}
|
|
|
|
|
|
|
|
${NAME}: ${OBJS}
|
2023-01-31 09:02:23 -05:00
|
|
|
${CC} ${OBJS} -o ${NAME} ${LIBS}
|
2023-01-31 08:40:15 -05:00
|
|
|
|
|
|
|
clean:
|
2023-01-31 09:02:23 -05:00
|
|
|
make -C libftx clean
|
2023-01-31 08:40:15 -05:00
|
|
|
rm -f ${OBJS}
|
|
|
|
|
|
|
|
fclean: clean
|
2023-01-31 09:02:23 -05:00
|
|
|
make -C libftx fclean
|
2023-01-31 08:40:15 -05:00
|
|
|
rm -f ${NAME}
|
|
|
|
|
|
|
|
re: fclean all
|
|
|
|
|
|
|
|
.PHONY: all clean fclean re
|
|
|
|
|