Commit | Line | Data |
---|---|---|
2e635a27 CM |
1 | ifneq ($(KERNELRELEASE),) |
2 | # kbuild part of makefile | |
eb60ceac | 3 | |
2e635a27 CM |
4 | obj-m := btrfs.o |
5 | btrfs-y := super.o | |
af86d07e | 6 | |
2e635a27 CM |
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 \ | |
eb60ceac | 10 | |
2e635a27 | 11 | else |
4920c9ac | 12 | |
2e635a27 | 13 | # Normal Makefile |
fec577fb | 14 | |
2e635a27 CM |
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 |