Commit c6360473 authored by ale's avatar ale

compile a shared libimms-c library

parent 7399572d
......@@ -21,7 +21,7 @@ AC_INIT([imms-analyzer],[svnversion],[mag@luminal.org])
AM_INIT_AUTOMAKE([foreign])
LT_INIT([disable-shared])
LT_INIT([disable-static])
AC_CONFIG_SRCDIR([immscore/immsutil.h])
......
......@@ -4,9 +4,10 @@ AM_CXXFLAGS += -ffast-math
PACKAGES = core distributions gradients matrix kernels
nobase_noinst_LTLIBRARIES = libtorch.la
nobase_noinst_LIBRARIES = libtorch.a
libtorch_la_SOURCES = \
libtorch_a_CFLAGS = -fPIC
libtorch_a_SOURCES = \
core/Allocator.cc \
core/Bagging.cc \
core/Boosting.cc \
......
include $(top_srcdir)/vars.mk
noinst_LTLIBRARIES = libimmscore.la
noinst_LIBRARIES = libimmscore.a
libimmscore_la_SOURCES = \
libimmscore_a_CFLAGS = -fPIC
libimmscore_a_SOURCES = \
appname.h \
base64.cc \
base64.h \
......
......@@ -2,9 +2,10 @@ include $(top_srcdir)/vars.mk
AM_CPPFLAGS += -DWITH_TORCH
noinst_LTLIBRARIES = libimmsmodel.la
noinst_LIBRARIES = libimmsmodel.a
libimmsmodel_la_SOURCES = \
libimmsmodel_a_CFLAGS = -fPIC
libimmsmodel_a_SOURCES = \
distance.cc \
distance.h \
emd.c \
......@@ -16,7 +17,7 @@ libimmsmodel_la_SOURCES = \
BUILT_SOURCES = \
svm-similarity-data.c
libimmsmodel_la_LIBADD = \
libimmsmodel_a_LIBADD = \
$(ANALYZER_LIB) $(IMMSCORE_LIB) $(TORCH_LIB)
OBJCOPY = @OBJCOPY@
......
TORCH_LIB = $(top_builddir)/ext/torch3/libtorch.la
IMMSCORE_LIB = $(top_builddir)/immscore/libimmscore.la
ANALYZER_LIB = $(top_builddir)/analyzer/libimmsanalyzer.la
MODEL_LIB = $(top_builddir)/model/libimmsmodel.la
TORCH_LIB = $(top_builddir)/ext/torch3/libtorch.a
IMMSCORE_LIB = $(top_builddir)/immscore/libimmscore.a
ANALYZER_LIB = $(top_builddir)/analyzer/libimmsanalyzer.a
MODEL_LIB = $(top_builddir)/model/libimmsmodel.a
INCS = \
-I$(top_srcdir)/ext/torch3/core \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment