KERNEL_RELEASE = $(shell uname -r) KERNEL_BUILDROOT ?= /root/linux-2.6.21.5/obj BUILDROOT = $(shell pwd) obj-m := fpgafs.o fpgafs-objs := files.o inode.o llmgmt.o # low level driver obj-m += fpgafs_lldrv_dbg.o obj-m += fpgafs_lldrv_cham.o all : $(MAKE) -C $(KERNEL_BUILDROOT) SUBDIRS=$(BUILDROOT) modules clean: rm -f *.ko *.o .*.cmd .*.o.flags *.mod.c Module.symvers rm -rf .tmp_versions .PHONY : all clean