Commit | Line | Data |
---|---|---|
2e635a27 CM |
1 | ifneq ($(KERNELRELEASE),) |
2 | # kbuild part of makefile | |
eb60ceac | 3 | |
2e635a27 | 4 | obj-m := btrfs.o |
e20d96d6 | 5 | btrfs-y := super.o ctree.o extent-tree.o print-tree.o root-tree.o dir-item.o \ |
615f996f | 6 | file-item.o inode-item.o inode-map.o disk-io.o \ |
a52d9a80 | 7 | transaction.o bit-radix.o inode.o file.o tree-defrag.o \ |
d1310b2e | 8 | extent_map.o sysfs.o struct-funcs.o xattr.o ordered-data.o \ |
31153d81 | 9 | extent_io.o volumes.o async-thread.o ioctl.o locking.o orphan.o \ |
0f9dd46c | 10 | ref-cache.o export.o tree-log.o acl.o free-space-cache.o |
2e635a27 | 11 | else |
4920c9ac | 12 | |
2e635a27 | 13 | # Normal Makefile |
fec577fb | 14 | |
2e635a27 | 15 | KERNELDIR := /lib/modules/`uname -r`/build |
b4f6c45d | 16 | all: |
39279cc3 | 17 | $(MAKE) -C $(KERNELDIR) M=`pwd` modules |
b3c3da71 | 18 | |
432eba08 | 19 | modules_install: |
84a5d5ee | 20 | $(MAKE) -C $(KERNELDIR) M=`pwd` modules_install |
432eba08 | 21 | clean: |
8578f0f1 | 22 | $(MAKE) -C $(KERNELDIR) M=`pwd` clean |
432eba08 | 23 | |
2e635a27 | 24 | endif |