1
# AUFS Makefile for the Linux 2.6.25 and later
2
# $Id: Makefile,v 1.6 2008/07/14 00:13:35 sfjro Exp $
4
# the environment variables are not inherited since 2.6.23
5
ifdef AUFS_EXTRA_CFLAGS
6
ccflags-y += ${AUFS_EXTRA_CFLAGS}
9
########################################
11
ifdef CONFIG_AUFS_RR_SQUASHFS
12
# cf. squashfs3.2-r2 and sqlzma patch.
13
ccflags-y += -DSQUASHFS_MAGIC=0x73717368
14
ccflags-y += -DSQUASHFS_MAGIC_SWAP=0x68737173
15
ccflags-y += -DSQUASHFS_MAGIC_LZMA=0x71736873
16
ccflags-y += -DSQUASHFS_MAGIC_LZMA_SWAP=0x73687371
19
# defined in ${srctree}/fs/fuse/inode.c
20
ccflags-$(CONFIG_AUFS_WORKAROUND_FUSE) += -DFUSE_SUPER_MAGIC=0x65735546
22
# defined in ${srctree}/fs/xfs/xfs_sb.h
25
ccflags-y += -DXFS_SB_MAGIC=0x58465342
28
# defined in ${srctree}/mm/shmem.c
31
ccflags-y += -DTMPFS_MAGIC=0x01021994
34
# defined in ${srctree}fs/sysfs/mount.c
36
ccflags-$(CONFIG_SYSFS) += -DSYSFS_MAGIC=0x62656572
39
EXTRAVERSION = $(shell echo ${KERNELVERSION} | cut -f3- -d. | cut -f2- -d-)
41
# for -mm tree, support the latest version only
42
ifneq ($(strip $(shell echo ${EXTRAVERSION} | fgrep -- mm)),)
43
ccflags-y += -DCONFIG_AUFS_UNIONFS22_PATCH -DCONFIG_AUFS_UNIONFS23_PATCH
46
-include $(dir $(lastword ${MAKEFILE_LIST}))priv.mk
47
#$(warning ${ccflags-y})
49
########################################
51
obj-$(CONFIG_AUFS) += aufs.o
52
aufs-y := module.o super.o sbinfo.o branch.o xino.o sysaufs.o opts.o \
53
wkq.o vfsub.o dcsub.o \
54
cpup.o whout.o plink.o wbr_policy.o \
56
file.o f_op.o finfo.o \
58
inode.o i_op.o i_op_add.o i_op_del.o i_op_ren.o iinfo.o \
61
aufs-$(CONFIG_SYSFS) += sysfs.o
62
aufs-$(CONFIG_AUFS_BR_NFS) += br_nfs.o
63
aufs-$(CONFIG_AUFS_BR_XFS) += br_xfs.o
64
aufs-$(CONFIG_AUFS_WORKAROUND_FUSE) += br_fuse.o
65
aufs-$(CONFIG_AUFS_DLGT) += dlgt.o
66
aufs-$(CONFIG_AUFS_HINOTIFY) += hinotify.o
67
aufs-$(CONFIG_AUFS_HIN_OR_DLGT) += hin_or_dlgt.o
68
aufs-$(CONFIG_AUFS_EXPORT) += export.o
69
aufs-$(CONFIG_AUFS_ROBR) += robr.o
70
# reserved for future use
71
#aufs-$(CONFIG_AUFS_XATTR) += xattr.o
72
aufs-$(CONFIG_AUFS_DEBUG) += debug.o
73
aufs-$(CONFIG_AUFS_MAGIC_SYSRQ) += sysrq.o