blob: 8eda1e04e2ce1db169ff57714417f1d2d264d030 [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 \
11 tach_sensor.cpp
Matt Spinlere567dd22017-04-27 12:27:17 -050012
Matt Spinler14321842017-04-28 15:27:43 -050013nodist_phosphor_fan_monitor_SOURCES = \
14 fan_monitor_defs.cpp
15
16BUILT_SOURCES = fan_monitor_defs.cpp
17
Matt Spinlere567dd22017-04-27 12:27:17 -050018phosphor_fan_monitor_LDADD = \
Matt Spinlerebaae612017-04-27 14:21:48 -050019 $(top_builddir)/libfan.la \
Matt Spinlere567dd22017-04-27 12:27:17 -050020 $(SDBUSPLUS_LIBS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050021 $(PHOSPHOR_LOGGING_LIBS) \
Matthew Barth4d982852017-11-17 09:37:13 -060022 ${PHOSPHOR_DBUS_INTERFACES_LIBS} \
23 -lstdc++fs
Matt Spinlere567dd22017-04-27 12:27:17 -050024
25phosphor_fan_monitor_CXXFLAGS = \
26 $(SDBUSPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050027 $(PHOSPHOR_LOGGING_CFLAGS) \
28 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS}
Matt Spinlere567dd22017-04-27 12:27:17 -050029
Matt Spinler14321842017-04-28 15:27:43 -050030fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py
31 $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS)