2007-03-21 08:12:56 -07:00
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
# kbuild part of makefile
|
2007-02-02 07:18:22 -07:00
|
|
|
|
2007-03-21 08:12:56 -07:00
|
|
|
obj-m := btrfs.o
|
2007-03-22 09:13:20 -07:00
|
|
|
btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
|
2007-03-22 12:59:16 -07:00
|
|
|
hash.o file-item.o inode-item.o inode-map.o disk-io.o transaction.o
|
2007-02-28 07:40:58 -07:00
|
|
|
|
2007-03-21 08:12:56 -07:00
|
|
|
#btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \
|
|
|
|
# root-tree.o dir-item.o hash.o file-item.o inode-item.o \
|
|
|
|
# inode-map.o \
|
2007-02-02 07:18:22 -07:00
|
|
|
|
2007-03-21 08:12:56 -07:00
|
|
|
else
|
2007-01-26 14:38:42 -07:00
|
|
|
|
2007-03-21 08:12:56 -07:00
|
|
|
# Normal Makefile
|
2007-02-26 08:40:21 -07:00
|
|
|
|
2007-03-21 08:12:56 -07:00
|
|
|
KERNELDIR := /lib/modules/`uname -r`/build
|
|
|
|
all::
|
2007-03-22 09:13:20 -07:00
|
|
|
$(MAKE) C=1 -C $(KERNELDIR) M=`pwd` modules
|
2007-03-21 08:12:56 -07:00
|
|
|
clean::
|
|
|
|
rm *.o btrfs.ko
|
|
|
|
endif
|