| Patrick Venture | 69a68ed | 2019-03-06 10:37:30 -0800 | [diff] [blame] | 1 | # Ignore system headers | 
|  | 2 | CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' | 
|  | 3 | export CODE_COVERAGE_IGNORE_PATTERN | 
|  | 4 |  | 
|  | 5 | CODE_COVERAGE_LCOV_SHOPTS = $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT) | 
|  | 6 | # Use our configuration file for lcov | 
|  | 7 | CODE_COVERAGE_LCOV_SHOPTS += --config-file $(abs_srcdir)/.lcovrc | 
|  | 8 | export CODE_COVERAGE_LCOV_SHOPTS | 
|  | 9 |  | 
|  | 10 | CODE_COVERAGE_LCOV_OPTIONS = $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT) | 
|  | 11 | # Use our configuration file for lcov | 
|  | 12 | CODE_COVERAGE_LCOV_OPTIONS += --config-file $(abs_srcdir)/.lcovrc | 
|  | 13 | export CODE_COVERAGE_LCOV_OPTIONS | 
|  | 14 |  | 
|  | 15 | CODE_COVERAGE_LCOV_RMOPTS = $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT) | 
|  | 16 | # Use our configuration file for lcov | 
|  | 17 | CODE_COVERAGE_LCOV_RMOPTS += --config-file $(abs_srcdir)/.lcovrc | 
|  | 18 | export CODE_COVERAGE_LCOV_RMOPTS | 
|  | 19 |  | 
|  | 20 | CODE_COVERAGE_GENHTML_OPTIONS = $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT) | 
|  | 21 | # Use our configuration file for genhtml | 
|  | 22 | CODE_COVERAGE_GENHTML_OPTIONS += --config-file $(abs_srcdir)/.lcovrc | 
|  | 23 | # Don't generate the absolute path for each file in the HTML output | 
|  | 24 | CODE_COVERAGE_GENHTML_OPTIONS += --prefix $(abs_srcdir) --prefix $(abs_builddir) | 
|  | 25 | export CODE_COVERAGE_GENHTML_OPTIONS | 
|  | 26 |  | 
|  | 27 | if AUTOCONF_CODE_COVERAGE_2019_01_06 | 
|  | 28 | include $(top_srcdir)/aminclude_static.am | 
|  | 29 | clean-local: code-coverage-clean | 
|  | 30 | distclean-local: code-coverage-dist-clean | 
|  | 31 | else | 
|  | 32 | @CODE_COVERAGE_RULES@ | 
|  | 33 | endif | 
|  | 34 |  | 
| Patrick Venture | 1f30ab2 | 2019-03-28 13:31:47 -0700 | [diff] [blame] | 35 | bin_PROGRAMS = phosphor-hwmon-readd | 
| Matthew Barth | 6292aee | 2016-10-06 10:15:48 -0500 | [diff] [blame] | 36 |  | 
|  | 37 | phosphor_hwmon_readd_SOURCES = readd.cpp | 
| Patrick Venture | 69a68ed | 2019-03-06 10:37:30 -0800 | [diff] [blame] | 38 | phosphor_hwmon_readd_LDADD = $(SDBUSPLUS_LIBS) $(CODE_COVERAGE_LIBS) libhwmon.la | 
|  | 39 | phosphor_hwmon_readd_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(CODE_COVERAGE_CXXFLAGS) | 
| Matthew Barth | 6292aee | 2016-10-06 10:15:48 -0500 | [diff] [blame] | 40 |  | 
| Brad Bishop | 4c9c454 | 2016-12-05 15:07:51 -0500 | [diff] [blame] | 41 | noinst_LTLIBRARIES = libhwmon.la | 
| Brad Bishop | 0be1f8d | 2017-03-06 21:52:00 -0500 | [diff] [blame] | 42 | libhwmon_la_LDFLAGS = -static | 
|  | 43 | libhwmon_la_LIBADD = \ | 
| Brad Bishop | 08379a3 | 2017-03-06 21:28:46 -0500 | [diff] [blame] | 44 | -lstdc++fs \ | 
| Brad Bishop | 4db6442 | 2017-02-16 11:33:32 -0500 | [diff] [blame] | 45 | $(SDBUSPLUS_LIBS) \ | 
| William A. Kennington III | 0fe4cb3 | 2018-10-18 19:19:58 -0700 | [diff] [blame] | 46 | $(SDEVENTPLUS_LIBS) \ | 
| Brad Bishop | 4db6442 | 2017-02-16 11:33:32 -0500 | [diff] [blame] | 47 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ | 
| Patrick Venture | b28f432 | 2018-09-14 10:19:14 -0700 | [diff] [blame] | 48 | $(PHOSPHOR_LOGGING_LIBS) \ | 
| Patrick Venture | 69a68ed | 2019-03-06 10:37:30 -0800 | [diff] [blame] | 49 | $(GPIOPLUS_LIBS) \ | 
| William A. Kennington III | 2227bd5 | 2019-06-19 11:32:22 -0700 | [diff] [blame] | 50 | $(STDPLUS_LIBS) \ | 
| Matt Spinler | 5e034af | 2020-06-24 15:21:53 -0500 | [diff] [blame] | 51 | $(CODE_COVERAGE_LIBS) \ | 
|  | 52 | $(FMT_LIBS) | 
| Brad Bishop | 0be1f8d | 2017-03-06 21:52:00 -0500 | [diff] [blame] | 53 | libhwmon_la_CXXFLAGS = \ | 
|  | 54 | $(SDBUSPLUS_CFLAGS) \ | 
| William A. Kennington III | 0fe4cb3 | 2018-10-18 19:19:58 -0700 | [diff] [blame] | 55 | $(SDEVENTPLUS_CFLAGS) \ | 
| Brad Bishop | 4db6442 | 2017-02-16 11:33:32 -0500 | [diff] [blame] | 56 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ | 
| Patrick Venture | b28f432 | 2018-09-14 10:19:14 -0700 | [diff] [blame] | 57 | $(PHOSPHOR_LOGGING_CFLAGS) \ | 
| William A. Kennington III | 2227bd5 | 2019-06-19 11:32:22 -0700 | [diff] [blame] | 58 | $(STDPLUS_CFLAGS) \ | 
| Patrick Venture | 69a68ed | 2019-03-06 10:37:30 -0800 | [diff] [blame] | 59 | $(CODE_COVERAGE_CXXFLAGS) | 
| Brad Bishop | bf86e72 | 2017-02-16 11:10:40 -0500 | [diff] [blame] | 60 |  | 
| Brad Bishop | 4c9c454 | 2016-12-05 15:07:51 -0500 | [diff] [blame] | 61 | libhwmon_la_SOURCES = \ | 
| Brad Bishop | e55ef3d | 2016-12-19 09:12:40 -0500 | [diff] [blame] | 62 | sensorset.cpp \ | 
| Brad Bishop | 6ae0330 | 2016-12-19 13:37:43 -0500 | [diff] [blame] | 63 | mainloop.cpp \ | 
| Brad Bishop | 613a5b3 | 2017-01-05 20:58:13 -0500 | [diff] [blame] | 64 | sysfs.cpp \ | 
| Matthew Barth | 048ac87 | 2017-03-09 14:36:08 -0600 | [diff] [blame] | 65 | env.cpp \ | 
| Patrick Venture | 9331ab7 | 2018-01-29 09:48:47 -0800 | [diff] [blame] | 66 | fan_speed.cpp \ | 
| Deepak Kodihalli | 6aa24d4 | 2018-03-07 01:10:03 -0600 | [diff] [blame] | 67 | fan_pwm.cpp \ | 
| Patrick Venture | 75e56c6 | 2018-04-20 18:10:15 -0700 | [diff] [blame] | 68 | hwmon.cpp \ | 
| Matthew Barth | 3581938 | 2018-04-18 14:53:01 -0500 | [diff] [blame] | 69 | hwmonio.cpp \ | 
| Patrick Venture | b28f432 | 2018-09-14 10:19:14 -0700 | [diff] [blame] | 70 | sensor.cpp \ | 
| Carol Wang | 9bbe602 | 2019-08-01 17:31:30 +0800 | [diff] [blame] | 71 | gpio_handle.cpp \ | 
|  | 72 | average.cpp | 
| Brad Bishop | e9ac8b4 | 2016-12-19 09:30:40 -0500 | [diff] [blame] | 73 |  | 
| Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 74 | SUBDIRS = . msl test tools |