mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
tools power turbostat: Override CFLAGS assignments and add LDFLAGS to build command
So that the user can specify outside CFLAGS/LDFLAGS values. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Herton Krzesinski <herton@redhat.com> Cc: Len Brown <len.brown@intel.com> Link: http://lkml.kernel.org/r/20181212102537.25902-5-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
ad6b474f44
commit
6b7f98a37a
1 changed files with 4 additions and 4 deletions
|
@ -9,13 +9,13 @@ ifeq ("$(origin O)", "command line")
|
||||||
endif
|
endif
|
||||||
|
|
||||||
turbostat : turbostat.c
|
turbostat : turbostat.c
|
||||||
CFLAGS += -Wall
|
override CFLAGS += -Wall
|
||||||
CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
|
override CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
|
||||||
CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
|
override CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
|
||||||
|
|
||||||
%: %.c
|
%: %.c
|
||||||
@mkdir -p $(BUILD_OUTPUT)
|
@mkdir -p $(BUILD_OUTPUT)
|
||||||
$(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@
|
$(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@ $(LDFLAGS)
|
||||||
|
|
||||||
.PHONY : clean
|
.PHONY : clean
|
||||||
clean :
|
clean :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue