Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | AM_CPPFLAGS = -iquote ${top_srcdir} |
| 3 | |
Patrick Venture | 71779ab | 2019-03-28 11:22:15 -0700 | [diff] [blame] | 4 | bin_PROGRAMS = \ |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 5 | phosphor-fan-monitor |
| 6 | |
Matt Spinler | 7df2d9f | 2021-02-04 16:44:25 -0600 | [diff] [blame] | 7 | systemdsystemunit_DATA= |
| 8 | |
| 9 | if WANT_JSON |
| 10 | systemdsystemunit_DATA += \ |
| 11 | service_files/json/phosphor-fan-monitor@.service |
| 12 | else |
| 13 | systemdsystemunit_DATA += \ |
| 14 | service_files/yaml/phosphor-fan-monitor@.service \ |
| 15 | service_files/yaml/phosphor-fan-monitor-init@.service |
| 16 | endif |
| 17 | |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 18 | phosphor_fan_monitor_SOURCES = \ |
Matthew Barth | 6ad2843 | 2017-08-22 11:18:19 -0500 | [diff] [blame] | 19 | argument.cpp \ |
Matt Spinler | abf8da3 | 2017-04-27 14:08:45 -0500 | [diff] [blame] | 20 | fan.cpp \ |
Matt Spinler | f13b42e | 2020-10-26 15:29:49 -0500 | [diff] [blame] | 21 | fan_error.cpp \ |
Matt Spinler | 69b0cf0 | 2020-10-14 10:59:03 -0500 | [diff] [blame] | 22 | power_interface.cpp \ |
| 23 | logging.cpp \ |
Matt Spinler | abf8da3 | 2017-04-27 14:08:45 -0500 | [diff] [blame] | 24 | main.cpp \ |
Matthew Barth | 81748b1 | 2018-05-02 16:03:48 -0500 | [diff] [blame] | 25 | tach_sensor.cpp \ |
Matthew Barth | c95c527 | 2020-06-15 19:51:13 -0500 | [diff] [blame] | 26 | conditions.cpp \ |
| 27 | system.cpp |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 28 | |
| 29 | phosphor_fan_monitor_LDADD = \ |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 30 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | 1cfc2f1 | 2018-10-19 17:29:46 -0700 | [diff] [blame] | 31 | $(SDEVENTPLUS_LIBS) \ |
Dinesh Chinari | 618027a | 2017-06-26 23:26:50 -0500 | [diff] [blame] | 32 | $(PHOSPHOR_LOGGING_LIBS) \ |
Matthew Barth | 4d98285 | 2017-11-17 09:37:13 -0600 | [diff] [blame] | 33 | ${PHOSPHOR_DBUS_INTERFACES_LIBS} \ |
Matthew Barth | d06905c | 2020-06-12 08:13:06 -0500 | [diff] [blame] | 34 | -lstdc++fs \ |
Matthew Barth | 1826c73 | 2020-08-28 08:40:59 -0500 | [diff] [blame] | 35 | $(STDPLUS_LIBS) \ |
| 36 | $(FMT_LIBS) |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 37 | |
| 38 | phosphor_fan_monitor_CXXFLAGS = \ |
| 39 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | 1cfc2f1 | 2018-10-19 17:29:46 -0700 | [diff] [blame] | 40 | $(SDEVENTPLUS_CFLAGS) \ |
Dinesh Chinari | 618027a | 2017-06-26 23:26:50 -0500 | [diff] [blame] | 41 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
Andrew Geissler | ecd4bc7 | 2018-08-27 10:52:23 -0700 | [diff] [blame] | 42 | ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \ |
Matthew Barth | d06905c | 2020-06-12 08:13:06 -0500 | [diff] [blame] | 43 | -flto \ |
| 44 | $(STDPLUS_CFLAGS) |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 45 | |
Matthew Barth | bedefd8 | 2020-06-02 15:39:56 -0500 | [diff] [blame] | 46 | if WANT_JSON |
| 47 | phosphor_fan_monitor_SOURCES += json_parser.cpp |
| 48 | else |
| 49 | BUILT_SOURCES = fan_monitor_defs.cpp |
| 50 | nodist_phosphor_fan_monitor_SOURCES = \ |
| 51 | fan_monitor_defs.cpp |
| 52 | |
Matt Spinler | 1432184 | 2017-04-28 15:27:43 -0500 | [diff] [blame] | 53 | fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py |
Matthew Barth | 8c8f53d | 2020-02-18 09:40:13 -0600 | [diff] [blame] | 54 | $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS) > ${builddir}/$@ |
Matthew Barth | bedefd8 | 2020-06-02 15:39:56 -0500 | [diff] [blame] | 55 | endif |
Matt Spinler | 0023743 | 2020-10-14 10:36:41 -0500 | [diff] [blame] | 56 | |
| 57 | SUBDIRS = test |