Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2000-2005 Silicon Graphics, Inc. |
| 3 | # All Rights Reserved. |
| 4 | # |
| 5 | # This program is free software; you can redistribute it and/or |
| 6 | # modify it under the terms of the GNU General Public License as |
| 7 | # published by the Free Software Foundation. |
| 8 | # |
| 9 | # This program is distributed in the hope that it would be useful, |
| 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | # GNU General Public License for more details. |
| 13 | # |
| 14 | # You should have received a copy of the GNU General Public License |
| 15 | # along with this program; if not, write the Free Software Foundation, |
| 16 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | # |
| 18 | |
Dave Chinner | 388f1f0 | 2010-01-26 15:10:15 +1100 | [diff] [blame] | 19 | EXTRA_CFLAGS += -I$(src) -I$(src)/linux-2.6 |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 20 | |
| 21 | XFS_LINUX := linux-2.6 |
| 22 | |
| 23 | ifeq ($(CONFIG_XFS_DEBUG),y) |
| 24 | EXTRA_CFLAGS += -g |
| 25 | endif |
| 26 | |
| 27 | obj-$(CONFIG_XFS_FS) += xfs.o |
Lachlan McIlroy | 269cdfa | 2007-11-28 18:28:09 +1100 | [diff] [blame] | 28 | |
Christoph Hellwig | 0b1b213 | 2009-12-14 23:14:59 +0000 | [diff] [blame] | 29 | xfs-y += linux-2.6/xfs_trace.o |
| 30 | |
Lachlan McIlroy | 269cdfa | 2007-11-28 18:28:09 +1100 | [diff] [blame] | 31 | xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \ |
| 32 | xfs_dquot.o \ |
| 33 | xfs_dquot_item.o \ |
| 34 | xfs_trans_dquot.o \ |
| 35 | xfs_qm_syscalls.o \ |
| 36 | xfs_qm_bhv.o \ |
| 37 | xfs_qm.o) |
Christoph Hellwig | fcafb71 | 2009-02-09 08:47:34 +0100 | [diff] [blame] | 38 | xfs-$(CONFIG_XFS_QUOTA) += linux-2.6/xfs_quotaops.o |
Lachlan McIlroy | 269cdfa | 2007-11-28 18:28:09 +1100 | [diff] [blame] | 39 | |
| 40 | ifeq ($(CONFIG_XFS_QUOTA),y) |
| 41 | xfs-$(CONFIG_PROC_FS) += quota/xfs_qm_stats.o |
| 42 | endif |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 43 | |
| 44 | xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o |
Christoph Hellwig | ef14f0c | 2009-06-10 17:07:47 +0200 | [diff] [blame] | 45 | xfs-$(CONFIG_XFS_POSIX_ACL) += $(XFS_LINUX)/xfs_acl.o |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 46 | xfs-$(CONFIG_PROC_FS) += $(XFS_LINUX)/xfs_stats.o |
| 47 | xfs-$(CONFIG_SYSCTL) += $(XFS_LINUX)/xfs_sysctl.o |
| 48 | xfs-$(CONFIG_COMPAT) += $(XFS_LINUX)/xfs_ioctl32.o |
| 49 | |
| 50 | |
| 51 | xfs-y += xfs_alloc.o \ |
| 52 | xfs_alloc_btree.o \ |
| 53 | xfs_attr.o \ |
| 54 | xfs_attr_leaf.o \ |
| 55 | xfs_bit.o \ |
| 56 | xfs_bmap.o \ |
| 57 | xfs_bmap_btree.o \ |
| 58 | xfs_btree.o \ |
| 59 | xfs_buf_item.o \ |
| 60 | xfs_da_btree.o \ |
| 61 | xfs_dir2.o \ |
| 62 | xfs_dir2_block.o \ |
| 63 | xfs_dir2_data.o \ |
| 64 | xfs_dir2_leaf.o \ |
| 65 | xfs_dir2_node.o \ |
| 66 | xfs_dir2_sf.o \ |
| 67 | xfs_error.o \ |
| 68 | xfs_extfree_item.o \ |
| 69 | xfs_filestream.o \ |
| 70 | xfs_fsops.o \ |
| 71 | xfs_ialloc.o \ |
| 72 | xfs_ialloc_btree.o \ |
| 73 | xfs_iget.o \ |
| 74 | xfs_inode.o \ |
| 75 | xfs_inode_item.o \ |
| 76 | xfs_iomap.o \ |
| 77 | xfs_itable.o \ |
| 78 | xfs_dfrag.o \ |
| 79 | xfs_log.o \ |
Dave Chinner | 71e330b | 2010-05-21 14:37:18 +1000 | [diff] [blame] | 80 | xfs_log_cil.o \ |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 81 | xfs_log_recover.o \ |
| 82 | xfs_mount.o \ |
| 83 | xfs_mru_cache.o \ |
| 84 | xfs_rename.o \ |
| 85 | xfs_trans.o \ |
| 86 | xfs_trans_ail.o \ |
| 87 | xfs_trans_buf.o \ |
| 88 | xfs_trans_extfree.o \ |
| 89 | xfs_trans_inode.o \ |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 90 | xfs_utils.o \ |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 91 | xfs_vnodeops.o \ |
Christoph Hellwig | 288699f | 2010-06-23 18:11:15 +1000 | [diff] [blame] | 92 | xfs_rw.o |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 93 | |
Christoph Hellwig | 0b1b213 | 2009-12-14 23:14:59 +0000 | [diff] [blame] | 94 | xfs-$(CONFIG_XFS_TRACE) += xfs_btree_trace.o |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 95 | |
| 96 | # Objects in linux/ |
| 97 | xfs-y += $(addprefix $(XFS_LINUX)/, \ |
| 98 | kmem.o \ |
| 99 | xfs_aops.o \ |
| 100 | xfs_buf.o \ |
| 101 | xfs_export.o \ |
| 102 | xfs_file.o \ |
| 103 | xfs_fs_subr.o \ |
| 104 | xfs_globals.o \ |
| 105 | xfs_ioctl.o \ |
| 106 | xfs_iops.o \ |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 107 | xfs_super.o \ |
David Chinner | fe4fa4b | 2008-10-30 17:06:08 +1100 | [diff] [blame] | 108 | xfs_sync.o \ |
Lachlan McIlroy | 0ec5851 | 2008-06-23 13:23:01 +1000 | [diff] [blame] | 109 | xfs_xattr.o) |
Andi Kleen | 58b7983 | 2007-11-27 16:53:47 +1100 | [diff] [blame] | 110 | |
| 111 | # Objects in support/ |
| 112 | xfs-y += $(addprefix support/, \ |
| 113 | debug.o \ |
| 114 | uuid.o) |