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