Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
| 3 | libblobcmdsdir = ${libdir}/ipmid-providers |
| 4 | libblobcmds_LTLIBRARIES = libblobcmds.la |
| 5 | libblobcmds_la_SOURCES = main.cpp \ |
| 6 | ipmi.cpp \ |
| 7 | manager.cpp \ |
| 8 | process.cpp \ |
Patrick Venture | c0f499b | 2018-09-14 17:57:42 -0700 | [diff] [blame] | 9 | crc.cpp \ |
Patrick Venture | 5100a38 | 2018-09-27 10:40:50 -0700 | [diff] [blame] | 10 | utils.cpp |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 11 | |
| 12 | libblobcmds_la_LDFLAGS = $(SYSTEMD_LIBS) \ |
Patrick Venture | 4dc584d | 2018-09-27 15:00:46 -0700 | [diff] [blame] | 13 | $(LIBADD_DLOPEN) \ |
| 14 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 15 | -lstdc++fs \ |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 16 | -version-info 0:0:0 -shared |
| 17 | |
Patrick Venture | 4dc584d | 2018-09-27 15:00:46 -0700 | [diff] [blame] | 18 | libblobcmds_la_CXXFLAGS = $(SYSTEMD_CFLAGS) \ |
| 19 | $(PHOSPHOR_LOGGING_CFLAGS) |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 20 | |
Patrick Venture | aceb4ba | 2018-09-27 14:50:37 -0700 | [diff] [blame] | 21 | nobase_include_HEADERS = \ |
| 22 | blobs-ipmid/blobs.hpp \ |
Patrick Venture | 7210b31 | 2018-10-03 14:01:35 -0700 | [diff] [blame] | 23 | blobs-ipmid/manager.hpp \ |
| 24 | blobs-ipmid/test/blob_mock.hpp \ |
| 25 | blobs-ipmid/test/manager_mock.hpp |
Patrick Venture | aceb4ba | 2018-09-27 14:50:37 -0700 | [diff] [blame] | 26 | |
Patrick Venture | e225540 | 2018-10-03 11:12:53 -0700 | [diff] [blame^] | 27 | # 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 Venture | 5100a38 | 2018-09-27 10:40:50 -0700 | [diff] [blame] | 32 | # Always build but only installed if you add the item: |
| 33 | # BLOBIPMI_PROVIDER_LIBRARY += "libexample.so" |
Patrick Venture | e225540 | 2018-10-03 11:12:53 -0700 | [diff] [blame^] | 34 | libblobexampledir = ${libdir}/ipmid-providers |
| 35 | libblobexample_LTLIBRARIES = libblobexample.la |
| 36 | libblobexample_la_SOURCES = example/example.cpp |
| 37 | libblobexample_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \ |
| 38 | -version-info 0:0:0 -shared |
| 39 | libblobexample_la_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 40 | -flto |
Patrick Venture | 5100a38 | 2018-09-27 10:40:50 -0700 | [diff] [blame] | 41 | |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 42 | SUBDIRS = . test |