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