#------------------------------------------------------------------------------ #If you want to build a module that is loadable in your currently running # module, you will need the kernel sources for your running kernel, and your # Makefile for the luv module can be as follows. Note that you need to set # ROOT_DIR to the location of your running kernel's source. #------------------------------------------------------------------------------ obj-m := luv_main.o ROOT_DIR := /usr/src/linux-2.6.36/ luv_main: $(MAKE) -C $(ROOT_DIR) M=`pwd` modules