blob: ecfab710f60dd79dc45f905de56debcd9edafb3d [file] [log] [blame]
Matt Spinlere567dd22017-04-27 12:27:17 -05001AM_DEFAULT_SOURCE_EXT = .cpp
2AM_CPPFLAGS = -iquote ${top_srcdir}
3
Patrick Venture71779ab2019-03-28 11:22:15 -07004bin_PROGRAMS = \
Matt Spinlere567dd22017-04-27 12:27:17 -05005 phosphor-fan-monitor
6
7phosphor_fan_monitor_SOURCES = \
Matthew Barth6ad28432017-08-22 11:18:19 -05008 argument.cpp \
Matt Spinlerabf8da32017-04-27 14:08:45 -05009 fan.cpp \
Matt Spinlerabf8da32017-04-27 14:08:45 -050010 main.cpp \
Matthew Barth81748b12018-05-02 16:03:48 -050011 tach_sensor.cpp \
Matthew Barthc95c5272020-06-15 19:51:13 -050012 conditions.cpp \
13 system.cpp
Matt Spinlere567dd22017-04-27 12:27:17 -050014
15phosphor_fan_monitor_LDADD = \
Matt Spinlere567dd22017-04-27 12:27:17 -050016 $(SDBUSPLUS_LIBS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070017 $(SDEVENTPLUS_LIBS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050018 $(PHOSPHOR_LOGGING_LIBS) \
Matthew Barth4d982852017-11-17 09:37:13 -060019 ${PHOSPHOR_DBUS_INTERFACES_LIBS} \
Matthew Barthd06905c2020-06-12 08:13:06 -050020 -lstdc++fs \
Matthew Barth1826c732020-08-28 08:40:59 -050021 $(STDPLUS_LIBS) \
22 $(FMT_LIBS)
Matt Spinlere567dd22017-04-27 12:27:17 -050023
24phosphor_fan_monitor_CXXFLAGS = \
25 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070026 $(SDEVENTPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050027 $(PHOSPHOR_LOGGING_CFLAGS) \
Andrew Geisslerecd4bc72018-08-27 10:52:23 -070028 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
Matthew Barthd06905c2020-06-12 08:13:06 -050029 -flto \
30 $(STDPLUS_CFLAGS)
Matt Spinlere567dd22017-04-27 12:27:17 -050031
Matthew Barthbedefd82020-06-02 15:39:56 -050032if WANT_JSON
33phosphor_fan_monitor_SOURCES += json_parser.cpp
34else
35BUILT_SOURCES = fan_monitor_defs.cpp
36nodist_phosphor_fan_monitor_SOURCES = \
37 fan_monitor_defs.cpp
38
Matt Spinler14321842017-04-28 15:27:43 -050039fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py
Matthew Barth8c8f53d2020-02-18 09:40:13 -060040 $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS) > ${builddir}/$@
Matthew Barthbedefd82020-06-02 15:39:56 -050041endif
Matt Spinler00237432020-10-14 10:36:41 -050042
43SUBDIRS = test