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