Files
dotfiles/scripts/yt-block/Makefile
2024-08-16 15:37:45 +02:00

14 lines
298 B
Makefile

obj-m := unkillable.o
all:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules
unkillable.o:
# why does the name of the c source file seemingly need to match the .o file
# i'd like to have kernel_module.c
$(CC) unkillable.c -o unkillable.o
install:
$(MAKE) -C $(KERNEL_DIR) M=$(PWD) modules_install