sh_eth: fix EESIPR values for SH77{34|63}
[linux/fpc-iii.git] / tools / power / x86 / turbostat / Makefile
blob8792ad8dbf837064adb180afa34ae0e275bdc6e5
1 CC = $(CROSS_COMPILE)gcc
2 BUILD_OUTPUT := $(CURDIR)
3 PREFIX ?= /usr
4 DESTDIR ?=
6 ifeq ("$(origin O)", "command line")
7 BUILD_OUTPUT := $(O)
8 endif
10 turbostat : turbostat.c
11 CFLAGS += -Wall
12 CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
13 CFLAGS += -DINTEL_FAMILY_HEADER='"../../../../arch/x86/include/asm/intel-family.h"'
15 %: %.c
16 @mkdir -p $(BUILD_OUTPUT)
17 $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@
19 .PHONY : clean
20 clean :
21 @rm -f $(BUILD_OUTPUT)/turbostat
23 install : turbostat
24 install -d $(DESTDIR)$(PREFIX)/bin
25 install $(BUILD_OUTPUT)/turbostat $(DESTDIR)$(PREFIX)/bin/turbostat
26 install -d $(DESTDIR)$(PREFIX)/share/man/man8
27 install turbostat.8 $(DESTDIR)$(PREFIX)/share/man/man8