xref: /linux/fs/btrfs/Makefile (revision d1310b2e0cd98eb1348553e69b73827b436dca7b)
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 \
8*d1310b2eSChris Mason	   extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
9*d1310b2eSChris Mason	   extent_io.o
10af86d07eSChris Mason
11caaca38bSYanifeq ($(CONFIG_FS_POSIX_ACL),y)
12caaca38bSYanbtrfs-y += acl.o
13caaca38bSYanendif
142e635a27SChris Mason#btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \
152e635a27SChris Mason#	  root-tree.o dir-item.o hash.o file-item.o inode-item.o \
162e635a27SChris Mason#	  inode-map.o \
17eb60ceacSChris Mason
182e635a27SChris Masonelse
191261ec42SChris Mason
202e635a27SChris Mason# Normal Makefile
21fec577fbSChris Mason
222e635a27SChris MasonKERNELDIR := /lib/modules/`uname -r`/build
23432eba08SJan Engelhardtall:
2439279cc3SChris Mason	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
25432eba08SJan Engelhardtmodules_install:
2684a5d5eeSChris Mason	$(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
27432eba08SJan Engelhardtclean:
288578f0f1SJoel Becker	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
29432eba08SJan Engelhardt
305f39d397SChris Masontester:
315f39d397SChris 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
322e635a27SChris Masonendif
33