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