]>
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 \
101 # -DIO_DEBUG reads and writes of buffers
102 # -DMEM_DEBUG all zone memory use
103 # -DLI_DEBUG log item (ino/buf) manipulation
104 # -DXACT_DEBUG transaction state changes
110 LTLIBS
= $(LIBPTHREAD
) $(LIBRT
)
112 # don't try linking xfs_repair with a debug libxfs.
115 default
: ltdepend
$(LTLIBRARY
)
117 # set up include/xfs header directory
118 include $(BUILDRULES
)
121 $(INSTALL
) -m
755 -d
$(PKG_INC_DIR
)
123 install-headers
: $(addsuffix -hdrs
, $(PKGHFILES
))
126 $(Q
)$(LN_S
) -f
$(CURDIR
)/$* $(TOPDIR
)/include/xfs
/$*
129 $(INSTALL
) -m
644 $(PKGHFILES
) $(PKG_INC_DIR
)
131 # We need to install the headers before building the dependencies. If we
132 # include the .ltdep file, the makefile decides that it needs to build the
133 # dependencies to remake the makefile before running the header install target,
134 # hence making it impossible to avoid errors being thrown by the dependency
135 # generation. Hence we play games so that we only include this file if we aren't
136 # running the install-headers target.