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