# Builds the two out-of-tree modules. KVER lets DKMS build for a kernel
# other than the running one - dkms.conf passes KVER=$kernelver.
KVER ?= $(shell uname -r)
KDIR := /lib/modules/$(KVER)/build
PWD  := $(shell pwd)

obj-m += smcdump.o gpumon.o

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules

clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean

.PHONY: all clean
