1 LIBS = -L../ -lm -lcpufreq
3 OBJS = main.o parse.o system.o benchmark.o
4 CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
6 ifeq ($(strip $(V)),false)
12 cpufreq-bench: $(OBJS)
13 $(CC) -o $@ $(CFLAGS) $(OBJS) $(LIBS)
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