# 2012-09-06 10:45
# Based on Agner Fog's Makefile for MSRdrv.

KERNELDIR := /lib/modules/`uname -r`/build
obj-m := benchmark.o

# V=1 causes the commands to be printed.
default:
	$(MAKE) -C $(KERNELDIR) M=`pwd` V=1 modules

load:
	insmod benchmark.ko

unload:
	rmmod benchmark

clean:
	rm -rf .tmp_versions
	rm -f .benchmark.* benchmark.ko benchmark.o benchmark.mod.* Module.symvers modules.order
