xref: /linux/fs/btrfs/Makefile (revision b3c3da71ed88c06bc18a4d8919c6e4af3b933566)
12e635a27SChris Masonifneq ($(KERNELRELEASE),)
22e635a27SChris Mason# kbuild part of makefile
3eb60ceacSChris Mason
42e635a27SChris Masonobj-m  := btrfs.o
5e20d96d6SChris Masonbtrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
68ef97622SChris Mason	   hash.o file-item.o inode-item.o inode-map.o disk-io.o \
7a52d9a80SChris Mason	   transaction.o bit-radix.o inode.o file.o tree-defrag.o \
8d1310b2eSChris Mason	   extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
9925baeddSChris Mason	   extent_io.o volumes.o async-thread.o ioctl.o locking.o
10af86d07eSChris Mason
1195c9eb17SChristoph Hellwigbtrfs-$(CONFIG_FS_POSIX_ACL)	+= acl.o
122e635a27SChris Masonelse
131261ec42SChris Mason
142e635a27SChris Mason# Normal Makefile
15fec577fbSChris Mason
162e635a27SChris MasonKERNELDIR := /lib/modules/`uname -r`/build
17*b3c3da71SChris Masonall: version
1839279cc3SChris Mason	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
19*b3c3da71SChris Mason
20*b3c3da71SChris Masonversion:
21*b3c3da71SChris Mason	bash version.sh
22*b3c3da71SChris Mason
23432eba08SJan Engelhardtmodules_install:
2484a5d5eeSChris Mason	$(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
25432eba08SJan Engelhardtclean:
268578f0f1SJoel Becker	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
27432eba08SJan Engelhardt
285f39d397SChris Masontester:
295f39d397SChris Mason	$(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
302e635a27SChris Masonendif
31