ARM: mvebu: update Ethernet compatible string for Armada XP
[linux/fpc-iii.git] / tools / power / cpupower / bench / Makefile
blob7ec7021a29cd8d37a9abf4ecc08c396d50368501
1 OUTPUT := ./
2 ifeq ("$(origin O)", "command line")
3 ifneq ($(O),)
4 OUTPUT := $(O)/
5 endif
6 endif
8 LIBS = -L../ -L$(OUTPUT) -lm -lcpupower
10 OBJS = $(OUTPUT)main.o $(OUTPUT)parse.o $(OUTPUT)system.o $(OUTPUT)benchmark.o
11 CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
13 $(OUTPUT)%.o : %.c
14 $(ECHO) " CC " $@
15 $(QUIET) $(CC) -c $(CFLAGS) $< -o $@
17 $(OUTPUT)cpufreq-bench: $(OBJS)
18 $(ECHO) " CC " $@
19 $(QUIET) $(CC) -o $@ $(CFLAGS) $(OBJS) $(LIBS)
21 all: $(OUTPUT)cpufreq-bench
23 install:
24 mkdir -p $(DESTDIR)/$(sbindir)
25 mkdir -p $(DESTDIR)/$(bindir)
26 mkdir -p $(DESTDIR)/$(docdir)
27 mkdir -p $(DESTDIR)/$(confdir)
28 install -m 755 $(OUTPUT)cpufreq-bench $(DESTDIR)/$(sbindir)/cpufreq-bench
29 install -m 755 cpufreq-bench_plot.sh $(DESTDIR)/$(bindir)/cpufreq-bench_plot.sh
30 install -m 644 README-BENCH $(DESTDIR)/$(docdir)/README-BENCH
31 install -m 755 cpufreq-bench_script.sh $(DESTDIR)/$(docdir)/cpufreq-bench_script.sh
32 install -m 644 example.cfg $(DESTDIR)/$(confdir)/cpufreq-bench.conf
34 clean:
35 rm -f $(OUTPUT)*.o
36 rm -f $(OUTPUT)cpufreq-bench