Files
bol-van_ipobfs/ipobfs_mod/Makefile
T
2025-04-04 09:44:20 +03:00

20 lines
401 B
Makefile

obj-m += ipobfs.o
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
KERNELRELEASE ?= $(shell uname -r)
PWD := $(shell pwd)
DEPMOD ?= depmod
STRIP ?= strip
all:
@$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
clean:
@$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
mod-install:
$(STRIP) --strip-debug *.ko
@$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
$(DEPMOD) -a $(KERNELRELEASE)
install : mod-install