aboutsummaryrefslogtreecommitdiffstats
path: root/src/svm.am
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2017-01-08 15:34:50 +0100
committerDamjan Marion <damarion@cisco.com>2017-01-08 16:50:19 +0100
commit45a00c44d1dd893474819e88a7d7eed1c7947c4d (patch)
treecdcef90e5e59cd761caa28a924f5ad6d1459a313 /src/svm.am
parentf935e336db1282c1ec67cf703db2d3cfaec32915 (diff)
Multiple Autotools improvements
- Defines some dependencies between shared libraries - updates version.h only when version changes Updating version.h on each "make" and "make install" was causing issues with parallel builds. "make install" was re-linking vpp binary due to "updated" version.h and in parallel it was re-linking shared libraries as part of installation process. That was resulting on sporadic build failures. Change-Id: I2a27ae1aea6a7a4100822018e095a60dd48d39ca Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/svm.am')
-rw-r--r--src/svm.am7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/svm.am b/src/svm.am
index d91eaa272a2..2cd385bd037 100644
--- a/src/svm.am
+++ b/src/svm.am
@@ -15,14 +15,17 @@ bin_PROGRAMS += svmtool svmdbtool
nobase_include_HEADERS += svm/svm.h svm/ssvm.h svm/svmdb.h
-libsvmdir = ${libdir}
-libsvm_LTLIBRARIES = libsvm.la libsvmdb.la
+lib_LTLIBRARIES += libsvm.la libsvmdb.la
+libsvm_la_LIBADD = libvppinfra.la -lrt -lpthread
+libsvm_la_DEPENDENCIES = libvppinfra.la
libsvm_la_SOURCES = svm/svm.c svm/ssvm.c
svmtool_SOURCES = svm/svmtool.c
svmtool_LDADD = libsvm.la libvppinfra.la -lpthread -lrt
+libsvmdb_la_LIBADD = libvppinfra.la libsvm.la
+libsvmdb_la_DEPENDENCIES = libvppinfra.la libsvm.la
libsvmdb_la_SOURCES = svm/svmdb.c
svmdbtool_SOURCES = svm/svmdbtool.c