Makefile 389 B

1234567891011121314151617181920
  1. ifneq ($(KERNELRELEASE),)
  2. # kbuild part of makefile
  3. obj-m := btrfs.o
  4. btrfs-y := super.o
  5. #btrfs-y := ctree.o disk-io.o radix-tree.o extent-tree.o print-tree.o \
  6. # root-tree.o dir-item.o hash.o file-item.o inode-item.o \
  7. # inode-map.o \
  8. else
  9. # Normal Makefile
  10. KERNELDIR := /lib/modules/`uname -r`/build
  11. all::
  12. $(MAKE) -C $(KERNELDIR) M=`pwd` modules
  13. clean::
  14. rm *.o btrfs.ko
  15. endif