blob: 6a660e610be8e4a40dd0d8dd2655fcedff9a16d9 [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 Weilec0994e2010-02-02 16:25:35 -080018 auth_x.o \
Sage Weil1654dd02009-11-06 21:55:25 -080019 ceph_fs.o ceph_strings.o ceph_hash.o ceph_frag.o
Sage Weil9030aaf2009-10-06 11:31:15 -070020
21else
22#Otherwise we were called directly from the command
23# line; invoke the kernel build system.
24
25KERNELDIR ?= /lib/modules/$(shell uname -r)/build
26PWD := $(shell pwd)
27
28default: all
29
30all:
31 $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules
32
33modules_install:
34 $(MAKE) -C $(KERNELDIR) M=$(PWD) CONFIG_CEPH_FS=m modules_install
35
36clean:
37 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
38
39endif