1*3d14c5d2SYehuda Sadeh# 2*3d14c5d2SYehuda Sadeh# Makefile for CEPH filesystem. 3*3d14c5d2SYehuda Sadeh# 4*3d14c5d2SYehuda Sadeh 5*3d14c5d2SYehuda Sadehifneq ($(KERNELRELEASE),) 6*3d14c5d2SYehuda Sadeh 7*3d14c5d2SYehuda Sadehobj-$(CONFIG_CEPH_LIB) += libceph.o 8*3d14c5d2SYehuda Sadeh 9*3d14c5d2SYehuda Sadehlibceph-objs := ceph_common.o messenger.o msgpool.o buffer.o pagelist.o \ 10*3d14c5d2SYehuda Sadeh mon_client.o \ 11*3d14c5d2SYehuda Sadeh osd_client.o osdmap.o crush/crush.o crush/mapper.o crush/hash.o \ 12*3d14c5d2SYehuda Sadeh debugfs.o \ 13*3d14c5d2SYehuda Sadeh auth.o auth_none.o \ 14*3d14c5d2SYehuda Sadeh crypto.o armor.o \ 15*3d14c5d2SYehuda Sadeh auth_x.o \ 16*3d14c5d2SYehuda Sadeh ceph_fs.o ceph_strings.o ceph_hash.o \ 17*3d14c5d2SYehuda Sadeh pagevec.o 18*3d14c5d2SYehuda Sadeh 19*3d14c5d2SYehuda Sadehelse 20*3d14c5d2SYehuda Sadeh#Otherwise we were called directly from the command 21*3d14c5d2SYehuda Sadeh# line; invoke the kernel build system. 22*3d14c5d2SYehuda Sadeh 23*3d14c5d2SYehuda SadehKERNELDIR ?= /lib/modules/$(shell uname -r)/build 24*3d14c5d2SYehuda SadehPWD := $(shell pwd) 25*3d14c5d2SYehuda Sadeh 26*3d14c5d2SYehuda Sadehdefault: all 27*3d14c5d2SYehuda Sadeh 28*3d14c5d2SYehuda Sadehall: 29*3d14c5d2SYehuda Sadeh $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_LIB=m modules 30*3d14c5d2SYehuda Sadeh 31*3d14c5d2SYehuda Sadehmodules_install: 32*3d14c5d2SYehuda Sadeh $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_LIB=m modules_install 33*3d14c5d2SYehuda Sadeh 34*3d14c5d2SYehuda Sadehclean: 35*3d14c5d2SYehuda Sadeh $(MAKE) -C $(KERNELDIR) M=$(PWD) clean 36*3d14c5d2SYehuda Sadeh 37*3d14c5d2SYehuda Sadehendif 38