Patrick Venture | 4d49ae6 | 2018-09-17 11:35:32 -0700 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
Patrick Venture | f9a19b8 | 2018-09-18 10:03:24 -0700 | [diff] [blame] | 3 | if HAVE_SYSTEMD |
| 4 | systemdsystemunit_DATA = \ |
| 5 | gbmc-psu-hardreset.target |
| 6 | endif |
| 7 | |
Patrick Venture | 6667a64 | 2019-03-13 16:39:30 -0700 | [diff] [blame] | 8 | # Ignore system headers |
| 9 | CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' |
| 10 | export CODE_COVERAGE_IGNORE_PATTERN |
| 11 | |
| 12 | CODE_COVERAGE_LCOV_SHOPTS = $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) |
| 13 | # Use our configuration file for lcov |
| 14 | CODE_COVERAGE_LCOV_SHOPTS += --config-file $(abs_srcdir)/.lcovrc |
| 15 | export CODE_COVERAGE_LCOV_SHOPTS |
| 16 | |
| 17 | CODE_COVERAGE_LCOV_OPTIONS = $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) |
| 18 | # Use our configuration file for lcov |
| 19 | CODE_COVERAGE_LCOV_OPTIONS += --config-file $(abs_srcdir)/.lcovrc |
| 20 | export CODE_COVERAGE_LCOV_OPTIONS |
| 21 | |
| 22 | CODE_COVERAGE_LCOV_RMOPTS = $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) |
| 23 | # Use our configuration file for lcov |
| 24 | CODE_COVERAGE_LCOV_RMOPTS += --config-file $(abs_srcdir)/.lcovrc |
| 25 | export CODE_COVERAGE_LCOV_RMOPTS |
| 26 | |
| 27 | CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) |
| 28 | # Use our configuration file for genhtml |
| 29 | CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc |
| 30 | # Don't generate the absolute path for each file in the HTML output |
| 31 | CODE_COVERAGE_GENHTML_OPTIONS += --prefix $(abs_srcdir) --prefix $(abs_builddir) |
| 32 | export CODE_COVERAGE_GENHTML_OPTIONS |
| 33 | |
| 34 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 35 | include $(top_srcdir)/aminclude_static.am |
| 36 | clean-local: code-coverage-clean |
| 37 | distclean-local: code-coverage-dist-clean |
| 38 | else |
| 39 | @CODE_COVERAGE_RULES@ |
| 40 | endif |
| 41 | |
William A. Kennington III | 6eb2940 | 2019-03-14 11:03:55 -0700 | [diff] [blame] | 42 | noinst_LTLIBRARIES = libsyscmds_common.la |
Patrick Venture | 92b507d | 2019-03-15 10:08:28 -0700 | [diff] [blame] | 43 | libsyscmds_common_la_SOURCES = \ |
| 44 | cable.cpp \ |
| 45 | cpld.cpp \ |
| 46 | eth.cpp \ |
| 47 | psu.cpp \ |
| 48 | pcie_i2c.cpp \ |
| 49 | entity_name.cpp \ |
Patrick Venture | ab65000 | 2019-03-16 09:08:47 -0700 | [diff] [blame] | 50 | handler.cpp \ |
| 51 | util.cpp |
William A. Kennington III | 6eb2940 | 2019-03-14 11:03:55 -0700 | [diff] [blame] | 52 | libsyscmds_common_la_CXXFLAGS = \ |
| 53 | $(SDBUSPLUS_CFLAGS) \ |
Patrick Venture | 6667a64 | 2019-03-13 16:39:30 -0700 | [diff] [blame] | 54 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 55 | $(CODE_COVERAGE_CXXFLAGS) |
William A. Kennington III | 6eb2940 | 2019-03-14 11:03:55 -0700 | [diff] [blame] | 56 | libsyscmds_common_la_LDFLAGS = \ |
Patrick Venture | a313c40 | 2018-11-09 08:25:06 -0800 | [diff] [blame] | 57 | $(SDBUSPLUS_LIBS) \ |
| 58 | $(PHOSPHOR_LOGGING_LIBS) \ |
Patrick Venture | 6667a64 | 2019-03-13 16:39:30 -0700 | [diff] [blame] | 59 | $(CODE_COVERAGE_LIBS) \ |
William A. Kennington III | 6eb2940 | 2019-03-14 11:03:55 -0700 | [diff] [blame] | 60 | -lstdc++fs |
| 61 | |
| 62 | libsyscmdsdir = ${libdir}/ipmid-providers |
| 63 | libsyscmds_LTLIBRARIES = libsyscmds.la |
| 64 | libsyscmds_la_SOURCES = main.cpp |
| 65 | libsyscmds_la_LIBADD = libsyscmds_common.la |
| 66 | libsyscmds_la_LDFLAGS = \ |
William A. Kennington III | 2c9e162 | 2019-02-07 15:45:19 -0800 | [diff] [blame] | 67 | $(LIBIPMID_LIBS) \ |
Patrick Venture | a313c40 | 2018-11-09 08:25:06 -0800 | [diff] [blame] | 68 | -version-info 0:0:0 -shared |
Patrick Venture | 4d49ae6 | 2018-09-17 11:35:32 -0700 | [diff] [blame] | 69 | |
Patrick Venture | a313c40 | 2018-11-09 08:25:06 -0800 | [diff] [blame] | 70 | libsyscmds_la_CXXFLAGS = \ |
William A. Kennington III | 2c9e162 | 2019-02-07 15:45:19 -0800 | [diff] [blame] | 71 | $(LIBIPMID_CFLAGS) \ |
Patrick Venture | 6667a64 | 2019-03-13 16:39:30 -0700 | [diff] [blame] | 72 | $(CODE_COVERAGE_CXXFLAGS) \ |
Patrick Venture | ff40f27 | 2018-11-09 08:38:23 -0800 | [diff] [blame] | 73 | -flto |
Patrick Venture | 848b938 | 2019-03-13 15:48:23 -0700 | [diff] [blame] | 74 | |
| 75 | SUBDIRS = . test |