2024-07-30 23:12:59 +00:00
|
|
|
#Kernel module makes here
|
|
|
|
PWD := $(CURDIR)
|
|
|
|
|
2024-07-31 19:13:06 +00:00
|
|
|
CC := gcc
|
|
|
|
CCLD := $(CC)
|
|
|
|
LD := ld
|
|
|
|
CFLAGS :=
|
|
|
|
LDFLAGS :=
|
2024-07-30 23:12:59 +00:00
|
|
|
|
2024-07-31 19:13:06 +00:00
|
|
|
.PHONY: kmake kload kunload kreload kclean kmclean xclean
|
2024-09-01 17:58:50 +00:00
|
|
|
kmake: kmod
|
2024-07-31 19:13:06 +00:00
|
|
|
|
|
|
|
kmod:
|
2024-07-30 23:12:59 +00:00
|
|
|
$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
|
|
|
|
|
|
|
|
kload:
|
2024-09-01 17:58:50 +00:00
|
|
|
insmod kyoutubeUnblock.ko
|
2024-07-30 23:12:59 +00:00
|
|
|
|
|
|
|
kunload:
|
2024-09-01 17:58:50 +00:00
|
|
|
-rmmod kyoutubeUnblock
|
2024-07-30 23:12:59 +00:00
|
|
|
|
|
|
|
kreload: kunload kload
|
|
|
|
|
2024-09-01 17:58:50 +00:00
|
|
|
kclean: kmclean
|
2024-07-30 23:12:59 +00:00
|
|
|
|
2024-07-31 19:13:06 +00:00
|
|
|
kmclean:
|
|
|
|
-$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
|