xref: /linux/fs/btrfs/Makefile (revision caaca38b8fdcf63a17647fddae2195b189e19e37)
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*caaca38bSYan	   extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o
9af86d07eSChris Mason
10*caaca38bSYanifeq ($(CONFIG_FS_POSIX_ACL),y)
11*caaca38bSYanbtrfs-y += acl.o
12*caaca38bSYanendif
132e635a27SChris Mason#btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \
142e635a27SChris Mason#	  root-tree.o dir-item.o hash.o file-item.o inode-item.o \
152e635a27SChris Mason#	  inode-map.o \
16eb60ceacSChris Mason
172e635a27SChris Masonelse
181261ec42SChris Mason
192e635a27SChris Mason# Normal Makefile
20fec577fbSChris Mason
212e635a27SChris MasonKERNELDIR := /lib/modules/`uname -r`/build
22432eba08SJan Engelhardtall:
2339279cc3SChris Mason	$(MAKE) -C $(KERNELDIR) M=`pwd` modules
24432eba08SJan Engelhardtmodules_install:
2584a5d5eeSChris Mason	$(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
26432eba08SJan Engelhardtclean:
278578f0f1SJoel Becker	$(MAKE) -C $(KERNELDIR) M=`pwd` clean
28432eba08SJan Engelhardt
295f39d397SChris Masontester:
305f39d397SChris 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
312e635a27SChris Masonendif
32