blob: 85a588e43e7d18d6476381700c40c716f9908431 [file] [log] [blame]
Sage Weil9030aaf2009-10-06 11:31:15 -07001#
2# Makefile for CEPH filesystem.
3#
4
5ifneq ($(KERNELRELEASE),)
6
7obj-$(CONFIG_CEPH_FS) += ceph.o
8
9ceph-objs := super.o inode.o dir.o file.o addr.o ioctl.o \
10 export.o caps.o snap.o xattr.o \
Sage Weil58bb3b32009-12-23 12:12:31 -080011 messenger.o msgpool.o buffer.o pagelist.o \
Sage Weil9030aaf2009-10-06 11:31:15 -070012 mds_client.o mdsmap.o \
13 mon_client.o \
Sage Weilc6cf7262009-11-06 16:39:26 -080014 osd_client.o osdmap.o crush/crush.o crush/mapper.o crush/hash.o \
Sage Weil9030aaf2009-10-06 11:31:15 -070015 debugfs.o \
Sage Weil4e7a5dc2009-11-18 16:19:57 -080016 auth.o auth_none.o \
Sage Weil8b6e4f22010-02-02 16:07:07 -080017 crypto.o armor.o \
Sage Weil1654dd02009-11-06 21:55:25 -080018 ceph_fs.o ceph_strings.o ceph_hash.o ceph_frag.o
Sage Weil9030aaf2009-10-06 11:31:15 -070019
20else
21#Otherwise we were called directly from the command
22# line; invoke the kernel build system.
23
24KERNELDIR ?= /lib/modules/$(shell uname -r)/build
25PWD := $(shell pwd)
26
27default: all
28
29all:
30 $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules
31
32modules_install:
33 $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules_install
34
35clean:
36 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
37
38endif