thesis/code/Makefile
2025-03-27 21:43:21 +01:00

19 lines
280 B
Makefile

obj-m += lkm.o
all: module
run: module leak.c
./leak
module:
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules
clean:
make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean
insert: module
insmod lkm.ko
chmod 666 /dev/lkm
remove:
rmmod lkm