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