blob: af66bbd750913619e539b094cddb8f6c35dac83a [file] [log] [blame]
Brad Bishop9df0e162017-04-22 14:19:45 -04001AM_DEFAULT_SOURCE_EXT = .cpp
2AM_CPPFLAGS = -iquote ${top_srcdir}
3
Patrick Venture71779ab2019-03-28 11:22:15 -07004bin_PROGRAMS = \
Brad Bishop9df0e162017-04-22 14:19:45 -04005 phosphor-fan-presence-tach
6
7phosphor_fan_presence_tach_SOURCES = \
Brad Bishop00b52082017-07-25 19:52:22 -04008 anyof.cpp \
Matt Spinlere8122392020-09-24 13:22:18 -05009 error_reporter.cpp \
Brad Bishopbfb81602017-06-14 21:14:32 -040010 fallback.cpp \
Brad Bishop825e31e2017-06-14 16:38:22 -040011 fan.cpp \
Brad Bishop5c589482017-06-14 22:32:20 -040012 gpio.cpp \
Matt Spinler635de8c2020-09-24 13:51:40 -050013 logging.cpp \
Brad Bishop61749512017-07-25 19:02:15 -040014 psensor.cpp \
Brad Bishopdd62e362017-06-14 16:54:03 -040015 tach.cpp \
Matthew Barthfd05d642019-11-14 15:01:57 -060016 tach_detect.cpp \
Jolie Ku1a568652020-08-24 16:32:15 +080017 json_parser.cpp
Brad Bishop9df0e162017-04-22 14:19:45 -040018
19phosphor_fan_presence_tach_LDADD = \
Brad Bishop9df0e162017-04-22 14:19:45 -040020 $(SDBUSPLUS_LIBS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070021 $(SDEVENTPLUS_LIBS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050022 $(PHOSPHOR_LOGGING_LIBS) \
Brad Bishop8a502f52017-06-14 23:46:15 -040023 ${PHOSPHOR_DBUS_INTERFACES_LIBS} \
Matthew Barthf3e70472019-12-03 13:33:20 -060024 $(LIBEVDEV_LIBS) \
Matthew Barth1826c732020-08-28 08:40:59 -050025 $(STDPLUS_LIBS) \
26 $(FMT_LIBS)
27
Brad Bishop9df0e162017-04-22 14:19:45 -040028phosphor_fan_presence_tach_CXXFLAGS = \
29 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III1cfc2f12018-10-19 17:29:46 -070030 $(SDEVENTPLUS_CFLAGS) \
Dinesh Chinari618027a2017-06-26 23:26:50 -050031 $(PHOSPHOR_LOGGING_CFLAGS) \
Brad Bishop8a502f52017-06-14 23:46:15 -040032 ${PHOSPHOR_DBUS_INTERFACES_CFLAGS} \
Andrew Geisslerecd4bc72018-08-27 10:52:23 -070033 $(LIBEVDEV_CFLAGS) \
Matthew Barthf3e70472019-12-03 13:33:20 -060034 -flto \
35 $(STDPLUS_CFLAGS)
Brad Bishop9df0e162017-04-22 14:19:45 -040036
Matthew Barthcc194802020-01-09 13:55:34 -060037if !WANT_JSON
Brad Bishop372b22c2017-07-12 15:57:14 -040038BUILT_SOURCES = generated.hpp
Brad Bishop76596b22017-06-13 14:39:13 -040039TEMPLATES = \
40 templates/generated.mako.hpp
Brad Bishop9df0e162017-04-22 14:19:45 -040041
Brad Bishop76596b22017-06-13 14:39:13 -040042generated.hpp: $(TEMPLATES) ${srcdir}/pfpgen.py $(PRESENCE_CONFIG)
43 $(AM_V_GEN)$(PFPGEN) > $(builddir)/$@
Matthew Barthcc194802020-01-09 13:55:34 -060044endif