Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 1 | # |
Nathan Scott | bb19fba | 2006-03-22 14:12:12 +1100 | [diff] [blame] | 2 | # Copyright (c) 2000-2005 Silicon Graphics, Inc. |
| 3 | # All Rights Reserved. |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 4 | # |
Nathan Scott | bb19fba | 2006-03-22 14:12:12 +1100 | [diff] [blame] | 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 |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 7 | # published by the Free Software Foundation. |
| 8 | # |
Nathan Scott | bb19fba | 2006-03-22 14:12:12 +1100 | [diff] [blame] | 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. |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 13 | # |
Nathan Scott | bb19fba | 2006-03-22 14:12:12 +1100 | [diff] [blame] | 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 |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 17 | # |
| 18 | |
| 19 | EXTRA_CFLAGS += -Ifs/xfs -Ifs/xfs/linux-2.6 -funsigned-char |
| 20 | |
| 21 | XFS_LINUX := linux-2.6 |
| 22 | |
| 23 | ifeq ($(CONFIG_XFS_DEBUG),y) |
Vlad Apostolov | 93c189c | 2006-11-11 18:03:49 +1100 | [diff] [blame] | 24 | EXTRA_CFLAGS += -g |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 25 | endif |
| 26 | |
| 27 | obj-$(CONFIG_XFS_FS) += xfs.o |
Nathan Scott | c9fc0d6 | 2005-09-09 11:38:09 +1000 | [diff] [blame] | 28 | |
| 29 | xfs-$(CONFIG_XFS_QUOTA) += $(addprefix quota/, \ |
| 30 | xfs_dquot.o \ |
| 31 | xfs_dquot_item.o \ |
| 32 | xfs_trans_dquot.o \ |
| 33 | xfs_qm_syscalls.o \ |
| 34 | xfs_qm_bhv.o \ |
| 35 | xfs_qm.o) |
| 36 | |
| 37 | ifeq ($(CONFIG_XFS_QUOTA),y) |
| 38 | xfs-$(CONFIG_PROC_FS) += quota/xfs_qm_stats.o |
| 39 | endif |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 40 | |
| 41 | xfs-$(CONFIG_XFS_RT) += xfs_rtalloc.o |
| 42 | xfs-$(CONFIG_XFS_POSIX_ACL) += xfs_acl.o |
| 43 | xfs-$(CONFIG_PROC_FS) += $(XFS_LINUX)/xfs_stats.o |
| 44 | xfs-$(CONFIG_SYSCTL) += $(XFS_LINUX)/xfs_sysctl.o |
| 45 | xfs-$(CONFIG_COMPAT) += $(XFS_LINUX)/xfs_ioctl32.o |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 46 | |
| 47 | |
| 48 | xfs-y += xfs_alloc.o \ |
| 49 | xfs_alloc_btree.o \ |
| 50 | xfs_attr.o \ |
| 51 | xfs_attr_leaf.o \ |
| 52 | xfs_behavior.o \ |
| 53 | xfs_bit.o \ |
| 54 | xfs_bmap.o \ |
| 55 | xfs_bmap_btree.o \ |
| 56 | xfs_btree.o \ |
| 57 | xfs_buf_item.o \ |
| 58 | xfs_da_btree.o \ |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 59 | xfs_dir2.o \ |
| 60 | xfs_dir2_block.o \ |
| 61 | xfs_dir2_data.o \ |
| 62 | xfs_dir2_leaf.o \ |
| 63 | xfs_dir2_node.o \ |
| 64 | xfs_dir2_sf.o \ |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 65 | xfs_error.o \ |
| 66 | xfs_extfree_item.o \ |
David Chinner | 2a82b8b | 2007-07-11 11:09:12 +1000 | [diff] [blame] | 67 | xfs_filestream.o \ |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 68 | xfs_fsops.o \ |
| 69 | xfs_ialloc.o \ |
| 70 | xfs_ialloc_btree.o \ |
| 71 | xfs_iget.o \ |
| 72 | xfs_inode.o \ |
| 73 | xfs_inode_item.o \ |
| 74 | xfs_iocore.o \ |
| 75 | xfs_iomap.o \ |
| 76 | xfs_itable.o \ |
| 77 | xfs_dfrag.o \ |
| 78 | xfs_log.o \ |
| 79 | xfs_log_recover.o \ |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 80 | xfs_mount.o \ |
David Chinner | 2a82b8b | 2007-07-11 11:09:12 +1000 | [diff] [blame] | 81 | xfs_mru_cache.o \ |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 82 | xfs_rename.o \ |
| 83 | xfs_trans.o \ |
| 84 | xfs_trans_ail.o \ |
| 85 | xfs_trans_buf.o \ |
| 86 | xfs_trans_extfree.o \ |
| 87 | xfs_trans_inode.o \ |
| 88 | xfs_trans_item.o \ |
| 89 | xfs_utils.o \ |
| 90 | xfs_vfsops.o \ |
| 91 | xfs_vnodeops.o \ |
| 92 | xfs_rw.o \ |
| 93 | xfs_dmops.o \ |
| 94 | xfs_qmops.o |
| 95 | |
| 96 | xfs-$(CONFIG_XFS_TRACE) += xfs_dir2_trace.o |
| 97 | |
| 98 | # Objects in linux/ |
| 99 | xfs-y += $(addprefix $(XFS_LINUX)/, \ |
| 100 | kmem.o \ |
| 101 | xfs_aops.o \ |
| 102 | xfs_buf.o \ |
Nathan Scott | d7b849d | 2006-06-20 14:01:29 +1000 | [diff] [blame] | 103 | xfs_export.o \ |
Nathan Scott | cde410a | 2005-09-05 11:47:01 +1000 | [diff] [blame] | 104 | xfs_file.o \ |
| 105 | xfs_fs_subr.o \ |
| 106 | xfs_globals.o \ |
| 107 | xfs_ioctl.o \ |
| 108 | xfs_iops.o \ |
| 109 | xfs_lrw.o \ |
| 110 | xfs_super.o \ |
| 111 | xfs_vfs.o \ |
| 112 | xfs_vnode.o) |
| 113 | |
| 114 | # Objects in support/ |
| 115 | xfs-y += $(addprefix support/, \ |
| 116 | debug.o \ |
| 117 | move.o \ |
| 118 | uuid.o) |
| 119 | |
| 120 | xfs-$(CONFIG_XFS_TRACE) += support/ktrace.o |
| 121 | |