2007-03-22 00:12:56 +09:00
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
# kbuild part of makefile
|
2007-02-02 23:18:22 +09:00
|
|
|
|
2007-03-22 00:12:56 +09:00
|
|
|
obj-m := btrfs.o
|
2007-03-23 01:13:20 +09:00
|
|
|
btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
|
2007-03-26 23:15:30 +09:00
|
|
|
hash.o file-item.o inode-item.o inode-map.o disk-io.o \
|
2007-08-28 05:49:44 +09:00
|
|
|
transaction.o bit-radix.o inode.o file.o tree-defrag.o \
|
2008-01-25 06:13:08 +09:00
|
|
|
extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
|
2008-07-25 01:17:14 +09:00
|
|
|
extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o
|
2007-02-28 23:40:58 +09:00
|
|
|
|
2008-06-10 23:20:57 +09:00
|
|
|
btrfs-$(CONFIG_FS_POSIX_ACL) += acl.o
|
2007-03-22 00:12:56 +09:00
|
|
|
else
|
2007-01-27 06:38:42 +09:00
|
|
|
|
2007-03-22 00:12:56 +09:00
|
|
|
# Normal Makefile
|
2007-02-27 00:40:21 +09:00
|
|
|
|
2007-03-22 00:12:56 +09:00
|
|
|
KERNELDIR := /lib/modules/`uname -r`/build
|
2008-07-24 01:12:13 +09:00
|
|
|
all: version
|
2007-06-12 19:35:45 +09:00
|
|
|
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
|
2008-07-24 01:12:13 +09:00
|
|
|
|
|
|
|
version:
|
|
|
|
bash version.sh
|
|
|
|
|
2007-09-14 23:22:19 +09:00
|
|
|
modules_install:
|
2007-09-14 22:43:53 +09:00
|
|
|
$(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
|
2007-09-14 23:22:19 +09:00
|
|
|
clean:
|
2007-07-26 03:04:51 +09:00
|
|
|
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
|
2007-09-14 23:22:19 +09:00
|
|
|
|
2007-10-16 05:14:19 +09:00
|
|
|
tester:
|
|
|
|
$(MAKE) -C $(KERNELDIR) M=`pwd` tree-defrag.o transaction.o sysfs.o super.o root-tree.o inode-map.o inode-item.o inode.o file-item.o file.o extent_map.o disk-io.o ctree.o dir-item.o extent-tree.o
|
2007-03-22 00:12:56 +09:00
|
|
|
endif
|