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