blob: cb9b8a4f82b7218585c7391eccdb1fab5697b5dc [file] [log] [blame]
Matt Spinlere567dd22017-04-27 12:27:17 -05001AM_DEFAULT_SOURCE_EXT = .cpp
2AM_CPPFLAGS = -iquote ${top_srcdir}
3
4sbin_PROGRAMS = \
5 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 \
12 conditions.cpp
Matt Spinlere567dd22017-04-27 12:27:17 -050013
Matt Spinler14321842017-04-28 15:27:43 -050014nodist_phosphor_fan_monitor_SOURCES = \
15 fan_monitor_defs.cpp
16
17BUILT_SOURCES = fan_monitor_defs.cpp
18
Matt Spinlere567dd22017-04-27 12:27:17 -050019phosphor_fan_monitor_LDADD = \
Matt Spinlerebaae612017-04-27 14:21:48 -050020 $(top_builddir)/libfan.la \
Matt Spinlere567dd22017-04-27 12:27:17 -050021 $(SDBUSPLUS_LIBS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050022 $(PHOSPHOR_LOGGING_LIBS) \
Matthew Barth4d982852017-11-17 09:37:13 -060023 ${PHOSPHOR_DBUS_INTERFACES_LIBS} \
24 -lstdc++fs
Matt Spinlere567dd22017-04-27 12:27:17 -050025
26phosphor_fan_monitor_CXXFLAGS = \
27 $(SDBUSPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050028 $(PHOSPHOR_LOGGING_CFLAGS) \
Andrew Geisslerecd4bc72018-08-27 10:52:23 -070029 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
30 -flto
Matt Spinlere567dd22017-04-27 12:27:17 -050031
Matt Spinler14321842017-04-28 15:27:43 -050032fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py
33 $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS)