Makefile 766 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Makefile for CEPH filesystem.
  3. #
  4. ifneq ($(KERNELRELEASE),)
  5. obj-$(CONFIG_CEPH_LIB) += libceph.o
  6. libceph-objs := ceph_common.o messenger.o msgpool.o buffer.o pagelist.o \
  7. mon_client.o \
  8. osd_client.o osdmap.o crush/crush.o crush/mapper.o crush/hash.o \
  9. debugfs.o \
  10. auth.o auth_none.o \
  11. crypto.o armor.o \
  12. auth_x.o \
  13. ceph_fs.o ceph_strings.o ceph_hash.o \
  14. pagevec.o
  15. else
  16. #Otherwise we were called directly from the command
  17. # line; invoke the kernel build system.
  18. KERNELDIR ?= /lib/modules/$(shell uname -r)/build
  19. PWD := $(shell pwd)
  20. default: all
  21. all:
  22. $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_LIB=m modules
  23. modules_install:
  24. $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_LIB=m modules_install
  25. clean:
  26. $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
  27. endif