mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 06:46:39 +07:00
4c22337f86
[linux@dominikbrodowski.net: fix .gitignore] Signed-off-by: Thomas Renninger <trenn@suse.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
30 lines
892 B
Makefile
30 lines
892 B
Makefile
LIBS = -L../ -lm -lcpupower
|
|
|
|
OBJS = main.o parse.o system.o benchmark.o
|
|
CFLAGS += -D_GNU_SOURCE -I../lib -DDEFAULT_CONFIG_FILE=\"$(confdir)/cpufreq-bench.conf\"
|
|
|
|
%.o : %.c
|
|
$(ECHO) " CC " $@
|
|
$(QUIET) $(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
cpufreq-bench: $(OBJS)
|
|
$(ECHO) " CC " $@
|
|
$(QUIET) $(CC) -o $@ $(CFLAGS) $(OBJS) $(LIBS)
|
|
|
|
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
|