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 | |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 4 | # Ignore system headers |
| 5 | CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' |
| 6 | export CODE_COVERAGE_IGNORE_PATTERN |
| 7 | |
| 8 | CODE_COVERAGE_LCOV_SHOPTS = $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) |
| 9 | # Use our configuration file for lcov |
| 10 | CODE_COVERAGE_LCOV_SHOPTS += --config-file $(abs_srcdir)/.lcovrc |
| 11 | export CODE_COVERAGE_LCOV_SHOPTS |
| 12 | |
| 13 | CODE_COVERAGE_LCOV_OPTIONS = $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) |
| 14 | # Use our configuration file for lcov |
| 15 | CODE_COVERAGE_LCOV_OPTIONS += --config-file $(abs_srcdir)/.lcovrc |
| 16 | export CODE_COVERAGE_LCOV_OPTIONS |
| 17 | |
| 18 | CODE_COVERAGE_LCOV_RMOPTS = $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) |
| 19 | # Use our configuration file for lcov |
| 20 | CODE_COVERAGE_LCOV_RMOPTS += --config-file $(abs_srcdir)/.lcovrc |
| 21 | export CODE_COVERAGE_LCOV_RMOPTS |
| 22 | |
| 23 | CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) |
| 24 | # Use our configuration file for genhtml |
| 25 | CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc |
| 26 | # Don't generate the absolute path for each file in the HTML output |
| 27 | CODE_COVERAGE_GENHTML_OPTIONS += --prefix $(abs_srcdir) --prefix $(abs_builddir) |
| 28 | export CODE_COVERAGE_GENHTML_OPTIONS |
| 29 | |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 30 | libblobcmdsdir = ${libdir}/ipmid-providers |
| 31 | libblobcmds_LTLIBRARIES = libblobcmds.la |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 32 | libblobcmds_la_SOURCES = \ |
| 33 | main.cpp \ |
| 34 | ipmi.cpp \ |
| 35 | manager.cpp \ |
| 36 | process.cpp \ |
| 37 | crc.cpp \ |
Patrick Venture | c18e2b6 | 2018-11-21 14:19:28 -0800 | [diff] [blame] | 38 | utils.cpp \ |
| 39 | internal/sys.cpp \ |
| 40 | fs.cpp |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 41 | |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 42 | libblobcmds_la_LDFLAGS = \ |
| 43 | $(SYSTEMD_LIBS) \ |
| 44 | $(LIBADD_DLOPEN) \ |
| 45 | $(PHOSPHOR_LOGGING_LIBS) \ |
William A. Kennington III | acebece | 2019-02-07 15:15:44 -0800 | [diff] [blame] | 46 | $(LIBIPMID_LIBS) \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 47 | $(CODE_COVERAGE_LIBS) \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 48 | -lstdc++fs \ |
Patrick Venture | df209fa | 2018-11-13 16:11:17 -0800 | [diff] [blame] | 49 | -export-dynamic \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 50 | -version-info 0:0:0 -shared |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 51 | |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 52 | libblobcmds_la_CXXFLAGS = \ |
| 53 | $(SYSTEMD_CFLAGS) \ |
Patrick Venture | 45e428a | 2018-11-09 08:36:11 -0800 | [diff] [blame] | 54 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
William A. Kennington III | acebece | 2019-02-07 15:15:44 -0800 | [diff] [blame] | 55 | $(LIBIPMID_CFLAGS) \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 56 | $(CODE_COVERAGE_CXXFLAGS) \ |
Patrick Venture | 45e428a | 2018-11-09 08:36:11 -0800 | [diff] [blame] | 57 | -flto |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 58 | |
Patrick Venture | aceb4ba | 2018-09-27 14:50:37 -0700 | [diff] [blame] | 59 | nobase_include_HEADERS = \ |
Patrick Venture | cd8dab4 | 2019-01-15 19:57:38 -0800 | [diff] [blame] | 60 | blobs-ipmid/blobs.hpp |
Patrick Venture | aceb4ba | 2018-09-27 14:50:37 -0700 | [diff] [blame] | 61 | |
Patrick Venture | e225540 | 2018-10-03 11:12:53 -0700 | [diff] [blame] | 62 | # Install the blob handlers in ipmid-providers so you can leverage |
| 63 | # meta-phosphor/blob/master/classes/obmc-phosphor-ipmiprovider-symlink.bbclass |
| 64 | # Which will create a symlink in ${D}/${libdir}/blob-ipmid/ pointing to the |
| 65 | # library in ${D}/${libdir}/ipmid-providers/ |
| 66 | |
Patrick Venture | 5100a38 | 2018-09-27 10:40:50 -0700 | [diff] [blame] | 67 | # Always build but only installed if you add the item: |
| 68 | # BLOBIPMI_PROVIDER_LIBRARY += "libexample.so" |
Patrick Venture | e225540 | 2018-10-03 11:12:53 -0700 | [diff] [blame] | 69 | libblobexampledir = ${libdir}/ipmid-providers |
| 70 | libblobexample_LTLIBRARIES = libblobexample.la |
| 71 | libblobexample_la_SOURCES = example/example.cpp |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 72 | libblobexample_la_LDFLAGS = \ |
| 73 | $(PHOSPHOR_LOGGING_LIBS) \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 74 | $(CODE_COVERAGE_LIBS) \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 75 | -version-info 0:0:0 -shared |
| 76 | libblobexample_la_CXXFLAGS = \ |
| 77 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 78 | $(CODE_COVERAGE_CXXFLAGS) \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 79 | -flto |
Patrick Venture | 5100a38 | 2018-09-27 10:40:50 -0700 | [diff] [blame] | 80 | |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 81 | SUBDIRS = . test |