42_Philosopher/Makefile
Camille Chauvet 796e186c36 clean: norm
2023-04-27 12:05:14 +00:00

43 lines
561 B
Makefile

SRCS = parsing.c \
utils/ft_isnum.c \
utils/putchar.c \
utils/putnum.c \
utils/putstr.c \
utils/ft_atoi.c \
main.c \
time.c \
print.c \
print2.c \
data.c \
philo.c \
philo_routine.c \
philos.c \
threads.c
OBJS = ${SRCS:.c=.o}
NAME = philo
CC = clang
FLAGS = -Wall -Wextra -Werror -g -pthread
%.o: %.c
${CC} ${FLAGS} -c -o $@ $<
${NAME}: ${OBJS}
${CC} ${FLAGS} ${OBJS} -o ${NAME}
all: ${NAME}
clean:
rm -f ${OBJS}
fclean: clean
rm -f ${NAME}
re: fclean
make all
.PHONY: all clean fclean re