blob: be7d74cdca049cff35f8a5e38a3bac1617887e23 [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 Mason79154b12007-03-22 15:59:16 -04006 hash.o file-item.o inode-item.o inode-map.o disk-io.o transaction.o
Chris Masonaf86d072007-02-28 09:40:58 -05007
Chris Mason2e635a22007-03-21 11:12:56 -04008#btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \
9# root-tree.o dir-item.o hash.o file-item.o inode-item.o \
10# inode-map.o \
Chris Masoneb60cea2007-02-02 09:18:22 -050011
Chris Mason2e635a22007-03-21 11:12:56 -040012else
Chris Mason1261ec42007-03-20 20:35:03 -040013
Chris Mason2e635a22007-03-21 11:12:56 -040014# Normal Makefile
Chris Masonfec577f2007-02-26 10:40:21 -050015
Chris Mason2e635a22007-03-21 11:12:56 -040016KERNELDIR := /lib/modules/`uname -r`/build
17all::
Chris Masone20d96d2007-03-22 12:13:20 -040018 $(MAKE) C=1 -C $(KERNELDIR) M=`pwd` modules
Chris Mason2e635a22007-03-21 11:12:56 -040019clean::
20 rm *.o btrfs.ko
21endif