sh_eth: fix EESIPR values for SH77{34|63}
[linux/fpc-iii.git] / tools / power / cpupower / bench / Makefile
blob3e59f1aa3947ecfb954f767d4dd06cb54450b1de
1 OUTPUT := ./
2 ifeq ("$(origin O)", "command line")
3 ifneq ($(O),)
4 OUTPUT := $(O)/
5 endif
6 endif
8 ifeq ($(strip $(STATIC)),true)
9 LIBS = -L../ -L$(OUTPUT) -lm
10 OBJS = $(OUTPUT)main.o $(OUTPUT)parse.o $(OUTPUT)system.o $(OUTPUT)benchmark.o \
11 $(OUTPUT)../lib/cpufreq.o $(OUTPUT)../lib/sysfs.o
12 else
13 LIBS = -L../ -L$(OUTPUT) -lm -lcpupower
14 OBJS = $(OUTPUT)main.o $(OUTPUT)parse.o $(OUTPUT)system.o $(OUTPUT)benchmark.o
15 endif
17 CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
19 $(OUTPUT)%.o : %.c
20 $(ECHO) " CC " $@
21 $(QUIET) $(CC) -c $(CFLAGS) $< -o $@
23 $(OUTPUT)cpufreq-bench: $(OBJS)
24 $(ECHO) " CC " $@
25 $(QUIET) $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
27 all: $(OUTPUT)cpufreq-bench
29 install:
30 mkdir -p $(DESTDIR)/$(sbindir)
31 mkdir -p $(DESTDIR)/$(bindir)
32 mkdir -p $(DESTDIR)/$(docdir)
33 mkdir -p $(DESTDIR)/$(confdir)
34 install -m 755 $(OUTPUT)cpufreq-bench $(DESTDIR)/$(sbindir)/cpufreq-bench
35 install -m 755 cpufreq-bench_plot.sh $(DESTDIR)/$(bindir)/cpufreq-bench_plot.sh
36 install -m 644 README-BENCH $(DESTDIR)/$(docdir)/README-BENCH
37 install -m 755 cpufreq-bench_script.sh $(DESTDIR)/$(docdir)/cpufreq-bench_script.sh
38 install -m 644 example.cfg $(DESTDIR)/$(confdir)/cpufreq-bench.conf
40 clean:
41 rm -f $(OUTPUT)*.o
42 rm -f $(OUTPUT)cpufreq-bench