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