Matt Spinler | e73446e | 2017-04-10 13:55:52 -0500 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
Matthew Barth | e6704b9 | 2020-10-20 16:14:08 -0500 | [diff] [blame] | 2 | AM_CPPFLAGS = -iquote ${top_srcdir} -I${srcdir}/json -I${srcdir}/json/actions |
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 = \ |
Matthew Barth | f8ae7a5 | 2021-03-05 10:23:43 -0600 | [diff] [blame] | 8 | main.cpp |
Matt Spinler | e73446e | 2017-04-10 13:55:52 -0500 | [diff] [blame] | 9 | |
Brad Bishop | 1048401 | 2017-04-24 22:59:18 -0400 | [diff] [blame] | 10 | phosphor_fan_control_LDADD = \ |
Matthew Barth | 93af419 | 2019-01-18 09:30:57 -0600 | [diff] [blame] | 11 | -lstdc++fs \ |
Brad Bishop | 1048401 | 2017-04-24 22:59:18 -0400 | [diff] [blame] | 12 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | 1cfc2f1 | 2018-10-19 17:29:46 -0700 | [diff] [blame] | 13 | $(SDEVENTPLUS_LIBS) \ |
Dinesh Chinari | 618027a | 2017-06-26 23:26:50 -0500 | [diff] [blame] | 14 | $(PHOSPHOR_LOGGING_LIBS) \ |
Matthew Barth | 1826c73 | 2020-08-28 08:40:59 -0500 | [diff] [blame] | 15 | ${PHOSPHOR_DBUS_INTERFACES_LIBS} \ |
| 16 | $(FMT_LIBS) |
Brad Bishop | 1048401 | 2017-04-24 22:59:18 -0400 | [diff] [blame] | 17 | |
| 18 | phosphor_fan_control_CXXFLAGS = \ |
| 19 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | 1cfc2f1 | 2018-10-19 17:29:46 -0700 | [diff] [blame] | 20 | $(SDEVENTPLUS_CFLAGS) \ |
Dinesh Chinari | 618027a | 2017-06-26 23:26:50 -0500 | [diff] [blame] | 21 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
Andrew Geissler | ecd4bc7 | 2018-08-27 10:52:23 -0700 | [diff] [blame] | 22 | ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \ |
| 23 | -flto |
Matt Spinler | 77d32d1 | 2017-04-12 09:51:41 -0500 | [diff] [blame] | 24 | |
Matthew Barth | 8e1b382 | 2020-11-12 11:57:23 -0600 | [diff] [blame] | 25 | if WANT_JSON_CONTROL |
Matthew Barth | e6704b9 | 2020-10-20 16:14:08 -0500 | [diff] [blame] | 26 | phosphor_fan_control_SOURCES += \ |
Matthew Barth | e6704b9 | 2020-10-20 16:14:08 -0500 | [diff] [blame] | 27 | json/manager.cpp \ |
| 28 | json/profile.cpp \ |
| 29 | json/fan.cpp \ |
| 30 | json/zone.cpp \ |
| 31 | json/group.cpp \ |
Matthew Barth | 0c4b157 | 2020-10-22 14:39:46 -0500 | [diff] [blame] | 32 | json/event.cpp \ |
Matthew Barth | 07fecfc | 2021-01-29 09:04:43 -0600 | [diff] [blame] | 33 | json/actions/default_floor.cpp \ |
Matthew Barth | 070ee3c | 2021-01-29 09:58:16 -0600 | [diff] [blame] | 34 | json/actions/request_target_base.cpp \ |
Matthew Barth | 89c2fa1 | 2021-02-04 14:50:40 -0600 | [diff] [blame] | 35 | json/actions/missing_owner_target.cpp \ |
Matthew Barth | dc776c8 | 2021-02-25 16:06:16 -0600 | [diff] [blame] | 36 | json/actions/count_state_target.cpp \ |
Matthew Barth | 45c44ea | 2021-03-03 13:16:14 -0600 | [diff] [blame] | 37 | json/actions/net_target_increase.cpp \ |
| 38 | json/actions/net_target_decrease.cpp |
Matthew Barth | d87f89f | 2020-07-30 10:41:32 -0500 | [diff] [blame] | 39 | else |
Matthew Barth | f8ae7a5 | 2021-03-05 10:23:43 -0600 | [diff] [blame] | 40 | phosphor_fan_control_SOURCES += \ |
| 41 | argument.cpp \ |
| 42 | fan.cpp \ |
| 43 | manager.cpp \ |
| 44 | utility.cpp \ |
| 45 | preconditions.cpp \ |
| 46 | actions.cpp \ |
| 47 | triggers.cpp \ |
| 48 | zone.cpp |
Matt Spinler | 77d32d1 | 2017-04-12 09:51:41 -0500 | [diff] [blame] | 49 | BUILT_SOURCES = fan_zone_defs.cpp |
Matthew Barth | d87f89f | 2020-07-30 10:41:32 -0500 | [diff] [blame] | 50 | nodist_phosphor_fan_control_SOURCES = \ |
| 51 | fan_zone_defs.cpp |
Matt Spinler | 77d32d1 | 2017-04-12 09:51:41 -0500 | [diff] [blame] | 52 | |
| 53 | fan_zone_defs.cpp: ${srcdir}/gen-fan-zone-defs.py |
Matthew Barth | 8c8f53d | 2020-02-18 09:40:13 -0600 | [diff] [blame] | 54 | $(AM_V_GEN)$(GEN_FAN_ZONE_DEFS) > ${builddir}/$@ |
Matthew Barth | d87f89f | 2020-07-30 10:41:32 -0500 | [diff] [blame] | 55 | endif |