2011-04-21 15:50:25 +00:00
|
|
|
LIBS = -L../ -lm -lcpupower
|
2011-03-30 14:30:11 +00:00
|
|
|
|
|
|
|
OBJS = main.o parse.o system.o benchmark.o
|
|
|
|
CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
|
|
|
|
|
2011-04-19 07:03:52 +00:00
|
|
|
%.o : %.c
|
|
|
|
$(ECHO) " CC " $@
|
|
|
|
$(QUIET) $(CC) -c $(CFLAGS) $< -o $@
|
2011-03-30 14:30:11 +00:00
|
|
|
|
|
|
|
cpufreq-bench: $(OBJS)
|
2011-04-19 07:03:52 +00:00
|
|
|
$(ECHO) " CC " $@
|
|
|
|
$(QUIET) $(CC) -o $@ $(CFLAGS) $(OBJS) $(LIBS)
|
2011-03-30 14:30:11 +00:00
|
|
|
|
|
|
|
all: cpufreq-bench
|
|
|
|
|
|
|
|
install:
|
|
|
|
mkdir -p $(DESTDIR)/$(sbindir)
|
|
|
|
mkdir -p $(DESTDIR)/$(bindir)
|
|
|
|
mkdir -p $(DESTDIR)/$(docdir)
|
|
|
|
mkdir -p $(DESTDIR)/$(confdir)
|
|
|
|
install -m 755 cpufreq-bench $(DESTDIR)/$(sbindir)/cpufreq-bench
|
|
|
|
install -m 755 cpufreq-bench_plot.sh $(DESTDIR)/$(bindir)/cpufreq-bench_plot.sh
|
|
|
|
install -m 644 README-BENCH $(DESTDIR)/$(docdir)/README-BENCH
|
|
|
|
install -m 755 cpufreq-bench_script.sh $(DESTDIR)/$(docdir)/cpufreq-bench_script.sh
|
|
|
|
install -m 644 example.cfg $(DESTDIR)/$(confdir)/cpufreq-bench.conf
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f cpufreq-bench
|