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 | |
William A. Kennington III | 374350d | 2019-03-15 14:14:07 -0700 | [diff] [blame] | 30 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 31 | include $(top_srcdir)/aminclude_static.am |
| 32 | clean-local: code-coverage-clean |
| 33 | distclean-local: code-coverage-dist-clean |
| 34 | else |
| 35 | @CODE_COVERAGE_RULES@ |
| 36 | endif |
| 37 | |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame] | 38 | noinst_LTLIBRARIES = libblobcmds_common.la |
| 39 | libblobcmds_common_la_SOURCES = \ |
| 40 | fs.cpp \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 41 | manager.cpp \ |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame] | 42 | ipmi.cpp \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 43 | process.cpp \ |
Patrick Venture | c18e2b6 | 2018-11-21 14:19:28 -0800 | [diff] [blame] | 44 | utils.cpp \ |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame] | 45 | internal/sys.cpp |
| 46 | libblobcmds_common_la_CXXFLAGS = \ |
| 47 | $(SYSTEMD_CFLAGS) \ |
| 48 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 49 | $(LIBIPMID_CFLAGS) \ |
| 50 | $(CODE_COVERAGE_CXXFLAGS) \ |
| 51 | $(IPMIBLOB_CFLAGS) \ |
| 52 | -flto |
| 53 | libblobcmds_common_la_LDFLAGS = \ |
| 54 | $(SYSTEMD_LIBS) \ |
| 55 | $(LIBADD_DLOPEN) \ |
| 56 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 57 | $(LIBIPMID_LIBS) \ |
| 58 | $(CODE_COVERAGE_LIBS) \ |
| 59 | $(IPMIBLOB_LIBS) \ |
| 60 | -lstdc++fs |
| 61 | |
| 62 | libblobcmdsdir = ${libdir}/ipmid-providers |
| 63 | libblobcmds_LTLIBRARIES = libblobcmds.la |
| 64 | libblobcmds_la_SOURCES = main.cpp |
| 65 | libblobcmds_la_LIBADD = libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 66 | |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 67 | libblobcmds_la_LDFLAGS = \ |
| 68 | $(SYSTEMD_LIBS) \ |
| 69 | $(LIBADD_DLOPEN) \ |
| 70 | $(PHOSPHOR_LOGGING_LIBS) \ |
William A. Kennington III | acebece | 2019-02-07 15:15:44 -0800 | [diff] [blame] | 71 | $(LIBIPMID_LIBS) \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 72 | $(CODE_COVERAGE_LIBS) \ |
Patrick Venture | de8a16e | 2019-03-07 12:48:32 -0800 | [diff] [blame] | 73 | $(IPMIBLOB_LIBS) \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 74 | -lstdc++fs \ |
Patrick Venture | df209fa | 2018-11-13 16:11:17 -0800 | [diff] [blame] | 75 | -export-dynamic \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 76 | -version-info 0:0:0 -shared |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 77 | |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 78 | libblobcmds_la_CXXFLAGS = \ |
| 79 | $(SYSTEMD_CFLAGS) \ |
Patrick Venture | 45e428a | 2018-11-09 08:36:11 -0800 | [diff] [blame] | 80 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
William A. Kennington III | acebece | 2019-02-07 15:15:44 -0800 | [diff] [blame] | 81 | $(LIBIPMID_CFLAGS) \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 82 | $(CODE_COVERAGE_CXXFLAGS) \ |
Patrick Venture | de8a16e | 2019-03-07 12:48:32 -0800 | [diff] [blame] | 83 | $(IPMIBLOB_CFLAGS) \ |
Patrick Venture | 45e428a | 2018-11-09 08:36:11 -0800 | [diff] [blame] | 84 | -flto |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 85 | |
Patrick Venture | aceb4ba | 2018-09-27 14:50:37 -0700 | [diff] [blame] | 86 | nobase_include_HEADERS = \ |
Patrick Venture | cd8dab4 | 2019-01-15 19:57:38 -0800 | [diff] [blame] | 87 | blobs-ipmid/blobs.hpp |
Patrick Venture | aceb4ba | 2018-09-27 14:50:37 -0700 | [diff] [blame] | 88 | |
Patrick Venture | e225540 | 2018-10-03 11:12:53 -0700 | [diff] [blame] | 89 | # Install the blob handlers in ipmid-providers so you can leverage |
| 90 | # meta-phosphor/blob/master/classes/obmc-phosphor-ipmiprovider-symlink.bbclass |
| 91 | # Which will create a symlink in ${D}/${libdir}/blob-ipmid/ pointing to the |
| 92 | # library in ${D}/${libdir}/ipmid-providers/ |
| 93 | |
Patrick Venture | 5100a38 | 2018-09-27 10:40:50 -0700 | [diff] [blame] | 94 | # Always build but only installed if you add the item: |
| 95 | # BLOBIPMI_PROVIDER_LIBRARY += "libexample.so" |
Patrick Venture | e225540 | 2018-10-03 11:12:53 -0700 | [diff] [blame] | 96 | libblobexampledir = ${libdir}/ipmid-providers |
| 97 | libblobexample_LTLIBRARIES = libblobexample.la |
| 98 | libblobexample_la_SOURCES = example/example.cpp |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 99 | libblobexample_la_LDFLAGS = \ |
| 100 | $(PHOSPHOR_LOGGING_LIBS) \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 101 | $(CODE_COVERAGE_LIBS) \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 102 | -version-info 0:0:0 -shared |
| 103 | libblobexample_la_CXXFLAGS = \ |
| 104 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 105 | $(CODE_COVERAGE_CXXFLAGS) \ |
Patrick Venture | 904f24f | 2018-11-09 08:33:46 -0800 | [diff] [blame] | 106 | -flto |
Patrick Venture | 5100a38 | 2018-09-27 10:40:50 -0700 | [diff] [blame] | 107 | |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 108 | SUBDIRS = . test |
Sui Chen | 7bda17a | 2020-10-06 08:44:00 -0700 | [diff] [blame] | 109 | |
| 110 | pkgconfig_DATA = phosphor-ipmi-blobs.pc |