1 LIBS
= -L..
/ -lm
-lcpupower
3 OBJS
= main.o parse.o system.o benchmark.o
4 CFLAGS
+= -D_GNU_SOURCE
-I..
/lib
-DDEFAULT_CONFIG_FILE
=\"$(confdir
)/cpufreq-bench.conf
\"
8 $(QUIET
) $(CC
) -c
$(CFLAGS
) $< -o
$@
10 cpufreq-bench
: $(OBJS
)
12 $(QUIET
) $(CC
) -o
$@
$(CFLAGS
) $(OBJS
) $(LIBS
)
17 mkdir
-p
$(DESTDIR
)/$(sbindir
)
18 mkdir
-p
$(DESTDIR
)/$(bindir)
19 mkdir
-p
$(DESTDIR
)/$(docdir
)
20 mkdir
-p
$(DESTDIR
)/$(confdir
)
21 install -m
755 cpufreq-bench
$(DESTDIR
)/$(sbindir
)/cpufreq-bench
22 install -m
755 cpufreq-bench_plot.sh
$(DESTDIR
)/$(bindir)/cpufreq-bench_plot.sh
23 install -m
644 README-BENCH
$(DESTDIR
)/$(docdir
)/README-BENCH
24 install -m
755 cpufreq-bench_script.sh
$(DESTDIR
)/$(docdir
)/cpufreq-bench_script.sh
25 install -m
644 example.cfg
$(DESTDIR
)/$(confdir
)/cpufreq-bench.conf