Makefile 451 B

123456789101112131415161718192021222324
  1. # SPDX-License-Identifier: GPL-2.0
  2. obj-m :=
  3. KDIR := /lib/modules/$(shell uname -r)/build
  4. KMISC := /lib/modules/$(shell uname -r)/cpufrequtils/
  5. ifeq ("$(CONFIG_X86_TSC)", "y")
  6. obj-m += cpufreq-test_tsc.o
  7. endif
  8. default:
  9. $(MAKE) -C $(KDIR) M=$(CURDIR)
  10. clean:
  11. - rm -rf *.o *.ko .*.cmd .*.mod.* *.mod.c
  12. - rm -rf Module.symvers modules.order
  13. install: default
  14. install -d $(KMISC)
  15. install -m 644 -c *.ko $(KMISC)
  16. /sbin/depmod -a
  17. all: default