1 --- tools/power/x86/turbostat/Makefile.orig
2 +++ tools/power/x86/turbostat/Makefile
6 turbostat : turbostat.c
8 -CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
9 -CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
10 +override CFLAGS += -Wall
11 +override CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
12 +override CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
15 @mkdir -p $(BUILD_OUTPUT)
16 - $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@
17 + $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS)