summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-09-27 10:40:50 -0700
committerPatrick Venture <venture@google.com>2018-10-01 14:57:41 -0700
commit5100a386404edfa517186c66aa90abbb6658bda7 (patch)
tree85e370aceda71f9d69e5fe953ba3a886bf5233fa /Makefile.am
parent4dc584db905b3fe4d2f5aa6bdf647b21512b4dee (diff)
downloadphosphor-ipmi-blobs-5100a386404edfa517186c66aa90abbb6658bda7.tar.gz
phosphor-ipmi-blobs-5100a386404edfa517186c66aa90abbb6658bda7.zip
main: now seeks out shared library handlers are load-time
phosphor-ipmi-blobs now detects blob handlers compiled into shared libraries on the BMC and loads them at start-up when it's loaded by phosphor-host-ipmid. Change-Id: Ib1b6b8f75aa544a263d37f71e133a9a188704de3 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am19
1 files changed, 11 insertions, 8 deletions
diff --git a/Makefile.am b/Makefile.am
index 9027e47..2c31b57 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,11 +1,5 @@
AM_DEFAULT_SOURCE_EXT = .cpp
-HANDLERS =
-
-if ENABLE_EXAMPLE
-HANDLERS += example/example.cpp
-endif
-
libblobcmdsdir = ${libdir}/ipmid-providers
libblobcmds_LTLIBRARIES = libblobcmds.la
libblobcmds_la_SOURCES = main.cpp \
@@ -13,8 +7,7 @@ libblobcmds_la_SOURCES = main.cpp \
manager.cpp \
process.cpp \
crc.cpp \
- utils.cpp \
- $(HANDLERS)
+ utils.cpp
libblobcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
$(LIBADD_DLOPEN) \
@@ -29,4 +22,14 @@ nobase_include_HEADERS = \
blobs-ipmid/blobs.hpp \
blobs-ipmid/manager.hpp
+# Always build but only installed if you add the item:
+# BLOBIPMI_PROVIDER_LIBRARY += "libexample.so"
+libexampledir = ${libdir}/blob-providers
+libexample_LTLIBRARIES = libexample.la
+libexample_la_SOURCES = example/example.cpp
+libexample_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
+ -version-info 0:0:0 -shared
+libexample_la_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
+ -flto
+
SUBDIRS = . test
OpenPOWER on IntegriCloud