42_minishell/Makefile

29 lines
294 B
Makefile
Raw Normal View History

2023-01-31 08:40:15 -05:00
SRCS = main.c
OBJS = ${SRCS:.c=.o}
NAME = minishell
CC = clang
CFLAGS = -Wall -Werror -Wextra
%.o: %.c
${CC} ${CFLAGS} -c -o $@ $<
all: ${NAME}
${NAME}: ${OBJS}
${CC} ${OBJS} -o ${NAME}
clean:
rm -f ${OBJS}
fclean: clean
rm -f ${NAME}
re: fclean all
.PHONY: all clean fclean re