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