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 | 39279cc | 2007-06-12 06:35:45 -0400 | [diff] [blame^] | 7 | transaction.o bit-radix.o inode.o file.o |
Chris Mason | af86d07 | 2007-02-28 09:40:58 -0500 | [diff] [blame] | 8 | |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 9 | #btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \ |
| 10 | # root-tree.o dir-item.o hash.o file-item.o inode-item.o \ |
| 11 | # inode-map.o \ |
Chris Mason | eb60cea | 2007-02-02 09:18:22 -0500 | [diff] [blame] | 12 | |
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 |
| 18 | all:: |
Chris Mason | 39279cc | 2007-06-12 06:35:45 -0400 | [diff] [blame^] | 19 | $(MAKE) -C $(KERNELDIR) M=`pwd` modules |
Chris Mason | 2e635a2 | 2007-03-21 11:12:56 -0400 | [diff] [blame] | 20 | clean:: |
| 21 | rm *.o btrfs.ko |
| 22 | endif |