42_minishell/Makefile
Etienne Rey-bethbeder 1533fb8c65 0.1
2023-02-01 17:08:02 +01:00

34 lines
389 B
Makefile

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