# Makefile for kernel modules. # For information about making kernel modules, see # Documentation/kbuild/modules.txt in the kernel source. # Do not believe any web pages you may find that purport to explain how # to build kernel modules without having a complete built kernel tree # available. # You probably need to change this: KERNEL_SRC_DIR=/usr/local/src/linux-2.6-2.6.21 default_target: all all:: build_module build_module: # Call the kernel Makefile ${MAKE} -C ${KERNEL_SRC_DIR} M=`pwd` .PHONY: default_target all build_module