mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 04:30:52 +07:00
5b8fa822b7
pthread flag should not be -lpthread but -pthread using gcc. The -lpthread links the external multithread library. On the other hand, the -pthread manages both the gcc's preprocessor and linker to be able to compile with pthread. Signed-off-by: Yoshihiro YUNOMAE <yoshihiro.yunomae.ez@hitachi.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
14 lines
211 B
Makefile
14 lines
211 B
Makefile
CC = gcc
|
|
CFLAGS = -O2 -Wall -pthread
|
|
|
|
all: trace-agent
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $^ -o $@
|
|
|
|
trace-agent: trace-agent.o trace-agent-ctl.o trace-agent-rw.o
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
clean:
|
|
rm -f *.o trace-agent
|