1LIBS = -L../ -lm -lcpupower 2 3OBJS = main.o parse.o system.o benchmark.o 4CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\" 5 6%.o : %.c 7 $(ECHO) " CC " $@ 8 $(QUIET) $(CC) -c $(CFLAGS) $< -o $@ 9 10cpufreq-bench: $(OBJS) 11 $(ECHO) " CC " $@ 12 $(QUIET) $(CC) -o $@ $(CFLAGS) $(OBJS) $(LIBS) 13 14all: cpufreq-bench 15 16install: 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 26 27clean: 28 rm -f *.o 29 rm -f cpufreq-bench 30