control: command line tool to retrieve fan status (status/help functions)
This is part one of a multipart commit to create a fan control
command line utility to report service status, show target/
actual RPM/PWM info, and manually control single fans.
Currently this only implements "status" and "help" commands
(and makefile). Further functionality will come in subsequent
commits.
Signed-off-by: Mike Capps <mikepcapps@gmail.com>
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: I9a9fc5c50edf7981075b59bb526e967e50e67c86
diff --git a/control/Makefile.am b/control/Makefile.am
index 0af34d2..2ac6d4a 100644
--- a/control/Makefile.am
+++ b/control/Makefile.am
@@ -31,7 +31,8 @@
endif
bin_PROGRAMS = \
- phosphor-fan-control
+ phosphor-fan-control \
+ fanctl
phosphor_fan_control_SOURCES = \
main.cpp
@@ -51,6 +52,19 @@
${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
-flto
+fanctl_SOURCES = \
+ fanctl.cpp
+
+fanctl_CXXFLAGS = \
+ $(SDBUSPLUS_CFLAGS) \
+ -flto
+
+fanctl_LDADD = \
+ $(SDBUSPLUS_LIBS) \
+ $(FMT_LIBS)
+
+
+
if WANT_JSON_CONTROL
phosphor_fan_control_SOURCES += \
json/manager.cpp \