]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - libxfs/Makefile
xfsprogs: Release v6.7.0
[thirdparty/xfsprogs-dev.git] / libxfs / Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
3 #
4
5 TOPDIR = ..
6 include $(TOPDIR)/include/builddefs
7
8 LTLIBRARY = libxfs.la
9 LT_CURRENT = 0
10 LT_REVISION = 0
11 LT_AGE = 0
12
13 # headers to install in include/xfs
14 PKGHFILES = xfs_fs.h \
15 xfs_types.h \
16 xfs_da_format.h \
17 xfs_format.h \
18 xfs_log_format.h
19
20 HFILES = \
21 xfs_ag_resv.h \
22 xfs_alloc.h \
23 xfs_alloc_btree.h \
24 xfs_attr_leaf.h \
25 xfs_attr_sf.h \
26 xfs_bit.h \
27 xfs_bmap.h \
28 xfs_bmap_btree.h \
29 xfs_btree.h \
30 xfs_attr_remote.h \
31 xfs_cksum.h \
32 xfs_da_btree.h \
33 xfs_dir2.h \
34 xfs_errortag.h \
35 xfs_ialloc.h \
36 xfs_ialloc_btree.h \
37 xfs_inode_buf.h \
38 xfs_inode_fork.h \
39 xfs_quota_defs.h \
40 xfs_refcount.h \
41 xfs_refcount_btree.h \
42 xfs_rmap.h \
43 xfs_rmap_btree.h \
44 xfs_sb.h \
45 xfs_shared.h \
46 xfs_trans_resv.h \
47 xfs_trans_space.h \
48 libxfs_io.h \
49 libxfs_api_defs.h \
50 init.h \
51 libxfs_priv.h \
52 xfs_dir2_priv.h
53
54 CFILES = cache.c \
55 defer_item.c \
56 init.c \
57 kmem.c \
58 logitem.c \
59 rdwr.c \
60 trans.c \
61 util.c \
62 xfs_ag.c \
63 xfs_ag_resv.c \
64 xfs_alloc.c \
65 xfs_alloc_btree.c \
66 xfs_attr.c \
67 xfs_attr_leaf.c \
68 xfs_attr_remote.c \
69 xfs_bit.c \
70 xfs_bmap.c \
71 xfs_bmap_btree.c \
72 xfs_btree.c \
73 xfs_da_btree.c \
74 xfs_da_format.c \
75 xfs_defer.c \
76 xfs_dir2.c \
77 xfs_dir2_block.c \
78 xfs_dir2_data.c \
79 xfs_dir2_leaf.c \
80 xfs_dir2_node.c \
81 xfs_dir2_sf.c \
82 xfs_dquot_buf.c \
83 xfs_ialloc.c \
84 xfs_iext_tree.c \
85 xfs_inode_buf.c \
86 xfs_inode_fork.c \
87 xfs_ialloc_btree.c \
88 xfs_log_rlimit.c \
89 xfs_refcount.c \
90 xfs_refcount_btree.c \
91 xfs_rmap.c \
92 xfs_rmap_btree.c \
93 xfs_rtbitmap.c \
94 xfs_sb.c \
95 xfs_symlink_remote.c \
96 xfs_trans_inode.c \
97 xfs_trans_resv.c \
98 xfs_types.c
99
100 #
101 # Tracing flags:
102 # -DIO_DEBUG reads and writes of buffers
103 # -DMEM_DEBUG all zone memory use
104 # -DLI_DEBUG log item (ino/buf) manipulation
105 # -DXACT_DEBUG transaction state changes
106 #
107 #LCFLAGS +=
108
109 FCFLAGS = -I.
110
111 LTLIBS = $(LIBPTHREAD) $(LIBRT)
112
113 # don't try linking xfs_repair with a debug libxfs.
114 DEBUG = -DNDEBUG
115
116 default: ltdepend $(LTLIBRARY)
117
118 # set up include/xfs header directory
119 include $(BUILDRULES)
120
121 install: default
122 $(INSTALL) -m 755 -d $(PKG_INC_DIR)
123
124 install-headers: $(addsuffix -hdrs, $(PKGHFILES))
125
126 %-hdrs:
127 $(Q)$(LN_S) -f $(CURDIR)/$* $(TOPDIR)/include/xfs/$*
128
129 install-dev: install
130 $(INSTALL) -m 644 $(PKGHFILES) $(PKG_INC_DIR)
131
132 # We need to install the headers before building the dependencies. If we
133 # include the .ltdep file, the makefile decides that it needs to build the
134 # dependencies to remake the makefile before running the header install target,
135 # hence making it impossible to avoid errors being thrown by the dependency
136 # generation. Hence we play games so that we only include this file if we aren't
137 # running the install-headers target.
138 ifndef NODEP
139 -include .ltdep
140 endif