add standalone makefile, make some clean ups
git-svn-id: svn+ssh://en.codiert.org/home/staff/ben/dev/misc.svn/projects/fpgafs@341 766a2236-cff9-0310-b0c0-a81a5f92509a
This commit is contained in:
19
Makefile
19
Makefile
@@ -1,6 +1,15 @@
|
||||
#
|
||||
# Makefile for the fpgafs virtual filesystem
|
||||
#
|
||||
obj-$(CONFIG_FPGA_FS) += fpgafs.o
|
||||
KERNEL_RELEASE = $(shell uname -r)
|
||||
KERNEL_BUILDROOT ?= /lib/modules/$(KERNEL_RELEASE)/build
|
||||
BUILDROOT = $(shell pwd)
|
||||
|
||||
fpgafs-objs := inode.o files.o
|
||||
obj-m := fpgafs.o
|
||||
fpgafs-objs := files.o inode.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
|
||||
|
||||
Reference in New Issue
Block a user