e367b1a85d70b3e0b7d82c5766d83a31ce006d2a
[deliverable/linux.git] / tools / power / x86 / turbostat / Makefile
1 CC = $(CROSS_COMPILE)gcc
2 BUILD_OUTPUT := $(CURDIR)
3 PREFIX := /usr
4 DESTDIR :=
5
6 ifeq ("$(origin O)", "command line")
7 BUILD_OUTPUT := $(O)
8 endif
9
10 turbostat : turbostat.c
11 CFLAGS += -Wall
12 CFLAGS += -DMSRHEADER='"../../../../arch/x86/include/asm/msr-index.h"'
13
14 %: %.c
15 @mkdir -p $(BUILD_OUTPUT)
16 $(CC) $(CFLAGS) $< -o $(BUILD_OUTPUT)/$@
17
18 .PHONY : clean
19 clean :
20 @rm -f $(BUILD_OUTPUT)/turbostat
21
22 install : turbostat
23 install -d $(DESTDIR)$(PREFIX)/bin
24 install $(BUILD_OUTPUT)/turbostat $(DESTDIR)$(PREFIX)/bin/turbostat
25 install -d $(DESTDIR)$(PREFIX)/share/man/man8
26 install turbostat.8 $(DESTDIR)$(PREFIX)/share/man/man8
This page took 0.030712 seconds and 4 git commands to generate.