ifeq ($(HAVE_VM_FLAGS_SET),y) ccflags-y += -DHAVE_VM_FLAGS_SET endif obj-m += jfjoch.o cflags-m=-std=c99 jfjoch-y := jfjoch_drv.o jfjoch_ioctl.o jfjoch_memory.o jfjoch_pcie_setup.o jfjoch_function.o jfjoch_miscdev.o jfjoch_sysfs.o jfjoch_int.o jfjoch_i2c.o jfjoch_cmac.o # Kernel to build against. DKMS builds for a kernel that need not be the running # one and passes its build directory in, so this has to stay overridable. KVER ?= $(shell uname -r) KDIR ?= /lib/modules/$(KVER)/build all: $(MAKE) -C $(KDIR) M=$(CURDIR) modules install: $(MAKE) -C $(KDIR) M=$(CURDIR) modules_install clean: $(MAKE) -C $(KDIR) M=$(CURDIR) clean