fix: add pthread flag to compile and link

This commit is contained in:
Camille Chauvet 2023-04-19 14:08:48 +00:00
parent 7e77316d53
commit 1461285dbf

View File

@ -15,13 +15,13 @@ NAME = philo
CC = clang CC = clang
FLAGS = -Wall -Wextra -Werror -g FLAGS = -Wall -Wextra -Werror -g -pthread
%.o: %.c %.o: %.c
${CC} ${FLAGS} -c -o $@ $< ${CC} ${FLAGS} -c -o $@ $<
${NAME}: ${OBJS} ${NAME}: ${OBJS}
${CC} ${OBJS} -o ${NAME} ${CC} ${FLAGS} ${OBJS} -o ${NAME}
all: ${NAME} all: ${NAME}