mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
makefiles: correcting login of makefile
Fixing some ordering issue with inclusion of common make.tmpl.
Correcting dependency calculation
Simplifying inclusive makefile
(cherry picked from commit 94237354dd
)
This commit is contained in:
parent
8c5f520480
commit
7d14327dd2
15
Makefile.in
15
Makefile.in
@ -43,16 +43,22 @@ DISTCLEAN_TARGETS += config.cache config.log config.status make.tmpl
|
|||||||
|
|
||||||
include make.tmpl
|
include make.tmpl
|
||||||
|
|
||||||
|
include $(top_srcdir)/base/Makefile
|
||||||
|
include $(top_srcdir)/device_mapper/Makefile
|
||||||
|
include $(top_srcdir)/test/unit/Makefile
|
||||||
|
|
||||||
libdm: include
|
libdm: include
|
||||||
libdaemon: include
|
libdaemon: include
|
||||||
lib: libdm libdaemon
|
lib: libdaemon $(BASE_TARGET) $(DEVICE_MAPPER_TARGET)
|
||||||
daemons: lib libdaemon tools
|
daemons: lib libdaemon tools
|
||||||
tools: lib libdaemon device-mapper
|
scripts: lib
|
||||||
|
tools: lib libdaemon
|
||||||
po: tools daemons
|
po: tools daemons
|
||||||
man: tools
|
man: tools
|
||||||
all_man: tools
|
all_man: tools
|
||||||
scripts: libdm
|
scripts: libdm
|
||||||
test: tools daemons
|
test: tools daemons
|
||||||
|
unit-test run-unit-test: test
|
||||||
|
|
||||||
lib.device-mapper: include.device-mapper
|
lib.device-mapper: include.device-mapper
|
||||||
libdm.device-mapper: include.device-mapper
|
libdm.device-mapper: include.device-mapper
|
||||||
@ -174,11 +180,6 @@ endif
|
|||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# FIXME: Drop once top-level make is resolved
|
|
||||||
-include $(top_srcdir)/test/unit/Makefile
|
|
||||||
include $(top_srcdir)/device_mapper/Makefile
|
|
||||||
include $(top_srcdir)/base/Makefile
|
|
||||||
|
|
||||||
ifneq ($(shell which ctags 2>/dev/null),)
|
ifneq ($(shell which ctags 2>/dev/null),)
|
||||||
.PHONY: tags
|
.PHONY: tags
|
||||||
tags:
|
tags:
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# Comment to build the advanced radix tree.
|
# Comment to build the advanced radix tree.
|
||||||
#base/data-struct/radix-tree.o: CFLAGS += -DSIMPLE_RADIX_TREE
|
#base/data-struct/radix-tree.o: CFLAGS += -DSIMPLE_RADIX_TREE
|
||||||
|
|
||||||
# NOTE: this include only works as 'include' for toplevel Makefile
|
# NOTE: this Makefile only works as 'include' for toplevel Makefile
|
||||||
# which defined all top_* variables
|
# which defined all top_* variables
|
||||||
|
|
||||||
BASE_SOURCE=\
|
BASE_SOURCE=\
|
||||||
@ -22,24 +22,19 @@ BASE_SOURCE=\
|
|||||||
base/data-struct/list.c \
|
base/data-struct/list.c \
|
||||||
base/data-struct/radix-tree.c
|
base/data-struct/radix-tree.c
|
||||||
|
|
||||||
|
BASE_TARGET = base/libbase.a
|
||||||
BASE_DEPENDS = $(BASE_SOURCE:%.c=%.d)
|
BASE_DEPENDS = $(BASE_SOURCE:%.c=%.d)
|
||||||
BASE_OBJECTS = $(BASE_SOURCE:%.c=%.o)
|
BASE_OBJECTS = $(BASE_SOURCE:%.c=%.o)
|
||||||
CLEAN_TARGETS += $(BASE_DEPENDS) $(BASE_OBJECTS) \
|
CLEAN_TARGETS += $(BASE_DEPENDS) $(BASE_OBJECTS) \
|
||||||
$(BASE_SOURCE:%.c=%.gcda) \
|
$(BASE_SOURCE:%.c=%.gcda) \
|
||||||
$(BASE_SOURCE:%.c=%.gcno)
|
$(BASE_SOURCE:%.c=%.gcno) \
|
||||||
|
$(BASE_TARGET)
|
||||||
|
|
||||||
ifeq ("$(USE_TRACKING)","yes")
|
$(BASE_TARGET): $(BASE_OBJECTS)
|
||||||
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov lcov-reset \
|
|
||||||
help check check_local check_cluster check_lvmetad check_lvmpolld))
|
|
||||||
-include $(BASE_DEPENDS)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(BASE_OBJECTS): INCLUDES+=-I$(top_srcdir)/base/
|
|
||||||
|
|
||||||
base/libbase.a: $(BASE_OBJECTS)
|
|
||||||
@echo " [AR] $@"
|
@echo " [AR] $@"
|
||||||
$(Q) $(RM) $@
|
$(Q) $(RM) $@
|
||||||
$(Q) $(AR) rsv $@ $(BASE_OBJECTS) > /dev/null
|
$(Q) $(AR) rsv $@ $(BASE_OBJECTS) > /dev/null
|
||||||
|
|
||||||
CLEAN_TARGETS += base/libbase.a
|
ifeq ("$(DEPENDS)","yes")
|
||||||
|
-include $(BASE_DEPENDS)
|
||||||
|
endif
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# along with this program; if not, write to the Free Software Foundation,
|
# along with this program; if not, write to the Free Software Foundation,
|
||||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
# NOTE: this include only works as 'include' for toplevel Makefile
|
# NOTE: this Makefile only works as 'include' for toplevel Makefile
|
||||||
# which defined all top_* variables
|
# which defined all top_* variables
|
||||||
|
|
||||||
DEVICE_MAPPER_SOURCE=\
|
DEVICE_MAPPER_SOURCE=\
|
||||||
@ -31,27 +31,22 @@ DEVICE_MAPPER_SOURCE=\
|
|||||||
device_mapper/vdo/status.c \
|
device_mapper/vdo/status.c \
|
||||||
device_mapper/vdo/vdo_target.c
|
device_mapper/vdo/vdo_target.c
|
||||||
|
|
||||||
|
DEVICE_MAPPER_TARGET = device_mapper/libdevice-mapper.a
|
||||||
DEVICE_MAPPER_DEPENDS = $(DEVICE_MAPPER_SOURCE:%.c=%.d)
|
DEVICE_MAPPER_DEPENDS = $(DEVICE_MAPPER_SOURCE:%.c=%.d)
|
||||||
DEVICE_MAPPER_OBJECTS = $(DEVICE_MAPPER_SOURCE:%.c=%.o)
|
DEVICE_MAPPER_OBJECTS = $(DEVICE_MAPPER_SOURCE:%.c=%.o)
|
||||||
CLEAN_TARGETS += $(DEVICE_MAPPER_DEPENDS) $(DEVICE_MAPPER_OBJECTS) \
|
CLEAN_TARGETS += $(DEVICE_MAPPER_DEPENDS) $(DEVICE_MAPPER_OBJECTS) \
|
||||||
$(DEVICE_MAPPER_SOURCE:%.c=%.gcda) \
|
$(DEVICE_MAPPER_SOURCE:%.c=%.gcda) \
|
||||||
$(DEVICE_MAPPER_SOURCE:%.c=%.gcno)
|
$(DEVICE_MAPPER_SOURCE:%.c=%.gcno) \
|
||||||
|
$(DEVICE_MAPPER_TARGET)
|
||||||
|
|
||||||
#$(DEVICE_MAPPER_DEPENDS): INCLUDES+=$(VDO_INCLUDES)
|
#$(DEVICE_MAPPER_DEPENDS): INCLUDES+=$(VDO_INCLUDES)
|
||||||
#$(DEVICE_MAPPER_OBJECTS): INCLUDES+=$(VDO_INCLUDES)
|
#$(DEVICE_MAPPER_OBJECTS): INCLUDES+=$(VDO_INCLUDES)
|
||||||
|
|
||||||
ifeq ("$(USE_TRACKING)","yes")
|
$(DEVICE_MAPPER_TARGET): $(DEVICE_MAPPER_OBJECTS)
|
||||||
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov lcov-reset \
|
|
||||||
help check check_local check_cluster check_lvmetad check_lvmpolld))
|
|
||||||
-include $(DEVICE_MAPPER_DEPENDS)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(DEVICE_MAPPER_OBJECTS): INCLUDES+=-I$(top_srcdir)/device_mapper/
|
|
||||||
|
|
||||||
device_mapper/libdevice-mapper.a: $(DEVICE_MAPPER_OBJECTS)
|
|
||||||
@echo " [AR] $@"
|
@echo " [AR] $@"
|
||||||
$(Q) $(RM) $@
|
$(Q) $(RM) $@
|
||||||
$(Q) $(AR) rsv $@ $(DEVICE_MAPPER_OBJECTS) > /dev/null
|
$(Q) $(AR) rsv $@ $(DEVICE_MAPPER_OBJECTS) > /dev/null
|
||||||
|
|
||||||
CLEAN_TARGETS += device_mapper/libdevice-mapper.a
|
ifeq ("$(DEPENDS)","yes")
|
||||||
|
-include $(DEVICE_MAPPER_DEPENDS)
|
||||||
|
endif
|
||||||
|
@ -58,7 +58,7 @@ include $(top_builddir)/libdm/make.tmpl
|
|||||||
|
|
||||||
PROGS_CFLAGS = $(UDEV_CFLAGS)
|
PROGS_CFLAGS = $(UDEV_CFLAGS)
|
||||||
|
|
||||||
LIBS += $(RT_LIBS) $(SELINUX_LIBS) $(UDEV_LIBS) $(PTHREAD_LIBS) $(M_LIBS)
|
LIBS += $(SELINUX_LIBS) $(UDEV_LIBS) $(PTHREAD_LIBS) $(RT_LIBS) $(M_LIBS)
|
||||||
|
|
||||||
device-mapper: all
|
device-mapper: all
|
||||||
|
|
||||||
|
26
make.tmpl.in
26
make.tmpl.in
@ -72,9 +72,6 @@ CLDFLAGS += @CLDFLAGS@
|
|||||||
ELDFLAGS += @ELDFLAGS@
|
ELDFLAGS += @ELDFLAGS@
|
||||||
LDDEPS += @LDDEPS@
|
LDDEPS += @LDDEPS@
|
||||||
LIB_SUFFIX = @LIB_SUFFIX@
|
LIB_SUFFIX = @LIB_SUFFIX@
|
||||||
LVMINTERNAL_LIBS=\
|
|
||||||
-llvm-internal \
|
|
||||||
$(DAEMON_LIBS) $(DMEVENT_LIBS) $(SYSTEMD_LIBS) $(UDEV_LIBS) $(BLKID_LIBS)
|
|
||||||
DL_LIBS = @DL_LIBS@
|
DL_LIBS = @DL_LIBS@
|
||||||
RT_LIBS = @RT_LIBS@
|
RT_LIBS = @RT_LIBS@
|
||||||
M_LIBS = @M_LIBS@
|
M_LIBS = @M_LIBS@
|
||||||
@ -266,13 +263,6 @@ endif
|
|||||||
# end of fPIC protection
|
# end of fPIC protection
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDFLAGS += -L$(top_builddir)/lib
|
|
||||||
CLDFLAGS += -L$(top_builddir)/lib
|
|
||||||
|
|
||||||
DAEMON_LIBS = -ldaemonclient
|
|
||||||
LDFLAGS += -L$(top_builddir)/libdaemon/client
|
|
||||||
CLDFLAGS += -L$(top_builddir)/libdaemon/client
|
|
||||||
|
|
||||||
ifeq ("@BUILD_DMEVENTD@", "yes")
|
ifeq ("@BUILD_DMEVENTD@", "yes")
|
||||||
DMEVENT_LIBS = -ldevmapper-event
|
DMEVENT_LIBS = -ldevmapper-event
|
||||||
LDFLAGS += -L$(top_builddir)/daemons/dmeventd
|
LDFLAGS += -L$(top_builddir)/daemons/dmeventd
|
||||||
@ -338,11 +328,13 @@ SUBDIRS.distclean := $(SUBDIRS:=.distclean)
|
|||||||
|
|
||||||
TARGETS += $(LIB_SHARED) $(LIB_STATIC)
|
TARGETS += $(LIB_SHARED) $(LIB_STATIC)
|
||||||
|
|
||||||
INTERNAL_LIBS=\
|
INTERNAL_LIBS = \
|
||||||
|
$(top_builddir)/libdaemon/client/libdaemonclient.a \
|
||||||
$(top_builddir)/device_mapper/libdevice-mapper.a \
|
$(top_builddir)/device_mapper/libdevice-mapper.a \
|
||||||
$(top_builddir)/base/libbase.a
|
$(top_builddir)/base/libbase.a
|
||||||
|
LVMINTERNAL_LIBS = $(top_builddir)/lib/liblvm-internal.a $(INTERNAL_LIBS)
|
||||||
all: $(INTERNAL_LIBS) $(SUBDIRS) $(TARGETS)
|
|
||||||
|
all: $(SUBDIRS) $(TARGETS)
|
||||||
|
|
||||||
install: all $(SUBDIRS.install)
|
install: all $(SUBDIRS.install)
|
||||||
install_cluster: all $(SUBDIRS.install_cluster)
|
install_cluster: all $(SUBDIRS.install_cluster)
|
||||||
@ -351,7 +343,7 @@ install_lvm2: $(SUBDIRS.install_lvm2)
|
|||||||
install_ocf: $(SUBDIRS.install_ocf)
|
install_ocf: $(SUBDIRS.install_ocf)
|
||||||
cflow: $(SUBDIRS.cflow)
|
cflow: $(SUBDIRS.cflow)
|
||||||
|
|
||||||
$(SUBDIRS): $(SUBDIRS.device-mapper) $(INTERNAL_LIBS)
|
$(SUBDIRS): $(SUBDIRS.device-mapper)
|
||||||
$(MAKE) -C $@
|
$(MAKE) -C $@
|
||||||
|
|
||||||
$(SUBDIRS.device-mapper):
|
$(SUBDIRS.device-mapper):
|
||||||
@ -577,13 +569,15 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ("$(USE_TRACKING)","yes")
|
ifeq ("$(USE_TRACKING)","yes")
|
||||||
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov \
|
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov lcov-reset \
|
||||||
help check check_local check_cluster check_lvmpolld))
|
help check check_local check_cluster check_lvmpolld run-unit-test tags))
|
||||||
|
# Note: no tabs before -include
|
||||||
ifdef SOURCES
|
ifdef SOURCES
|
||||||
-include $(SOURCES:.c=.d) $(CXXSOURCES:.cpp=.d)
|
-include $(SOURCES:.c=.d) $(CXXSOURCES:.cpp=.d)
|
||||||
endif
|
endif
|
||||||
ifdef SOURCES2
|
ifdef SOURCES2
|
||||||
-include $(SOURCES2:.c=.d)
|
-include $(SOURCES2:.c=.d)
|
||||||
endif
|
endif
|
||||||
|
DEPENDS = yes
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
@ -76,9 +76,9 @@ endif
|
|||||||
|
|
||||||
CFLAGS_lvm2_activation_generator_systemd_red_hat.o += $(EXTRA_EXEC_CFLAGS)
|
CFLAGS_lvm2_activation_generator_systemd_red_hat.o += $(EXTRA_EXEC_CFLAGS)
|
||||||
|
|
||||||
lvm2_activation_generator_systemd_red_hat: $(OBJECTS) $(DEPLIBS) $(INTERNAL_LIBS)
|
lvm2_activation_generator_systemd_red_hat: $(OBJECTS) $(LVMINTERNAL_LIBS)
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
$(Q) $(CC) -o $@ $(OBJECTS) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) $(LVMLIBS) $(INTERNAL_LIBS) $(LIBS)
|
$(Q) $(CC) -o $@ $(OBJECTS) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) $(LVMINTERNAL_LIBS) $(LIBS)
|
||||||
|
|
||||||
install_systemd_generators:
|
install_systemd_generators:
|
||||||
@echo " [INSTALL] $<"
|
@echo " [INSTALL] $<"
|
||||||
|
@ -10,6 +10,9 @@
|
|||||||
# along with this program; if not, write to the Free Software Foundation,
|
# along with this program; if not, write to the Free Software Foundation,
|
||||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
# NOTE: this Makefile only works as 'include' for toplevel Makefile
|
||||||
|
# which defined all top_* variables
|
||||||
|
|
||||||
UNIT_SOURCE=\
|
UNIT_SOURCE=\
|
||||||
device_mapper/vdo/status.c \
|
device_mapper/vdo/status.c \
|
||||||
\
|
\
|
||||||
@ -31,27 +34,25 @@ UNIT_SOURCE=\
|
|||||||
|
|
||||||
test/unit/radix_tree_t.o: test/unit/rt_case1.c
|
test/unit/radix_tree_t.o: test/unit/rt_case1.c
|
||||||
|
|
||||||
|
UNIT_TARGET = test/unit/unit-test
|
||||||
UNIT_DEPENDS = $(UNIT_SOURCE:%.c=%.d)
|
UNIT_DEPENDS = $(UNIT_SOURCE:%.c=%.d)
|
||||||
UNIT_OBJECTS = $(UNIT_SOURCE:%.c=%.o)
|
UNIT_OBJECTS = $(UNIT_SOURCE:%.c=%.o)
|
||||||
CLEAN_TARGETS += $(UNIT_DEPENDS) $(UNIT_OBJECTS) \
|
CLEAN_TARGETS += $(UNIT_DEPENDS) $(UNIT_OBJECTS) \
|
||||||
$(UNIT_SOURCE:%.c=%.gcda) \
|
$(UNIT_SOURCE:%.c=%.gcda) \
|
||||||
$(UNIT_SOURCE:%.c=%.gcno) \
|
$(UNIT_SOURCE:%.c=%.gcno) \
|
||||||
test/unit/unit-test
|
$(UNIT_TARGET)
|
||||||
|
|
||||||
test/unit/unit-test: $(UNIT_OBJECTS) lib/liblvm-internal.a libdaemon/client/libdaemonclient.a $(INTERNAL_LIBS)
|
$(UNIT_TARGET): $(UNIT_OBJECTS) $(LVMINTERNAL_LIBS)
|
||||||
@echo " [LD] $@"
|
@echo " [LD] $@"
|
||||||
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) \
|
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) \
|
||||||
-o $@ $+ $(DMEVENT_LIBS) $(SYSTEMD_LIBS) $(LIBS) -laio
|
-o $@ $+ $(DMEVENT_LIBS) $(LIBS) -laio
|
||||||
|
|
||||||
.PHONEY: run-unit-test unit-test
|
.PHONEY: run-unit-test unit-test
|
||||||
unit-test: test/unit/unit-test
|
unit-test: $(UNIT_TARGET)
|
||||||
run-unit-test: test/unit/unit-test
|
run-unit-test: $(UNIT_TARGET)
|
||||||
@echo Running unit tests
|
@echo "Running unit tests"
|
||||||
LD_LIBRARY_PATH=libdm test/unit/unit-test run
|
LD_LIBRARY_PATH=libdm $(UNIT_TARGET) run
|
||||||
|
|
||||||
ifeq ("$(USE_TRACKING)","yes")
|
ifeq ("$(DEPENDS)","yes")
|
||||||
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov lcov-reset \
|
-include $(UNIT_SOURCE:%.c=%.d)
|
||||||
help check check_local check_lvmpolld run-unit-test))
|
|
||||||
-include $(UNIT_DEPENDS)
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
@ -89,8 +89,9 @@ ifeq ("@STATIC_LINK@", "yes")
|
|||||||
INSTALL_CMDLIB_TARGETS += install_cmdlib_static
|
INSTALL_CMDLIB_TARGETS += install_cmdlib_static
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LVMLIBS = $(LVMINTERNAL_LIBS) -laio
|
LVMLIBS = $(LIBS) -laio
|
||||||
LIB_VERSION = $(LIB_VERSION_LVM)
|
LIB_VERSION = $(LIB_VERSION_LVM)
|
||||||
|
INCLUDES = -I$(top_builddir)/tools
|
||||||
|
|
||||||
CLEAN_TARGETS = liblvm2cmd.$(LIB_SUFFIX) $(TARGETS_DM) \
|
CLEAN_TARGETS = liblvm2cmd.$(LIB_SUFFIX) $(TARGETS_DM) \
|
||||||
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION) lvm-static.o \
|
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION) lvm-static.o \
|
||||||
@ -118,10 +119,10 @@ all: device-mapper
|
|||||||
|
|
||||||
CFLAGS_lvm.o += $(EXTRA_EXEC_CFLAGS)
|
CFLAGS_lvm.o += $(EXTRA_EXEC_CFLAGS)
|
||||||
|
|
||||||
lvm: $(OBJECTS) lvm.o $(top_builddir)/lib/liblvm-internal.a $(INTERNAL_LIBS)
|
lvm: $(OBJECTS) lvm.o $(LVMINTERNAL_LIBS)
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) -o $@ $+ \
|
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) $(EXTRA_EXEC_LDFLAGS) $(ELDFLAGS) -o $@ $+ \
|
||||||
$(LVMLIBS) $(READLINE_LIBS) $(LIBS) -lm
|
$(DMEVENT_LIBS) $(READLINE_LIBS) $(LVMLIBS)
|
||||||
|
|
||||||
DEFS_man-generator.o += -DMAN_PAGE_GENERATOR
|
DEFS_man-generator.o += -DMAN_PAGE_GENERATOR
|
||||||
|
|
||||||
@ -133,10 +134,10 @@ man-generator: man-generator.o
|
|||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
$(Q) $(CC) $(CFLAGS) -o $@ $<
|
$(Q) $(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
lvm.static: $(OBJECTS) lvm-static.o $(top_builddir)/lib/liblvm-internal.a $(INTERNAL_LIBS)
|
lvm.static: $(OBJECTS) lvm-static.o $(LVMINTERNAL_LIBS)
|
||||||
@echo " [CC] $@"
|
@echo " [CC] $@"
|
||||||
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ \
|
$(Q) $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ $+ \
|
||||||
$(OBJECTS) lvm-static.o $(LVMLIBS) $(STATIC_LIBS) $(LIBS)
|
$(DMEVENT_LIBS) $(STATIC_LIBS) $(LVMLIBS)
|
||||||
|
|
||||||
liblvm2cmd.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o
|
liblvm2cmd.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o
|
||||||
@echo " [AR] $@"
|
@echo " [AR] $@"
|
||||||
@ -153,7 +154,7 @@ liblvm2cmd.$(LIB_SUFFIX): liblvm2cmd.a $(LDDEPS)
|
|||||||
$(Q) $(CC) -shared -Wl,-soname,$@.$(LIB_VERSION) \
|
$(Q) $(CC) -shared -Wl,-soname,$@.$(LIB_VERSION) \
|
||||||
$(CFLAGS) $(CLDFLAGS) -o $@ \
|
$(CFLAGS) $(CLDFLAGS) -o $@ \
|
||||||
@CLDWHOLEARCHIVE@ liblvm2cmd.a @CLDNOWHOLEARCHIVE@ \
|
@CLDWHOLEARCHIVE@ liblvm2cmd.a @CLDNOWHOLEARCHIVE@ \
|
||||||
$(LVMLIBS) $(INTERNAL_LIBS) $(LIBS)
|
$(LVMINTERNAL_LIBS) $(LVMLIBS)
|
||||||
|
|
||||||
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION): liblvm2cmd.$(LIB_SUFFIX)
|
liblvm2cmd.$(LIB_SUFFIX).$(LIB_VERSION): liblvm2cmd.$(LIB_SUFFIX)
|
||||||
@echo " [LN] $@"
|
@echo " [LN] $@"
|
||||||
|
Loading…
Reference in New Issue
Block a user