blob: 3564cf5e7fa2235b03231c696e0006ae22537a56 [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 \
18 -version-info 0:0:0 -shared
Patrick Ventureef3aead2018-09-12 08:53:29 -070019
Patrick Venture904f24f2018-11-09 08:33:46 -080020libblobcmds_la_CXXFLAGS = \
21 $(SYSTEMD_CFLAGS) \
Patrick Venture45e428a2018-11-09 08:36:11 -080022 $(PHOSPHOR_LOGGING_CFLAGS) \
23 -flto
Patrick Ventureef3aead2018-09-12 08:53:29 -070024
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070025nobase_include_HEADERS = \
26 blobs-ipmid/blobs.hpp \
Patrick Venture7210b312018-10-03 14:01:35 -070027 blobs-ipmid/manager.hpp \
28 blobs-ipmid/test/blob_mock.hpp \
29 blobs-ipmid/test/manager_mock.hpp
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070030
Patrick Venturee2255402018-10-03 11:12:53 -070031# Install the blob handlers in ipmid-providers so you can leverage
32# meta-phosphor/blob/master/classes/obmc-phosphor-ipmiprovider-symlink.bbclass
33# Which will create a symlink in ${D}/${libdir}/blob-ipmid/ pointing to the
34# library in ${D}/${libdir}/ipmid-providers/
35
Patrick Venture5100a382018-09-27 10:40:50 -070036# Always build but only installed if you add the item:
37# BLOBIPMI_PROVIDER_LIBRARY += "libexample.so"
Patrick Venturee2255402018-10-03 11:12:53 -070038libblobexampledir = ${libdir}/ipmid-providers
39libblobexample_LTLIBRARIES = libblobexample.la
40libblobexample_la_SOURCES = example/example.cpp
Patrick Venture904f24f2018-11-09 08:33:46 -080041libblobexample_la_LDFLAGS = \
42 $(PHOSPHOR_LOGGING_LIBS) \
43 -version-info 0:0:0 -shared
44libblobexample_la_CXXFLAGS = \
45 $(PHOSPHOR_LOGGING_CFLAGS) \
46 -flto
Patrick Venture5100a382018-09-27 10:40:50 -070047
Patrick Ventureef3aead2018-09-12 08:53:29 -070048SUBDIRS = . test