thesis/code/Makefile
2025-03-27 22:10:51 +01:00

23 lines
306 B
Makefile

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