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 | |
| 7 | phosphor_fan_monitor_SOURCES = \ |
Matthew Barth | 6ad2843 | 2017-08-22 11:18:19 -0500 | [diff] [blame] | 8 | argument.cpp \ |
Matt Spinler | abf8da3 | 2017-04-27 14:08:45 -0500 | [diff] [blame] | 9 | fan.cpp \ |
Matt Spinler | abf8da3 | 2017-04-27 14:08:45 -0500 | [diff] [blame] | 10 | main.cpp \ |
Matthew Barth | 81748b1 | 2018-05-02 16:03:48 -0500 | [diff] [blame] | 11 | tach_sensor.cpp \ |
Matthew Barth | c95c527 | 2020-06-15 19:51:13 -0500 | [diff] [blame] | 12 | conditions.cpp \ |
| 13 | system.cpp |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 14 | |
| 15 | phosphor_fan_monitor_LDADD = \ |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 16 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | 1cfc2f1 | 2018-10-19 17:29:46 -0700 | [diff] [blame] | 17 | $(SDEVENTPLUS_LIBS) \ |
Dinesh Chinari | 618027a | 2017-06-26 23:26:50 -0500 | [diff] [blame] | 18 | $(PHOSPHOR_LOGGING_LIBS) \ |
Matthew Barth | 4d98285 | 2017-11-17 09:37:13 -0600 | [diff] [blame] | 19 | ${PHOSPHOR_DBUS_INTERFACES_LIBS} \ |
Matthew Barth | d06905c | 2020-06-12 08:13:06 -0500 | [diff] [blame] | 20 | -lstdc++fs \ |
Matthew Barth | 1826c73 | 2020-08-28 08:40:59 -0500 | [diff] [blame] | 21 | $(STDPLUS_LIBS) \ |
| 22 | $(FMT_LIBS) |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 23 | |
| 24 | phosphor_fan_monitor_CXXFLAGS = \ |
| 25 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | 1cfc2f1 | 2018-10-19 17:29:46 -0700 | [diff] [blame] | 26 | $(SDEVENTPLUS_CFLAGS) \ |
Dinesh Chinari | 618027a | 2017-06-26 23:26:50 -0500 | [diff] [blame] | 27 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
Andrew Geissler | ecd4bc7 | 2018-08-27 10:52:23 -0700 | [diff] [blame] | 28 | ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \ |
Matthew Barth | d06905c | 2020-06-12 08:13:06 -0500 | [diff] [blame] | 29 | -flto \ |
| 30 | $(STDPLUS_CFLAGS) |
Matt Spinler | e567dd2 | 2017-04-27 12:27:17 -0500 | [diff] [blame] | 31 | |
Matthew Barth | bedefd8 | 2020-06-02 15:39:56 -0500 | [diff] [blame] | 32 | if WANT_JSON |
| 33 | phosphor_fan_monitor_SOURCES += json_parser.cpp |
| 34 | else |
| 35 | BUILT_SOURCES = fan_monitor_defs.cpp |
| 36 | nodist_phosphor_fan_monitor_SOURCES = \ |
| 37 | fan_monitor_defs.cpp |
| 38 | |
Matt Spinler | 1432184 | 2017-04-28 15:27:43 -0500 | [diff] [blame] | 39 | fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py |
Matthew Barth | 8c8f53d | 2020-02-18 09:40:13 -0600 | [diff] [blame] | 40 | $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS) > ${builddir}/$@ |
Matthew Barth | bedefd8 | 2020-06-02 15:39:56 -0500 | [diff] [blame] | 41 | endif |
Matt Spinler | 0023743 | 2020-10-14 10:36:41 -0500 | [diff] [blame^] | 42 | |
| 43 | SUBDIRS = test |