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 | |
Sage Weil | 61f8c86 | 2008-10-09 11:52:35 -0400 | [diff] [blame] | 4 | obj-$(CONFIG_BTRFS_FS) := 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 | d352ac6 | 2008-09-29 15:18:18 -0400 | [diff] [blame] | 7 | transaction.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 \ |
Chris Mason | c8b9781 | 2008-10-29 14:49:59 -0400 | [diff] [blame] | 10 | ref-cache.o export.o tree-log.o acl.o free-space-cache.o zlib.o \ |
| 11 | compression.o |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 12 | else |
Chris Mason | 1261ec4 | 2007-03-20 20:35:03 -0400 | [diff] [blame] | 13 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 14 | # Normal Makefile |
Chris Mason | fec577f | 2007-02-26 10:40:21 -0500 | [diff] [blame] | 15 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 16 | KERNELDIR := /lib/modules/`uname -r`/build |
Chris Mason | b4f6c45 | 2008-09-24 11:05:53 -0400 | [diff] [blame] | 17 | all: |
Sage Weil | 61f8c86 | 2008-10-09 11:52:35 -0400 | [diff] [blame] | 18 | $(MAKE) -C $(KERNELDIR) M=`pwd` CONFIG_BTRFS_FS=m modules |
Chris Mason | b3c3da7 | 2008-07-23 12:12:13 -0400 | [diff] [blame] | 19 | |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 20 | modules_install: |
Chris Mason | 84a5d5e | 2007-09-14 09:43:53 -0400 | [diff] [blame] | 21 | $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 22 | clean: |
Joel Becker | 8578f0f | 2007-07-25 14:04:51 -0400 | [diff] [blame] | 23 | $(MAKE) -C $(KERNELDIR) M=`pwd` clean |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 24 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 25 | endif |