2007-03-21 11:12:56 -04:00
|
|
|
ifneq ($(KERNELRELEASE),)
|
|
|
|
# kbuild part of makefile
|
2007-02-02 09:18:22 -05:00
|
|
|
|
2007-03-21 11:12:56 -04:00
|
|
|
obj-m := btrfs.o
|
2007-03-22 12:13:20 -04:00
|
|
|
btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \
|
2007-03-26 10:15:30 -04:00
|
|
|
hash.o file-item.o inode-item.o inode-map.o disk-io.o \
|
2007-08-27 16:49:44 -04:00
|
|
|
transaction.o bit-radix.o inode.o file.o tree-defrag.o \
|
2007-08-29 15:47:34 -04:00
|
|
|
extent_map.o sysfs.o
|
2007-02-28 09:40:58 -05:00
|
|
|
|
2007-03-21 11:12:56 -04: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 09:18:22 -05:00
|
|
|
|
2007-03-21 11:12:56 -04:00
|
|
|
else
|
2007-01-26 16:38:42 -05:00
|
|
|
|
2007-03-21 11:12:56 -04:00
|
|
|
# Normal Makefile
|
2007-02-26 10:40:21 -05:00
|
|
|
|
2007-03-21 11:12:56 -04:00
|
|
|
KERNELDIR := /lib/modules/`uname -r`/build
|
2007-09-14 10:22:19 -04:00
|
|
|
all:
|
2007-06-12 06:35:45 -04:00
|
|
|
$(MAKE) -C $(KERNELDIR) M=`pwd` modules
|
2007-09-14 10:22:19 -04:00
|
|
|
modules_install:
|
2007-09-14 09:43:53 -04:00
|
|
|
$(MAKE) -C $(KERNELDIR) M=`pwd` modules_install
|
2007-09-14 10:22:19 -04:00
|
|
|
clean:
|
2007-07-25 14:04:51 -04:00
|
|
|
$(MAKE) -C $(KERNELDIR) M=`pwd` clean
|
2007-09-14 10:22:19 -04:00
|
|
|
|
2007-03-21 11:12:56 -04:00
|
|
|
endif
|