15 lines
284 B
Makefile
15 lines
284 B
Makefile
KERNELRELEASE ?= $(shell uname -r)
|
|
KERNEL_DIR ?= /lib/modules/$(KERNELRELEASE)/build
|
|
PWD := $(shell pwd)
|
|
|
|
obj-m := trelay.o
|
|
|
|
all:
|
|
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules
|
|
|
|
install:
|
|
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules_install
|
|
|
|
clean:
|
|
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) clean
|