1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add DSO generation for new LVM application library.

Fix test/api/test build.
This commit is contained in:
Dave Wysochanski 2009-03-08 17:06:55 +00:00
parent 227301e041
commit 77986fa71a
2 changed files with 17 additions and 5 deletions

View File

@ -19,14 +19,25 @@ VPATH = @srcdir@
SOURCES =\
lvm_base.c
LIB_STATIC = liblvm.a
LIB_NAME = liblvm
LIB_VERSION = $(LIB_VERSION_LVM)
$(SUBDIRS): $(LIB_STATIC)
LIB_STATIC = $(LIB_NAME).a
LIB_SHARED = $(LIB_NAME).so
CLEAN_TARGETS += liblvm.cflow
include $(top_srcdir)/make.tmpl
CLDFLAGS += -z now
LIBS += -ldevmapper -llvm-internal
$(VERSIONED_SHLIB): %.$(LIB_SUFFIX).$(LIB_VERSION): $(interface)/%.$(LIB_SUFFIX)
rm -f $@
$(LN_S) $< $@
rm -f $(LIB_NAME).$(LIB_SUFFIX)
$(LN_S) $< $(LIB_NAME).$(LIB_SUFFIX)
liblvm.cflow: $(SOURCES)
set -e; (echo -n "SOURCES += "; \
echo $(SOURCES) | \

View File

@ -30,10 +30,11 @@ LVMLIBS = -llvm -ldevmapper
DEFS += -D_REENTRANT
CFLAGS += -fno-strict-aliasing
LDFLAGS += -L$(top_srcdir)/api/lib
include $(top_srcdir)/make.tmpl
test: $(OBJECTS) $(top_srcdir)/lib/liblvm.a $(top_srcdir)/libdm/libdevmapper.so
LDFLAGS = -L$(top_srcdir)/libdm -L$(top_srcdir)/liblvm
CLDFLAGS = -L$(top_srcdir)/libdm -L$(top_srcdir)/liblvm
test: $(OBJECTS) $(top_srcdir)/liblvm/liblvm.a $(top_srcdir)/libdm/libdevmapper.so
$(CC) -o test $(OBJECTS) $(CFLAGS) $(LDFLAGS) $(LVMLIBS) $(LIBS)