Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 1 | ifneq ($(KERNELRELEASE),) |
| 2 | # kbuild part of makefile |
Chris Mason | eb60cea | 2007-02-02 09:18:22 -0500 | [diff] [blame] | 3 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 4 | obj-m := btrfs.o |
Chris Mason | e20d96d | 2007-03-22 12:13:20 -0400 | [diff] [blame] | 5 | btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \ |
David Woodhouse | 615f996 | 2008-08-19 19:21:57 +0100 | [diff] [blame^] | 6 | file-item.o inode-item.o inode-map.o disk-io.o \ |
Chris Mason | a52d9a8 | 2007-08-27 16:49:44 -0400 | [diff] [blame] | 7 | transaction.o bit-radix.o inode.o file.o tree-defrag.o \ |
Chris Mason | d1310b2 | 2008-01-24 16:13:08 -0500 | [diff] [blame] | 8 | extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \ |
Yan Zheng | 31153d8 | 2008-07-28 15:32:19 -0400 | [diff] [blame] | 9 | extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \ |
Balaji Rao | be6e8dc | 2008-07-21 02:01:56 +0530 | [diff] [blame] | 10 | ref-cache.o export.o |
Chris Mason | af86d07 | 2007-02-28 09:40:58 -0500 | [diff] [blame] | 11 | |
Christoph Hellwig | 95c9eb1 | 2008-06-10 10:20:57 -0400 | [diff] [blame] | 12 | btrfs-$(CONFIG_FS_POSIX_ACL) += acl.o |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 13 | else |
Chris Mason | 1261ec4 | 2007-03-20 20:35:03 -0400 | [diff] [blame] | 14 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 15 | # Normal Makefile |
Chris Mason | fec577f | 2007-02-26 10:40:21 -0500 | [diff] [blame] | 16 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 17 | KERNELDIR := /lib/modules/`uname -r`/build |
Chris Mason | b3c3da7 | 2008-07-23 12:12:13 -0400 | [diff] [blame] | 18 | all: version |
Chris Mason | 39279cc | 2007-06-12 06:35:45 -0400 | [diff] [blame] | 19 | $(MAKE) -C $(KERNELDIR) M=`pwd` modules |
Chris Mason | b3c3da7 | 2008-07-23 12:12:13 -0400 | [diff] [blame] | 20 | |
| 21 | version: |
| 22 | bash version.sh |
| 23 | |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 24 | modules_install: |
Chris Mason | 84a5d5e | 2007-09-14 09:43:53 -0400 | [diff] [blame] | 25 | $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 26 | clean: |
Joel Becker | 8578f0f | 2007-07-25 14:04:51 -0400 | [diff] [blame] | 27 | $(MAKE) -C $(KERNELDIR) M=`pwd` clean |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 28 | |
Chris Mason | 5f39d39 | 2007-10-15 16:14:19 -0400 | [diff] [blame] | 29 | tester: |
| 30 | $(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 |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 31 | endif |