2007-06-28 22:43:40 +02:00
|
|
|
KERNEL_RELEASE = $(shell uname -r)
|
|
|
|
KERNEL_BUILDROOT ?= /lib/modules/$(KERNEL_RELEASE)/build
|
|
|
|
BUILDROOT = $(shell pwd)
|
2007-06-28 18:20:34 +02:00
|
|
|
|
2007-06-28 22:43:40 +02:00
|
|
|
obj-m := fpgafs.o
|
2007-07-01 23:30:51 +02:00
|
|
|
fpgafs-objs := files.o inode.o llmgmt.o
|
|
|
|
|
|
|
|
# low level driver
|
|
|
|
obj-m += fpgafs_lldrv_dbg.o
|
|
|
|
obj-m += fpgafs_lldrv_cham.o
|
2007-06-28 22:43:40 +02:00
|
|
|
|
|
|
|
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
|