1
# AUFS Makefile for the Linux 2.6.25 and later
2
# $Id: Makefile,v 1.3 2008/04/28 03:03:10 sfjro Exp $
4
# the environment variables are not inherited since 2.6.23
5
ifdef AUFS_EXTRA_CFLAGS
6
EXTRA_CFLAGS += ${AUFS_EXTRA_CFLAGS}
9
########################################
11
ifdef CONFIG_AUFS_RR_SQUASHFS
12
# cf. squashfs3.2-r2 and sqlzma patch.
13
EXTRA_CFLAGS += -DSQUASHFS_MAGIC=0x73717368
14
EXTRA_CFLAGS += -DSQUASHFS_MAGIC_SWAP=0x68737173
15
EXTRA_CFLAGS += -DSQUASHFS_MAGIC_LZMA=0x71736873
16
EXTRA_CFLAGS += -DSQUASHFS_MAGIC_LZMA_SWAP=0x73687371
19
ifdef CONFIG_AUFS_WORKAROUND_FUSE
20
# defined in ${srctree}/fs/fuse/inode.c
21
EXTRA_CFLAGS += -DFUSE_SUPER_MAGIC=0x65735546
25
# defined in ${srctree}/fs/xfs/xfs_sb.h
26
EXTRA_CFLAGS += -DXFS_SB_MAGIC=0x58465342
30
# defined in ${srctree}/mm/shmem.c
31
EXTRA_CFLAGS += -DTMPFS_MAGIC=0x01021994
34
-include $(dir $(lastword ${MAKEFILE_LIST}))priv.mk
35
#$(warning ${EXTRA_CFLAGS})
37
########################################
39
obj-$(CONFIG_AUFS) += aufs.o
40
aufs-y := module.o super.o sbinfo.o branch.o xino.o sysaufs.o opts.o \
41
wkq.o vfsub.o dcsub.o \
42
cpup.o whout.o plink.o wbr_policy.o \
44
file.o f_op.o finfo.o \
46
inode.o i_op.o i_op_add.o i_op_del.o i_op_ren.o iinfo.o \
50
aufs-$(CONFIG_SYSFS) += sysfs.o
51
aufs-$(CONFIG_AUFS_BR_NFS) += br_nfs.o
52
aufs-$(CONFIG_AUFS_BR_XFS) += br_xfs.o
53
aufs-$(CONFIG_AUFS_WORKAROUND_FUSE) += br_fuse.o
55
aufs-$(CONFIG_AUFS_DLGT) += dlgt.o
56
aufs-$(CONFIG_AUFS_HINOTIFY) += hinotify.o hin_or_dlgt.o
58
ifndef CONFIG_AUFS_HINOTIFY
59
aufs-$(CONFIG_AUFS_DLGT) += hin_or_dlgt.o
62
aufs-$(CONFIG_AUFS_EXPORT) += export.o
63
aufs-$(CONFIG_AUFS_ROBR) += robr.o
64
aufs-$(CONFIG_AUFS_DEBUG) += debug.o
65
aufs-$(CONFIG_AUFS_MAGIC_SYSRQ) += sysrq.o