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