2023-04-13 09:00:39 -04:00
|
|
|
SRCS = parsing.c \
|
|
|
|
utils/ft_isnum.c \
|
2023-04-25 10:33:35 -04:00
|
|
|
utils/putchar.c \
|
|
|
|
utils/putnum.c \
|
|
|
|
utils/putstr.c \
|
2023-04-13 09:00:39 -04:00
|
|
|
utils/ft_atoi.c \
|
|
|
|
main.c \
|
|
|
|
time.c \
|
|
|
|
print.c \
|
|
|
|
data.c \
|
|
|
|
philo.c \
|
|
|
|
philos.c \
|
|
|
|
threads.c
|
|
|
|
|
|
|
|
OBJS = ${SRCS:.c=.o}
|
|
|
|
|
|
|
|
NAME = philo
|
|
|
|
|
|
|
|
CC = clang
|
|
|
|
|
2023-04-19 10:08:48 -04:00
|
|
|
FLAGS = -Wall -Wextra -Werror -g -pthread
|
2023-04-13 09:00:39 -04:00
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
${CC} ${FLAGS} -c -o $@ $<
|
|
|
|
|
|
|
|
${NAME}: ${OBJS}
|
2023-04-19 10:08:48 -04:00
|
|
|
${CC} ${FLAGS} ${OBJS} -o ${NAME}
|
2023-04-13 09:00:39 -04:00
|
|
|
|
|
|
|
all: ${NAME}
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${OBJS}
|
|
|
|
|
|
|
|
fclean: clean
|
|
|
|
rm -f ${NAME}
|
|
|
|
|
|
|
|
re: fclean
|
|
|
|
make all
|
|
|
|
|
|
|
|
.PHONY: all clean fclean re
|