blob: ddca382e6b50c94226a503cca742a4a1d75ce60e [file] [log] [blame]
Patrick Venture540b64d2018-11-28 14:56:28 -08001ACLOCAL_AMFLAGS = -I m4
Patrick Ventureef3aead2018-09-12 08:53:29 -07002AM_DEFAULT_SOURCE_EXT = .cpp
3
4libblobcmdsdir = ${libdir}/ipmid-providers
5libblobcmds_LTLIBRARIES = libblobcmds.la
Patrick Venture904f24f2018-11-09 08:33:46 -08006libblobcmds_la_SOURCES = \
7 main.cpp \
8 ipmi.cpp \
9 manager.cpp \
10 process.cpp \
11 crc.cpp \
Patrick Venturec18e2b62018-11-21 14:19:28 -080012 utils.cpp \
13 internal/sys.cpp \
14 fs.cpp
Patrick Ventureef3aead2018-09-12 08:53:29 -070015
Patrick Venture904f24f2018-11-09 08:33:46 -080016libblobcmds_la_LDFLAGS = \
17 $(SYSTEMD_LIBS) \
18 $(LIBADD_DLOPEN) \
19 $(PHOSPHOR_LOGGING_LIBS) \
20 -lstdc++fs \
Patrick Venturedf209fa2018-11-13 16:11:17 -080021 -export-dynamic \
Patrick Venture904f24f2018-11-09 08:33:46 -080022 -version-info 0:0:0 -shared
Patrick Ventureef3aead2018-09-12 08:53:29 -070023
Patrick Venture904f24f2018-11-09 08:33:46 -080024libblobcmds_la_CXXFLAGS = \
25 $(SYSTEMD_CFLAGS) \
Patrick Venture45e428a2018-11-09 08:36:11 -080026 $(PHOSPHOR_LOGGING_CFLAGS) \
27 -flto
Patrick Ventureef3aead2018-09-12 08:53:29 -070028
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070029nobase_include_HEADERS = \
30 blobs-ipmid/blobs.hpp \
Patrick Venture7210b312018-10-03 14:01:35 -070031 blobs-ipmid/manager.hpp \
32 blobs-ipmid/test/blob_mock.hpp \
33 blobs-ipmid/test/manager_mock.hpp
Patrick Ventureaceb4ba2018-09-27 14:50:37 -070034
Patrick Venturee2255402018-10-03 11:12:53 -070035# Install the blob handlers in ipmid-providers so you can leverage
36# meta-phosphor/blob/master/classes/obmc-phosphor-ipmiprovider-symlink.bbclass
37# Which will create a symlink in ${D}/${libdir}/blob-ipmid/ pointing to the
38# library in ${D}/${libdir}/ipmid-providers/
39
Patrick Venture5100a382018-09-27 10:40:50 -070040# Always build but only installed if you add the item:
41# BLOBIPMI_PROVIDER_LIBRARY += "libexample.so"
Patrick Venturee2255402018-10-03 11:12:53 -070042libblobexampledir = ${libdir}/ipmid-providers
43libblobexample_LTLIBRARIES = libblobexample.la
44libblobexample_la_SOURCES = example/example.cpp
Patrick Venture904f24f2018-11-09 08:33:46 -080045libblobexample_la_LDFLAGS = \
46 $(PHOSPHOR_LOGGING_LIBS) \
47 -version-info 0:0:0 -shared
48libblobexample_la_CXXFLAGS = \
49 $(PHOSPHOR_LOGGING_CFLAGS) \
50 -flto
Patrick Venture5100a382018-09-27 10:40:50 -070051
Patrick Ventureef3aead2018-09-12 08:53:29 -070052SUBDIRS = . test