summaryrefslogtreecommitdiff
path: root/fs/exofs/Kbuild
blob: d7aca83aa667794150badfdb492df04de3b551cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# Kbuild for the EXOFS module
#
# Copyright (C) 2008 Panasas Inc.  All rights reserved.
#
# Authors:
#   Boaz Harrosh <bharrosh@panasas.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
#
# Kbuild - Gets included from the Kernels Makefile and build system
#

ifneq ($(OSD_INC),)
# we are built out-of-tree Kconfigure everything as on

CONFIG_EXOFS_FS=m
ccflags-y += -DCONFIG_EXOFS_FS -DCONFIG_EXOFS_FS_MODULE
# ccflags-y += -DCONFIG_EXOFS_DEBUG

# if we are built out-of-tree and the hosting kernel has OSD headers
# then "ccflags-y +=" will not pick the out-off-tree headers. Only by doing
# this it will work. This might break in future kernels
KBUILD_CPPFLAGS := -I$(OSD_INC) $(KBUILD_CPPFLAGS)

endif

exofs-objs := osd.o inode.o file.o symlink.o namei.o dir.o super.o mkexofs.o
obj-$(CONFIG_EXOFS_FS) += exofs.o