fix: add pthread flag to compile and link
This commit is contained in:
parent
7e77316d53
commit
1461285dbf
4
Makefile
4
Makefile
@ -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}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user