#inform the kernel that a module needs to be build obj-m :=hwdd_memory.o hwdd_memory-objs := hwdd_mem.o hwdd_memalgo.o hwdd_cache_algos.o bandwidth.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