blob: 10a736315f6cd4dc7e6c7f52a0e99ed13f16dd97 [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) \
17 $(PHOSPHOR_LOGGING_LIBS)
18phosphor_fan_presence_tach_CXXFLAGS = \
19 $(SDBUSPLUS_CFLAGS) \
20 $(PHOSPHOR_LOGGING_CFLAGS)
21
22BUILT_SOURCES = fan_detect_defs.cpp
23
24fan_detect_defs.cpp: ${srcdir}/gen-fan-detect-defs.py
25 $(AM_V_GEN)$(GEN_FAN_DETECT_DEFS) > $@