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