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 \ |
Chris Mason | 8ef9762 | 2007-03-26 10:15:30 -0400 | [diff] [blame] | 6 | hash.o 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 | 0f82731 | 2007-10-15 16:18:56 -0400 | [diff] [blame] | 8 | extent_map.o sysfs.o struct-funcs.o |
Chris Mason | af86d07 | 2007-02-28 09:40:58 -0500 | [diff] [blame] | 9 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 10 | #btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \ |
| 11 | # root-tree.o dir-item.o hash.o file-item.o inode-item.o \ |
| 12 | # inode-map.o \ |
Chris Mason | eb60cea | 2007-02-02 09:18:22 -0500 | [diff] [blame] | 13 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 14 | else |
Chris Mason | 1261ec4 | 2007-03-20 20:35:03 -0400 | [diff] [blame] | 15 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 16 | # Normal Makefile |
Chris Mason | fec577f | 2007-02-26 10:40:21 -0500 | [diff] [blame] | 17 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 18 | KERNELDIR := /lib/modules/`uname -r`/build |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 19 | all: |
Chris Mason | 39279cc | 2007-06-12 06:35:45 -0400 | [diff] [blame] | 20 | $(MAKE) -C $(KERNELDIR) M=`pwd` modules |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 21 | modules_install: |
Chris Mason | 84a5d5e | 2007-09-14 09:43:53 -0400 | [diff] [blame] | 22 | $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 23 | clean: |
Joel Becker | 8578f0f | 2007-07-25 14:04:51 -0400 | [diff] [blame] | 24 | $(MAKE) -C $(KERNELDIR) M=`pwd` clean |
Jan Engelhardt | 432eba0 | 2007-09-14 10:22:19 -0400 | [diff] [blame] | 25 | |
Chris Mason | 5f39d39 | 2007-10-15 16:14:19 -0400 | [diff] [blame] | 26 | tester: |
| 27 | $(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] | 28 | endif |