2007-03-21 23:12:56 +08:00
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
# kbuild part of makefile
|
2007-02-02 22:18:22 +08:00
|
|
|
|
2007-03-21 23:12:56 +08:00
|
|
|
obj-m := btrfs.o
|
|
|
|
btrfs-y := super.o
|
2007-02-28 22:40:58 +08:00
|
|
|
|
2007-03-21 23:12:56 +08: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 22:18:22 +08:00
|
|
|
|
2007-03-21 23:12:56 +08:00
|
|
|
else
|
2007-01-27 05:38:42 +08:00
|
|
|
|
2007-03-21 23:12:56 +08:00
|
|
|
# Normal Makefile
|
2007-02-26 23:40:21 +08:00
|
|
|
|
2007-03-21 23:12:56 +08:00
|
|
|
KERNELDIR := /lib/modules/`uname -r`/build
|
|
|
|
all::
|
|
|
|
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
|
|
|
|
clean::
|
|
|
|
rm *.o btrfs.ko
|
|
|
|
endif
|