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 \
|
2008-08-19 20:21:57 +02:00
|
|
|
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-07-28 21:32:19 +02:00
|
|
|
extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \
|
2008-09-05 22:13:11 +02:00
|
|
|
ref-cache.o export.o tree-log.o acl.o
|
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
|
2008-07-23 18:12:13 +02:00
|
|
|
all: version
|
2007-06-12 12:35:45 +02:00
|
|
|
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
|
2008-07-23 18:12:13 +02:00
|
|
|
|
|
|
|
version:
|
|
|
|
bash version.sh
|
|
|
|
|
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
|