NAME = philo SRCS = philo.c philo_utils.c OBJS = ${SRCS:.c=.o} CC = clang CFLAGS = -Werror -Wextra -Wall -D_REENTRANT RM = rm -rf %.o : %.c $(CC) $(CFLAGS) -c $< -o $(<:.c=.o) all : $(NAME) $(NAME) : $(OBJS) $(CC) $(CFLAGS) -lpthread $(OBJS) -o $(NAME) clean : $(RM) $(OBJS) fclean : clean $(RM) $(NAME) re : fclean all .PHONY : all clean fclean re