blob: 8213bba1de9fc1f0d04bc1eec6afc56d60ec4d10 [file] [log] [blame]
Chris Mason2e635a22007-03-21 11:12:56 -04001ifneq ($(KERNELRELEASE),)
2# kbuild part of makefile
Chris Masoneb60cea2007-02-02 09:18:22 -05003
Chris Mason2e635a22007-03-21 11:12:56 -04004obj-m := btrfs.o
Chris Masone20d96d2007-03-22 12:13:20 -04005btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
David Woodhouse615f9962008-08-19 19:21:57 +01006 file-item.o inode-item.o inode-map.o disk-io.o \
Chris Masona52d9a82007-08-27 16:49:44 -04007 transaction.o bit-radix.o inode.o file.o tree-defrag.o \
Chris Masond1310b22008-01-24 16:13:08 -05008 extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \
Yan Zheng31153d82008-07-28 15:32:19 -04009 extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \
Balaji Raobe6e8dc2008-07-21 02:01:56 +053010 ref-cache.o export.o
Chris Masonaf86d072007-02-28 09:40:58 -050011
Christoph Hellwig95c9eb12008-06-10 10:20:57 -040012btrfs-$(CONFIG_FS_POSIX_ACL) += acl.o
Chris Mason2e635a22007-03-21 11:12:56 -040013else
Chris Mason1261ec42007-03-20 20:35:03 -040014
Chris Mason2e635a22007-03-21 11:12:56 -040015# Normal Makefile
Chris Masonfec577f2007-02-26 10:40:21 -050016
Chris Mason2e635a22007-03-21 11:12:56 -040017KERNELDIR := /lib/modules/`uname -r`/build
Chris Masonb3c3da72008-07-23 12:12:13 -040018all: version
Chris Mason39279cc2007-06-12 06:35:45 -040019 $(MAKE) -C $(KERNELDIR) M=`pwd` modules
Chris Masonb3c3da72008-07-23 12:12:13 -040020
21version:
22 bash version.sh
23
Jan Engelhardt432eba02007-09-14 10:22:19 -040024modules_install:
Chris Mason84a5d5e2007-09-14 09:43:53 -040025 $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
Jan Engelhardt432eba02007-09-14 10:22:19 -040026clean:
Joel Becker8578f0f2007-07-25 14:04:51 -040027 $(MAKE) -C $(KERNELDIR) M=`pwd` clean
Jan Engelhardt432eba02007-09-14 10:22:19 -040028
Chris Mason5f39d392007-10-15 16:14:19 -040029tester:
30 $(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
Chris Mason2e635a22007-03-21 11:12:56 -040031endif