]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | # SPDX-License-Identifier: GPL-2.0 |
e80aa729 | 2 | # Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved. |
dfc130f3 | 3 | # |
2bd0ea18 NS |
4 | |
5 | TOPDIR = .. | |
6 | include $(TOPDIR)/include/builddefs | |
7 | ||
f937adac NS |
8 | LTLIBRARY = libxfs.la |
9 | LT_CURRENT = 0 | |
10 | LT_REVISION = 0 | |
11 | LT_AGE = 0 | |
825b7432 DC |
12 | # we need a static build even if --disable-static is specified |
13 | LTLDFLAGS += -static | |
fc49813f | 14 | |
636b4d91 DC |
15 | # headers to install in include/xfs |
16 | PKGHFILES = xfs_fs.h \ | |
5711848a | 17 | xfs_types.h \ |
77d98709 CH |
18 | xfs_da_format.h \ |
19 | xfs_format.h \ | |
20 | xfs_log_format.h | |
21 | ||
6b803e5a | 22 | HFILES = \ |
6bc3531c DW |
23 | libxfs_io.h \ |
24 | libxfs_api_defs.h \ | |
25 | init.h \ | |
26 | libxfs_priv.h \ | |
27 | topology.h \ | |
cf8ce220 | 28 | xfs_ag_resv.h \ |
77d98709 | 29 | xfs_alloc.h \ |
636b4d91 DC |
30 | xfs_alloc_btree.h \ |
31 | xfs_attr_leaf.h \ | |
32 | xfs_attr_sf.h \ | |
33 | xfs_bit.h \ | |
34 | xfs_bmap.h \ | |
35 | xfs_bmap_btree.h \ | |
36 | xfs_btree.h \ | |
af05bc9b | 37 | xfs_btree_staging.h \ |
636b4d91 DC |
38 | xfs_attr_remote.h \ |
39 | xfs_cksum.h \ | |
40 | xfs_da_btree.h \ | |
636b4d91 | 41 | xfs_dir2.h \ |
56d3fc2b | 42 | xfs_errortag.h \ |
636b4d91 DC |
43 | xfs_ialloc.h \ |
44 | xfs_ialloc_btree.h \ | |
45 | xfs_inode_buf.h \ | |
46 | xfs_inode_fork.h \ | |
636b4d91 | 47 | xfs_quota_defs.h \ |
bc859611 | 48 | xfs_refcount.h \ |
d8079fe0 | 49 | xfs_refcount_btree.h \ |
85aec44f | 50 | xfs_rmap.h \ |
631ac87a | 51 | xfs_rmap_btree.h \ |
636b4d91 DC |
52 | xfs_sb.h \ |
53 | xfs_shared.h \ | |
54 | xfs_trans_resv.h \ | |
b626fb59 | 55 | xfs_trans_space.h \ |
77d98709 CH |
56 | xfs_dir2_priv.h |
57 | ||
4896e6c8 | 58 | CFILES = cache.c \ |
dc3bce02 | 59 | defer_item.c \ |
4071f725 DC |
60 | init.c \ |
61 | kmem.c \ | |
62 | logitem.c \ | |
4071f725 | 63 | rdwr.c \ |
6bc3531c | 64 | topology.c \ |
4071f725 DC |
65 | trans.c \ |
66 | util.c \ | |
971ce259 | 67 | xfs_ag.c \ |
cf8ce220 | 68 | xfs_ag_resv.c \ |
5d90ab5a DC |
69 | xfs_alloc.c \ |
70 | xfs_alloc_btree.c \ | |
4896e6c8 | 71 | xfs_attr.c \ |
88cd79be | 72 | xfs_attr_leaf.c \ |
4896e6c8 | 73 | xfs_attr_remote.c \ |
4071f725 | 74 | xfs_bit.c \ |
88cd79be DC |
75 | xfs_bmap.c \ |
76 | xfs_bmap_btree.c \ | |
5d90ab5a | 77 | xfs_btree.c \ |
af05bc9b | 78 | xfs_btree_staging.c \ |
88cd79be | 79 | xfs_da_btree.c \ |
a18e1f79 | 80 | xfs_defer.c \ |
88cd79be DC |
81 | xfs_dir2.c \ |
82 | xfs_dir2_block.c \ | |
83 | xfs_dir2_data.c \ | |
84 | xfs_dir2_leaf.c \ | |
85 | xfs_dir2_node.c \ | |
86 | xfs_dir2_sf.c \ | |
32390f05 | 87 | xfs_dquot_buf.c \ |
5d90ab5a | 88 | xfs_ialloc.c \ |
b37d753d | 89 | xfs_iext_tree.c \ |
1d519883 | 90 | xfs_inode_buf.c \ |
5d90ab5a | 91 | xfs_inode_fork.c \ |
88cd79be DC |
92 | xfs_ialloc_btree.c \ |
93 | xfs_log_rlimit.c \ | |
bc859611 | 94 | xfs_refcount.c \ |
d8079fe0 | 95 | xfs_refcount_btree.c \ |
631ac87a | 96 | xfs_rmap.c \ |
b3a96b46 | 97 | xfs_rmap_btree.c \ |
2ceff9ce | 98 | xfs_rtbitmap.c \ |
4896e6c8 | 99 | xfs_sb.c \ |
270b1db1 | 100 | xfs_symlink_remote.c \ |
5539639c | 101 | xfs_trans_inode.c \ |
1727fd17 DC |
102 | xfs_trans_resv.c \ |
103 | xfs_types.c | |
9440d84d | 104 | |
dfc130f3 | 105 | # |
2bd0ea18 | 106 | # Tracing flags: |
2bd0ea18 NS |
107 | # -DMEM_DEBUG all zone memory use |
108 | # -DLI_DEBUG log item (ino/buf) manipulation | |
109 | # -DXACT_DEBUG transaction state changes | |
dfc130f3 | 110 | # |
8d9f1b15 | 111 | #LCFLAGS += |
1bdd986b NS |
112 | |
113 | FCFLAGS = -I. | |
2bd0ea18 | 114 | |
717e6142 AM |
115 | LTLIBS = $(LIBPTHREAD) $(LIBRT) |
116 | ||
fc49813f NS |
117 | # don't try linking xfs_repair with a debug libxfs. |
118 | DEBUG = -DNDEBUG | |
119 | ||
973de649 | 120 | default: ltdepend $(LTLIBRARY) |
2bd0ea18 | 121 | |
636b4d91 | 122 | # set up include/xfs header directory |
2bd0ea18 NS |
123 | include $(BUILDRULES) |
124 | ||
125 | install: default | |
b08338d7 DC |
126 | $(INSTALL) -m 755 -d $(PKG_INC_DIR) |
127 | ||
6b803e5a | 128 | install-headers: $(addsuffix -hdrs, $(PKGHFILES)) |
b08338d7 DC |
129 | |
130 | %-hdrs: | |
f4a2ea00 | 131 | $(Q)$(LN_S) -f $(CURDIR)/$* $(TOPDIR)/include/xfs/$* |
fc49813f | 132 | |
636b4d91 | 133 | install-dev: install |
61e2fa77 | 134 | $(INSTALL) -m 644 $(PKGHFILES) $(PKG_INC_DIR) |
5e656dbb | 135 | |
b08338d7 DC |
136 | # We need to install the headers before building the dependencies. If we |
137 | # include the .ltdep file, the makefile decides that it needs to build the | |
138 | # dependencies to remake the makefile before running the header install target, | |
139 | # hence making it impossible to avoid errors being thrown by the dependency | |
140 | # generation. Hence we play games so that we only include this file if we aren't | |
141 | # running the install-headers target. | |
142 | ifndef NODEP | |
932b0ba9 | 143 | -include .ltdep |
b08338d7 | 144 | endif |