]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - libxfs/Makefile
1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (c) 2000-2006 Silicon Graphics, Inc. All Rights Reserved.
6 include $(TOPDIR
)/include/builddefs
13 # headers to install in include/xfs
14 PKGHFILES
= xfs_fs.h \
41 xfs_refcount_btree.h \
90 xfs_refcount_btree.c \
95 xfs_symlink_remote.c \
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
111 LTLIBS
= $(LIBPTHREAD
) $(LIBRT
)
113 # don't try linking xfs_repair with a debug libxfs.
116 default
: ltdepend
$(LTLIBRARY
)
118 # set up include/xfs header directory
119 include $(BUILDRULES
)
122 $(INSTALL
) -m
755 -d
$(PKG_INC_DIR
)
124 install-headers
: $(addsuffix -hdrs
, $(PKGHFILES
))
127 $(Q
)$(LN_S
) -f
$(CURDIR
)/$* $(TOPDIR
)/include/xfs
/$*
130 $(INSTALL
) -m
644 $(PKGHFILES
) $(PKG_INC_DIR
)
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.