blob: c0cbffbf838ba33d095ed93e5ae8262cb5ff2f0b [file] [log] [blame]
Patrick Ventureef3aead2018-09-12 08:53:29 -07001AM_DEFAULT_SOURCE_EXT = .cpp
2
3libblobcmdsdir = ${libdir}/ipmid-providers
4libblobcmds_LTLIBRARIES = libblobcmds.la
Patrick Venture904f24f2018-11-09 08:33:46 -08005libblobcmds_la_SOURCES = \
6 main.cpp \
7 ipmi.cpp \
8 manager.cpp \
9 process.cpp \
10 crc.cpp \
11 utils.cpp
Patrick Ventureef3aead2018-09-12 08:53:29 -070012
Patrick Venture904f24f2018-11-09 08:33:46 -080013libblobcmds_la_LDFLAGS = \
14 $(SYSTEMD_LIBS) \
15 $(LIBADD_DLOPEN) \
16 $(PHOSPHOR_LOGGING_LIBS) \
17 -lstdc++fs \
Patrick Venturedf209fa2018-11-13 16:11:17 -080018 -export-dynamic \
Patrick Venture904f24f2018-11-09 08:33:46 -080019 -version-info 0:0:0 -shared
Patrick Ventureef3aead2018-09-12 08:53:29 -070020
Patrick Venture904f24f2018-11-09 08:33:46 -080021libblobcmds_la_CXXFLAGS = \
22 $(SYSTEMD_CFLAGS) \
Patrick Venture45e428a2018-11-09 08:36:11 -080023 $(PHOSPHOR_LOGGING_CFLAGS) \
24 -flto
Patrick Ventureef3aead2018-09-12 08:53:29 -070025
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070026nobase_include_HEADERS = \
27 blobs-ipmid/blobs.hpp \
Patrick Venture7210b312018-10-03 14:01:35 -070028 blobs-ipmid/manager.hpp \
29 blobs-ipmid/test/blob_mock.hpp \
30 blobs-ipmid/test/manager_mock.hpp
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070031
Patrick Venturee2255402018-10-03 11:12:53 -070032# Install the blob handlers in ipmid-providers so you can leverage
33# meta-phosphor/blob/master/classes/obmc-phosphor-ipmiprovider-symlink.bbclass
34# Which will create a symlink in ${D}/${libdir}/blob-ipmid/ pointing to the
35# library in ${D}/${libdir}/ipmid-providers/
36
Patrick Venture5100a382018-09-27 10:40:50 -070037# Always build but only installed if you add the item:
38# BLOBIPMI_PROVIDER_LIBRARY += "libexample.so"
Patrick Venturee2255402018-10-03 11:12:53 -070039libblobexampledir = ${libdir}/ipmid-providers
40libblobexample_LTLIBRARIES = libblobexample.la
41libblobexample_la_SOURCES = example/example.cpp
Patrick Venture904f24f2018-11-09 08:33:46 -080042libblobexample_la_LDFLAGS = \
43 $(PHOSPHOR_LOGGING_LIBS) \
44 -version-info 0:0:0 -shared
45libblobexample_la_CXXFLAGS = \
46 $(PHOSPHOR_LOGGING_CFLAGS) \
47 -flto
Patrick Venture5100a382018-09-27 10:40:50 -070048
Patrick Ventureef3aead2018-09-12 08:53:29 -070049SUBDIRS = . test