cpupowerutils - cpufrequtils extended with quite some features
[linux-2.6.git] / tools / power / cpupower / bench / Makefile
1 LIBS = -L../ -lm -lcpufreq
2
3 OBJS = main.o parse.o system.o benchmark.o
4 CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
5
6 ifeq ($(strip $(V)),false)
7         CC=@../build/ccdv gcc
8 else
9         CC=gcc
10 endif
11
12 cpufreq-bench: $(OBJS)
13         $(CC) -o $@ $(CFLAGS) $(OBJS) $(LIBS)
14
15 all: cpufreq-bench
16
17 install:
18         mkdir -p $(DESTDIR)/$(sbindir)
19         mkdir -p $(DESTDIR)/$(bindir)
20         mkdir -p $(DESTDIR)/$(docdir)
21         mkdir -p $(DESTDIR)/$(confdir)
22         install -m 755 cpufreq-bench $(DESTDIR)/$(sbindir)/cpufreq-bench
23         install -m 755 cpufreq-bench_plot.sh $(DESTDIR)/$(bindir)/cpufreq-bench_plot.sh
24         install -m 644 README-BENCH $(DESTDIR)/$(docdir)/README-BENCH
25         install -m 755 cpufreq-bench_script.sh $(DESTDIR)/$(docdir)/cpufreq-bench_script.sh
26         install -m 644 example.cfg $(DESTDIR)/$(confdir)/cpufreq-bench.conf
27
28 clean:
29         rm -f *.o
30         rm -f cpufreq-bench