#inform the kernel that a module needs to be build obj-m :=hwdd_port80.o TREETOP=$(shell findtop.sh) SAVE_LDFLAGS:=$(LDFLAGS) SAVE_CFLAGS:=$(CFLAGS) include $(TREETOP)/Rules.make LDFLAGS:=$(SAVE_LDFLAGS) CFLAGS:=$(SAVE_CFLAGS) clean: @$(scriptDir)/logit "INFO 9500 $@" @if [ -d $(workDirKernel) ] ; \ then \ if [ -d $(outDirInstallInitramfs) ] ; \ then \ make -C $(kernelDir) O=$(workDirKernel) M=`pwd` INSTALL_MOD_PATH=$(outDirInstallInitramfs) clean ; \ fi \ fi \ all: @$(scriptDir)/logit "INFO 9501 $@" make -C $(kernelDir) O=$(workDirKernel) M=`pwd` INSTALL_MOD_PATH=$(outDirInstallInitramfs) modules install: all @$(scriptDir)/logit "INFO 9501 $@" make -C $(kernelDir) O=$(workDirKernel) M=`pwd` INSTALL_MOD_PATH=$(outDirInstallInitramfs) modules_install