blob: b51563dd63507eab033c226fc8cdbc66f3f1cf8e [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 Bishop00b52082017-07-25 19:52:22 -04008 anyof.cpp \
Brad Bishopbfb81602017-06-14 21:14:32 -04009 fallback.cpp \
Brad Bishop825e31e2017-06-14 16:38:22 -040010 fan.cpp \
Brad Bishop5c589482017-06-14 22:32:20 -040011 gpio.cpp \
Brad Bishop61749512017-07-25 19:02:15 -040012 psensor.cpp \
Brad Bishopdd62e362017-06-14 16:54:03 -040013 tach.cpp \
Brad Bishop9df0e162017-04-22 14:19:45 -040014 tach_detect.cpp
Brad Bishop9df0e162017-04-22 14:19:45 -040015
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
Brad Bishop372b22c2017-07-12 15:57:14 -040028BUILT_SOURCES = generated.hpp
Brad Bishop76596b22017-06-13 14:39:13 -040029TEMPLATES = \
30 templates/generated.mako.hpp
Brad Bishop9df0e162017-04-22 14:19:45 -040031
Brad Bishop76596b22017-06-13 14:39:13 -040032generated.hpp: $(TEMPLATES) ${srcdir}/pfpgen.py $(PRESENCE_CONFIG)
33 $(AM_V_GEN)$(PFPGEN) > $(builddir)/$@