youtubeUnblock/kmake.mk
Vadim Vetrov 5eeff9bc0d
Use netfilter hook instead of iptables target
KISS principle is in action. No need to specify rules, just insmod
youtubeUnblock and it works!
2024-09-01 20:58:50 +03:00

30 lines
464 B
Makefile

#Kernel module makes here
PWD := $(CURDIR)
CC := gcc
CCLD := $(CC)
LD := ld
CFLAGS :=
LDFLAGS :=
IPT_CFLAGS := -Wall -Wpedantic -O2
.PHONY: kmake kload kunload kreload kclean kmclean xclean
kmake: kmod
kmod:
$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
kload:
insmod kyoutubeUnblock.ko
kunload:
-rmmod kyoutubeUnblock
kreload: kunload kload
kclean: kmclean
kmclean:
-$(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean