blob: c3c32a5df1f7b8da2c187be5ef52a638cf1aaed2 [file] [log] [blame]
Brad Bishop9df0e162017-04-22 14:19:45 -04001AM_DEFAULT_SOURCE_EXT = .cpp
2AM_CPPFLAGS = -iquote ${top_srcdir}
3
4sbin_PROGRAMS = \
5 phosphor-fan-presence-tach
6
7phosphor_fan_presence_tach_SOURCES = \
8 fan_enclosure.cpp \
9 tach_sensor.cpp \
10 tach_detect.cpp
11nodist_phosphor_fan_presence_tach_SOURCES = \
12 fan_detect_defs.cpp
13
14phosphor_fan_presence_tach_LDADD = \
15 $(top_builddir)/libfan.la \
16 $(SDBUSPLUS_LIBS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050017 $(PHOSPHOR_LOGGING_LIBS) \
Brad Bishop8a502f52017-06-14 23:46:15 -040018 ${PHOSPHOR_DBUS_INTERFACES_LIBS} \
19 $(LIBEVDEV_LIBS)
Brad Bishop9df0e162017-04-22 14:19:45 -040020phosphor_fan_presence_tach_CXXFLAGS = \
21 $(SDBUSPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050022 $(PHOSPHOR_LOGGING_CFLAGS) \
Brad Bishop8a502f52017-06-14 23:46:15 -040023 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
24 $(LIBEVDEV_CFLAGS)
Brad Bishop9df0e162017-04-22 14:19:45 -040025
26BUILT_SOURCES = fan_detect_defs.cpp
27
Brad Bishop9c2994e2017-06-05 22:06:36 -040028fan_detect_defs.cpp: ${srcdir}/gen-fan-detect-defs.py $(FAN_DETECT_YAML_FILE)
29 $(AM_V_GEN)$(GEN_FAN_DETECT_DEFS) > $(builddir)/$@