blob: 2ea49299da80274e368e97a8ee0a47460a4c6b49 [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 = \
Brad Bishop825e31e2017-06-14 16:38:22 -04008 fan.cpp \
Brad Bishopdd62e362017-06-14 16:54:03 -04009 tach.cpp \
Brad Bishop9df0e162017-04-22 14:19:45 -040010 fan_enclosure.cpp \
11 tach_sensor.cpp \
12 tach_detect.cpp
13nodist_phosphor_fan_presence_tach_SOURCES = \
14 fan_detect_defs.cpp
15
16phosphor_fan_presence_tach_LDADD = \
17 $(top_builddir)/libfan.la \
18 $(SDBUSPLUS_LIBS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050019 $(PHOSPHOR_LOGGING_LIBS) \
Brad Bishop8a502f52017-06-14 23:46:15 -040020 ${PHOSPHOR_DBUS_INTERFACES_LIBS} \
21 $(LIBEVDEV_LIBS)
Brad Bishop9df0e162017-04-22 14:19:45 -040022phosphor_fan_presence_tach_CXXFLAGS = \
23 $(SDBUSPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050024 $(PHOSPHOR_LOGGING_CFLAGS) \
Brad Bishop8a502f52017-06-14 23:46:15 -040025 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
26 $(LIBEVDEV_CFLAGS)
Brad Bishop9df0e162017-04-22 14:19:45 -040027
28BUILT_SOURCES = fan_detect_defs.cpp
29
Brad Bishop9c2994e2017-06-05 22:06:36 -040030fan_detect_defs.cpp: ${srcdir}/gen-fan-detect-defs.py $(FAN_DETECT_YAML_FILE)
31 $(AM_V_GEN)$(GEN_FAN_DETECT_DEFS) > $(builddir)/$@