# Comment/uncomment the following line to disable/enable debugging
# CIF_DEBUG = y

obj-m := cif.o
cif-objs := cif_main.o cif_irq.o cif_dev.o cif_ioctl.o

KDIR   := /lib/modules/$(shell uname -r)/build
PWD    := $(shell pwd)

default:
	$(MAKE) KBUILD_VERBOSE=1 -C $(KDIR) SUBDIRS=$(PWD) modules

clean:
	rm -f *.o *.ko cif.mod.c
	rm -f .cif*.cmd
	rm -rf .tmp_versions
