blob: ab9a9f8edbf8c2f8cde88606cd464e5d072e6111 [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 \
Chris Mason8ef97622007-03-26 10:15:30 -04006 hash.o 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 Masondc17ff82008-01-08 15:46:30 -05008 extent_map.o sysfs.o struct-funcs.o xattr.o acl.o ordered-data.o
Chris Masonaf86d072007-02-28 09:40:58 -05009
Chris Mason2e635a22007-03-21 11:12:56 -040010#btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \
11# root-tree.o dir-item.o hash.o file-item.o inode-item.o \
12# inode-map.o \
Chris Masoneb60cea2007-02-02 09:18:22 -050013
Chris Mason2e635a22007-03-21 11:12:56 -040014else
Chris Mason1261ec42007-03-20 20:35:03 -040015
Chris Mason2e635a22007-03-21 11:12:56 -040016# Normal Makefile
Chris Masonfec577f2007-02-26 10:40:21 -050017
Chris Mason2e635a22007-03-21 11:12:56 -040018KERNELDIR := /lib/modules/`uname -r`/build
Jan Engelhardt432eba02007-09-14 10:22:19 -040019all:
Chris Mason39279cc2007-06-12 06:35:45 -040020 $(MAKE) -C $(KERNELDIR) M=`pwd` modules
Jan Engelhardt432eba02007-09-14 10:22:19 -040021modules_install:
Chris Mason84a5d5e2007-09-14 09:43:53 -040022 $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
Jan Engelhardt432eba02007-09-14 10:22:19 -040023clean:
Joel Becker8578f0f2007-07-25 14:04:51 -040024 $(MAKE) -C $(KERNELDIR) M=`pwd` clean
Jan Engelhardt432eba02007-09-14 10:22:19 -040025
Chris Mason5f39d392007-10-15 16:14:19 -040026tester:
27 $(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 -040028endif