blob: d530b4619560daaea3a30cafb8b69d19e4513ab1 [file] [log] [blame]
Brad Bishop870c3fc2017-05-22 23:23:13 -04001include ${top_srcdir}/vars.mk
2
Matthew Barth1febc282017-04-12 11:33:39 -05003AM_DEFAULT_SOURCE_EXT = .cpp
4AM_CPPFLAGS = -iquote ${top_srcdir}
5
6sbin_PROGRAMS = phosphor-dbus-monitor
7
8phosphor_dbus_monitor_SOURCES = \
Brad Bishopc1283ae2017-05-20 21:42:38 -04009 journal.cpp \
Matthew Barth1febc282017-04-12 11:33:39 -050010 main.cpp \
Brad Bishop4b916f12017-05-23 18:06:38 -040011 propertywatch.cpp
Matthew Barth1febc282017-04-12 11:33:39 -050012phosphor_dbus_monitor_LDADD = \
13 $(SDBUSPLUS_LIBS) \
14 $(PHOSPHOR_LOGGING_LIBS)
15phosphor_dbus_monitor_CXXFLAGS = \
16 $(SDBUSPLUS_CFLAGS) \
17 $(PHOSPHOR_LOGGING_CFLAGS)
Matthew Barthdb440d42017-04-17 15:49:37 -050018
Brad Bishop870c3fc2017-05-22 23:23:13 -040019BUILT_SOURCES = generated.hpp
20CLEANFILES = generated.hpp
Matthew Barthdb440d42017-04-17 15:49:37 -050021
Brad Bishop870c3fc2017-05-22 23:23:13 -040022TEMPLATES = \
Brad Bishop49e66172017-05-23 19:16:21 -040023 templates/callbackgroup.mako.cpp \
Brad Bishop4041d722017-05-21 10:06:07 -040024 templates/conditional.mako.cpp \
25 templates/count.mako.cpp \
Brad Bishopc1283ae2017-05-20 21:42:38 -040026 templates/generated.mako.hpp \
Brad Bishop0df00be2017-05-25 23:38:37 -040027 templates/journal.mako.cpp \
28 templates/method.mako.cpp
Brad Bishop870c3fc2017-05-22 23:23:13 -040029
30generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
31 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
32 -t generated.mako.hpp \
33 -p "${TEMPLATESEARCH}" \
Brad Bishop2d6586a2017-05-31 19:43:35 -040034 -d $(YAML_PATH) \
Brad Bishope3a01af2017-05-15 17:09:04 -040035 -o ${builddir}/$@ \
36 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040037
38SUBDIRS = . test