From 732056e3d3a35fad43515d5d7a87dc8572ae097e Mon Sep 17 00:00:00 2001 From: David Sterba Date: Mon, 30 Jan 2017 11:04:16 +0100 Subject: btrfs-progs: build: split makefile to generated and stable parts It's not really necessary to configure and regenerate Makefiles in cases like adding a new source file. The build environment and optional features are not affected by that. Signed-off-by: David Sterba --- Makefile.inc.in | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Makefile.inc.in (limited to 'Makefile.inc.in') diff --git a/Makefile.inc.in b/Makefile.inc.in new file mode 100644 index 00000000..4e1b68cb --- /dev/null +++ b/Makefile.inc.in @@ -0,0 +1,36 @@ +# Variables set during configure phase: +# * build environment, paths +# * features (eg. convert, documentation) +export + +CC = @CC@ +LN_S = @LN_S@ +AR = @AR@ +RM = @RM@ +RMDIR = @RMDIR@ +INSTALL = @INSTALL@ +DISABLE_DOCUMENTATION = @DISABLE_DOCUMENTATION@ +DISABLE_BTRFSCONVERT = @DISABLE_BTRFSCONVERT@ +BTRFSCONVERT_EXT2 = @BTRFSCONVERT_EXT2@ + +SUBST_CFLAGS = @CFLAGS@ +SUBST_LDFLAGS = @LDFLAGS@ + +LIBS_BASE = @UUID_LIBS@ @BLKID_LIBS@ -L. -pthread +LIBS_COMP = @ZLIB_LIBS@ @LZO2_LIBS@ +STATIC_LIBS_BASE = @UUID_LIBS_STATIC@ @BLKID_LIBS_STATIC@ -L. -pthread +STATIC_LIBS_COMP = @ZLIB_LIBS_STATIC@ @LZO2_LIBS_STATIC@ + +prefix ?= @prefix@ +exec_prefix = @exec_prefix@ +bindir = @bindir@ +libdir ?= @libdir@ +incdir = @includedir@/btrfs +udevdir = @UDEVDIR@ +udevruledir = ${udevdir}/rules.d + +# external libs required by various binaries; for btrfs-foo, +# specify btrfs_foo_libs = ; see $($(subst...)) rules in Makefile +btrfs_convert_libs = @EXT2FS_LIBS@ @COM_ERR_LIBS@ + +MAKEFILE_INC_INCLUDED = yes -- cgit v1.2.3