.. | .. |
---|
9 | 9 | endif |
---|
10 | 10 | |
---|
11 | 11 | turbostat : turbostat.c |
---|
12 | | -CFLAGS += -Wall -I../../../include |
---|
13 | | -CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"' |
---|
14 | | -CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"' |
---|
| 12 | +override CFLAGS += -O2 -Wall -I../../../include |
---|
| 13 | +override CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"' |
---|
| 14 | +override CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"' |
---|
| 15 | +override CFLAGS += -D_FILE_OFFSET_BITS=64 |
---|
| 16 | +override CFLAGS += -D_FORTIFY_SOURCE=2 |
---|
15 | 17 | |
---|
16 | 18 | %: %.c |
---|
17 | 19 | @mkdir -p $(BUILD_OUTPUT) |
---|
18 | | - $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ |
---|
| 20 | + $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS) -lcap -lrt |
---|
19 | 21 | |
---|
20 | 22 | .PHONY : clean |
---|
21 | 23 | clean : |
---|