youtubeUnblock/kmake.mk

30 lines
520 B
Makefile
Raw Permalink Normal View History

2024-07-30 23:12:59 +00:00
#Kernel module makes here
PWD := $(CURDIR)
CC := gcc
CCLD := $(CC)
LD := ld
CFLAGS :=
LDFLAGS :=
2024-07-30 23:12:59 +00:00
2024-09-15 21:28:10 +00:00
KERNEL_BUILDER_MAKEDIR:=/lib/modules/$(shell uname -r)/build
.PHONY: kmake kload kunload kreload kclean kmclean xclean
kmake: kmod
kmod:
2024-10-28 22:09:23 +00:00
$(MAKE) -C $(KERNEL_BUILDER_MAKEDIR) M=$(PWD) EXTRA_CFLAGS='-DPKG_VERSION=\"$(PKG_FULLVERSION)\"' modules
2024-07-30 23:12:59 +00:00
kload:
insmod kyoutubeUnblock.ko
2024-07-30 23:12:59 +00:00
kunload:
-rmmod kyoutubeUnblock
2024-07-30 23:12:59 +00:00
kreload: kunload kload
kclean: kmclean
2024-07-30 23:12:59 +00:00
kmclean:
2024-09-15 21:28:10 +00:00
-$(MAKE) -C $(KERNEL_BUILDER_MAKEDIR) M=$(PWD) clean