blob: c368df1b75b8d774e45348186b0257dd82f1114d [file] [log] [blame]
Patrick Ventureef3aead2018-09-12 08:53:29 -07001AM_DEFAULT_SOURCE_EXT = .cpp
2
3libblobcmdsdir = ${libdir}/ipmid-providers
4libblobcmds_LTLIBRARIES = libblobcmds.la
5libblobcmds_la_SOURCES = main.cpp \
6 ipmi.cpp \
7 manager.cpp \
8 process.cpp \
Patrick Venturec0f499b2018-09-14 17:57:42 -07009 crc.cpp \
Patrick Venture5100a382018-09-27 10:40:50 -070010 utils.cpp
Patrick Ventureef3aead2018-09-12 08:53:29 -070011
12libblobcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \
Patrick Venture4dc584d2018-09-27 15:00:46 -070013 $(LIBADD_DLOPEN) \
14 $(PHOSPHOR_LOGGING_LIBS) \
15 -lstdc++fs \
Patrick Ventureef3aead2018-09-12 08:53:29 -070016 -version-info 0:0:0 -shared
17
Patrick Venture4dc584d2018-09-27 15:00:46 -070018libblobcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \
19 $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Ventureef3aead2018-09-12 08:53:29 -070020
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070021nobase_include_HEADERS = \
22 blobs-ipmid/blobs.hpp \
Patrick Venture7210b312018-10-03 14:01:35 -070023 blobs-ipmid/manager.hpp \
24 blobs-ipmid/test/blob_mock.hpp \
25 blobs-ipmid/test/manager_mock.hpp
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070026
Patrick Venturee2255402018-10-03 11:12:53 -070027# Install the blob handlers in ipmid-providers so you can leverage
28# meta-phosphor/blob/master/classes/obmc-phosphor-ipmiprovider-symlink.bbclass
29# Which will create a symlink in ${D}/${libdir}/blob-ipmid/ pointing to the
30# library in ${D}/${libdir}/ipmid-providers/
31
Patrick Venture5100a382018-09-27 10:40:50 -070032# Always build but only installed if you add the item:
33# BLOBIPMI_PROVIDER_LIBRARY += "libexample.so"
Patrick Venturee2255402018-10-03 11:12:53 -070034libblobexampledir = ${libdir}/ipmid-providers
35libblobexample_LTLIBRARIES = libblobexample.la
36libblobexample_la_SOURCES = example/example.cpp
37libblobexample_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
38 -version-info 0:0:0 -shared
39libblobexample_la_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
40 -flto
Patrick Venture5100a382018-09-27 10:40:50 -070041
Patrick Ventureef3aead2018-09-12 08:53:29 -070042SUBDIRS = . test