]>
Commit | Line | Data |
---|---|---|
2e635a27 CM |
1 | ifneq ($(KERNELRELEASE),) |
2 | # kbuild part of makefile | |
eb60ceac | 3 | |
61f8c86e | 4 | obj-$(CONFIG_BTRFS_FS) := btrfs.o |
e20d96d6 | 5 | btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \ |
615f996f | 6 | file-item.o inode-item.o inode-map.o disk-io.o \ |
d352ac68 | 7 | transaction.o inode.o file.o tree-defrag.o \ |
d1310b2e | 8 | extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \ |
31153d81 | 9 | extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \ |
c8b97818 | 10 | ref-cache.o export.o tree-log.o acl.o free-space-cache.o zlib.o \ |
56bec294 | 11 | compression.o delayed-ref.o |
2e635a27 | 12 | else |
4920c9ac | 13 | |
2e635a27 | 14 | # Normal Makefile |
fec577fb | 15 | |
2e635a27 | 16 | KERNELDIR := /lib/modules/`uname -r`/build |
b4f6c45d | 17 | all: |
61f8c86e | 18 | $(MAKE) -C $(KERNELDIR) M=`pwd` CONFIG_BTRFS_FS=m modules |
b3c3da71 | 19 | |
432eba08 | 20 | modules_install: |
84a5d5ee | 21 | $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install |
432eba08 | 22 | clean: |
8578f0f1 | 23 | $(MAKE) -C $(KERNELDIR) M=`pwd` clean |
432eba08 | 24 | |
2e635a27 | 25 | endif |