42 school project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
418 B

3 years ago
NAME = philosophers
3 years ago
SRCS = philo_threads.c philo_launcher.c
3 years ago
OBJS = ${SRCS:.c=.o}
3 years ago
CC = clang
CFLAGS = -Werror -Wextra -Wall -g -D_REENTRANT
3 years ago
RM = rm -rf
.c.o:
$(CC) $(CFLAGS) -c $< -o $(<:.c=.o)
all: $(NAME)
$(NAME): $(OBJS)
3 years ago
${CC} ${CFLAGS} -g -fsanitize=thread -lpthread ${OBJS} -o ${NAME}
3 years ago
clean:
${RM} ${OBJS}
fclean: clean
${RM} ${NAME}
re: fclean all
.PHONY: all clean fclean re