# Build Tutorial hello world module.
# To try this tutorial.
# make
# sudo insmod hello_world.ko
# dmesg
# lsmod
# sudo rmmod hello_world.ko
# dmesg
# lsmod

KERNEL_SOURCE_TREE:=/lib/modules/$(shell uname -r)/build
PWD:=$(shell pwd)

# specify object.
obj-m:=hello_world.o

.PHONY: modules clean # install
modules:
	make -C $(KERNEL_SOURCE_TREE) M=$(PWD) modules

clean:
	make -C $(KERNEL_SOURCE_TREE) M=$(PWD) clean

#install:
#	make -C $(KERNEL_SOURCE_TREE) M=$(PWD) install
