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