Matt Spinler | e73446e | 2017-04-10 13:55:52 -0500 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
Brad Bishop | 9df0e16 | 2017-04-22 14:19:45 -0400 | [diff] [blame] | 2 | AM_CPPFLAGS = -iquote ${top_srcdir} |
Matt Spinler | e73446e | 2017-04-10 13:55:52 -0500 | [diff] [blame] | 3 | |
Patrick Venture | 71779ab | 2019-03-28 11:22:15 -0700 | [diff] [blame] | 4 | bin_PROGRAMS = \ |
Matt Spinler | e73446e | 2017-04-10 13:55:52 -0500 | [diff] [blame] | 5 | phosphor-fan-control |
6 | |||||
7 | phosphor_fan_control_SOURCES = \ | ||||
Matt Spinler | ee7f642 | 2017-05-09 11:03:14 -0500 | [diff] [blame] | 8 | argument.cpp \ |
Matt Spinler | e2b25cb | 2017-04-10 14:33:35 -0500 | [diff] [blame] | 9 | fan.cpp \ |
Matt Spinler | e10416e | 2017-04-10 14:15:53 -0500 | [diff] [blame] | 10 | main.cpp \ |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 11 | manager.cpp \ |
Matthew Barth | 014f07c | 2019-05-30 09:55:42 -0500 | [diff] [blame] | 12 | utility.cpp \ |
Matthew Barth | 03aff08 | 2018-12-12 15:20:22 -0600 | [diff] [blame] | 13 | preconditions.cpp \ |
Matthew Barth | b280bfa | 2017-09-15 09:56:50 -0500 | [diff] [blame] | 14 | actions.cpp \ |
Matthew Barth | 1b4de26 | 2018-03-06 13:03:16 -0600 | [diff] [blame] | 15 | triggers.cpp \ |
Matt Spinler | 7f88fe6 | 2017-04-10 14:39:02 -0500 | [diff] [blame] | 16 | zone.cpp |
Matt Spinler | e73446e | 2017-04-10 13:55:52 -0500 | [diff] [blame] | 17 | |
Brad Bishop | 1048401 | 2017-04-24 22:59:18 -0400 | [diff] [blame] | 18 | phosphor_fan_control_LDADD = \ |
Matthew Barth | 93af419 | 2019-01-18 09:30:57 -0600 | [diff] [blame] | 19 | -lstdc++fs \ |
Brad Bishop | 1048401 | 2017-04-24 22:59:18 -0400 | [diff] [blame] | 20 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | 1cfc2f1 | 2018-10-19 17:29:46 -0700 | [diff] [blame] | 21 | $(SDEVENTPLUS_LIBS) \ |
Dinesh Chinari | 618027a | 2017-06-26 23:26:50 -0500 | [diff] [blame] | 22 | $(PHOSPHOR_LOGGING_LIBS) \ |
Matthew Barth | 1826c73 | 2020-08-28 08:40:59 -0500 | [diff] [blame] | 23 | ${PHOSPHOR_DBUS_INTERFACES_LIBS} \ |
24 | $(FMT_LIBS) | ||||
Brad Bishop | 1048401 | 2017-04-24 22:59:18 -0400 | [diff] [blame] | 25 | |
26 | phosphor_fan_control_CXXFLAGS = \ | ||||
27 | $(SDBUSPLUS_CFLAGS) \ | ||||
William A. Kennington III | 1cfc2f1 | 2018-10-19 17:29:46 -0700 | [diff] [blame] | 28 | $(SDEVENTPLUS_CFLAGS) \ |
Dinesh Chinari | 618027a | 2017-06-26 23:26:50 -0500 | [diff] [blame] | 29 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
Andrew Geissler | ecd4bc7 | 2018-08-27 10:52:23 -0700 | [diff] [blame] | 30 | ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \ |
31 | -flto | ||||
Matt Spinler | 77d32d1 | 2017-04-12 09:51:41 -0500 | [diff] [blame] | 32 | |
Matthew Barth | d87f89f | 2020-07-30 10:41:32 -0500 | [diff] [blame] | 33 | if WANT_JSON |
Matthew Barth | 167d2dd | 2020-08-04 12:19:16 -0500 | [diff] [blame] | 34 | SUBDIRS = json . |
35 | phosphor_fan_control_LDADD += ${builddir}/json/libfan-control-json.la | ||||
Matthew Barth | d87f89f | 2020-07-30 10:41:32 -0500 | [diff] [blame] | 36 | phosphor_fan_control_SOURCES += json_parser.cpp |
37 | else | ||||
Matt Spinler | 77d32d1 | 2017-04-12 09:51:41 -0500 | [diff] [blame] | 38 | BUILT_SOURCES = fan_zone_defs.cpp |
Matthew Barth | d87f89f | 2020-07-30 10:41:32 -0500 | [diff] [blame] | 39 | nodist_phosphor_fan_control_SOURCES = \ |
40 | fan_zone_defs.cpp | ||||
Matt Spinler | 77d32d1 | 2017-04-12 09:51:41 -0500 | [diff] [blame] | 41 | |
42 | fan_zone_defs.cpp: ${srcdir}/gen-fan-zone-defs.py | ||||
Matthew Barth | 8c8f53d | 2020-02-18 09:40:13 -0600 | [diff] [blame] | 43 | $(AM_V_GEN)$(GEN_FAN_ZONE_DEFS) > ${builddir}/$@ |
Matthew Barth | d87f89f | 2020-07-30 10:41:32 -0500 | [diff] [blame] | 44 | endif |