blob: 4e2d599df3167a3a96144da926d9a4a13c7989ec [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) \
22 ${PHOSPHOR_DBUS_INTERFACES_LIBS}
Matt Spinlere567dd22017-04-27 12:27:17 -050023
24phosphor_fan_monitor_CXXFLAGS = \
25 $(SDBUSPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050026 $(PHOSPHOR_LOGGING_CFLAGS) \
27 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS}
Matt Spinlere567dd22017-04-27 12:27:17 -050028
Matt Spinler14321842017-04-28 15:27:43 -050029fan_monitor_defs.cpp: ${srcdir}/gen-fan-monitor-defs.py
30 $(AM_V_GEN)$(GEN_FAN_MONITOR_DEFS)