2017-01-30 10:04:16 +00:00
|
|
|
# Variables set during configure phase:
|
|
|
|
# * build environment, paths
|
|
|
|
# * features (eg. convert, documentation)
|
|
|
|
export
|
|
|
|
|
|
|
|
CC = @CC@
|
2018-04-30 14:37:08 +00:00
|
|
|
CSTD = @BTRFS_CSTD_FLAGS@
|
2017-01-30 10:04:16 +00:00
|
|
|
LN_S = @LN_S@
|
|
|
|
AR = @AR@
|
|
|
|
RM = @RM@
|
|
|
|
RMDIR = @RMDIR@
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
DISABLE_DOCUMENTATION = @DISABLE_DOCUMENTATION@
|
|
|
|
DISABLE_BTRFSCONVERT = @DISABLE_BTRFSCONVERT@
|
2018-07-26 20:34:38 +00:00
|
|
|
BUILD_PROGRAMS = @BUILD_PROGRAMS@
|
2018-07-26 20:34:39 +00:00
|
|
|
BUILD_SHARED_LIBRARIES = @BUILD_SHARED_LIBRARIES@
|
|
|
|
BUILD_STATIC_LIBRARIES = @BUILD_STATIC_LIBRARIES@
|
2017-01-30 10:04:16 +00:00
|
|
|
BTRFSCONVERT_EXT2 = @BTRFSCONVERT_EXT2@
|
2017-08-22 16:30:43 +00:00
|
|
|
BTRFSCONVERT_REISERFS = @BTRFSCONVERT_REISERFS@
|
2017-09-08 20:29:23 +00:00
|
|
|
BTRFSRESTORE_ZSTD = @BTRFSRESTORE_ZSTD@
|
2017-12-18 08:31:25 +00:00
|
|
|
PYTHON_BINDINGS = @PYTHON_BINDINGS@
|
|
|
|
PYTHON = @PYTHON@
|
2018-02-27 15:19:51 +00:00
|
|
|
PYTHON_CFLAGS = @PYTHON_CFLAGS@
|
2020-04-06 19:02:56 +00:00
|
|
|
CRYPTOPROVIDER_BUILTIN = @CRYPTOPROVIDER_BUILTIN@
|
2020-05-28 20:39:43 +00:00
|
|
|
CRYPTO_CFLAGS = @GCRYPT_CFLAGS@ @SODIUM_CFLAGS@ @KCAPI_CFLAGS@
|
2017-01-30 10:04:16 +00:00
|
|
|
|
|
|
|
SUBST_CFLAGS = @CFLAGS@
|
|
|
|
SUBST_LDFLAGS = @LDFLAGS@
|
|
|
|
|
2021-09-30 12:06:32 +00:00
|
|
|
LIBS_BASE = @UUID_LIBS@ @BLKID_LIBS@ @LIBUDEV_LIBS@ -L. -pthread
|
2017-09-08 20:29:23 +00:00
|
|
|
LIBS_COMP = @ZLIB_LIBS@ @LZO2_LIBS@ @ZSTD_LIBS@
|
2018-02-27 15:19:51 +00:00
|
|
|
LIBS_PYTHON = @PYTHON_LIBS@
|
2020-05-28 20:39:43 +00:00
|
|
|
LIBS_CRYPTO = @GCRYPT_LIBS@ @SODIUM_LIBS@ @KCAPI_LIBS@
|
2021-02-17 12:55:14 +00:00
|
|
|
STATIC_LIBS_BASE = @UUID_LIBS_STATIC@ @BLKID_LIBS_STATIC@ -L. -pthread
|
2017-09-08 20:29:23 +00:00
|
|
|
STATIC_LIBS_COMP = @ZLIB_LIBS_STATIC@ @LZO2_LIBS_STATIC@ @ZSTD_LIBS_STATIC@
|
2017-01-30 10:04:16 +00:00
|
|
|
|
|
|
|
prefix ?= @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
libdir ?= @libdir@
|
Add libbtrfsutil
Currently, users wishing to manage Btrfs filesystems programatically
have to shell out to btrfs-progs and parse the output. This isn't ideal.
The goal of libbtrfsutil is to provide a library version of as many of
the operations of btrfs-progs as possible and to migrate btrfs-progs to
use it.
Rather than simply refactoring the existing btrfs-progs code, the code
has to be written from scratch for a couple of reasons:
* A lot of the btrfs-progs code was not designed with a nice library API
in mind in terms of reusability, naming, and error reporting.
* libbtrfsutil is licensed under the LGPL, whereas btrfs-progs is under
the GPL, which makes it dubious to directly copy or move the code.
Eventually, most of the low-level btrfs-progs code should either live in
libbtrfsutil or the shared kernel/userspace filesystem code, and
btrfs-progs will just be the CLI wrapper.
This first commit just includes the build system changes, license,
README, and error reporting helper.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Reviewed-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-02-15 19:04:47 +00:00
|
|
|
incdir = @includedir@
|
2017-01-30 10:04:16 +00:00
|
|
|
udevdir = @UDEVDIR@
|
|
|
|
udevruledir = ${udevdir}/rules.d
|
2020-08-20 04:36:18 +00:00
|
|
|
pkgconfigdir = @pkgconfigdir@
|
2017-01-30 10:04:16 +00:00
|
|
|
|
|
|
|
# external libs required by various binaries; for btrfs-foo,
|
|
|
|
# specify btrfs_foo_libs = <list of libs>; see $($(subst...)) rules in Makefile
|
2017-08-22 16:30:43 +00:00
|
|
|
btrfs_convert_libs = @EXT2FS_LIBS@ @COM_ERR_LIBS@ @REISERFS_LIBS@
|
2017-01-30 10:04:16 +00:00
|
|
|
|
|
|
|
MAKEFILE_INC_INCLUDED = yes
|