blob: 3b4d9cf56fac7b702fff857a70f7b4e546261a6b [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 = \
Matthew Barthb0b82be2017-04-12 13:54:26 -05009 functor.cpp \
Matthew Barth1febc282017-04-12 11:33:39 -050010 main.cpp \
Brad Bishop4b916f12017-05-23 18:06:38 -040011 monitor.cpp \
12 propertywatch.cpp
Matthew Barth1febc282017-04-12 11:33:39 -050013phosphor_dbus_monitor_LDADD = \
14 $(SDBUSPLUS_LIBS) \
15 $(PHOSPHOR_LOGGING_LIBS)
16phosphor_dbus_monitor_CXXFLAGS = \
17 $(SDBUSPLUS_CFLAGS) \
18 $(PHOSPHOR_LOGGING_CFLAGS)
Matthew Barthdb440d42017-04-17 15:49:37 -050019
Brad Bishop870c3fc2017-05-22 23:23:13 -040020BUILT_SOURCES = generated.hpp
21CLEANFILES = generated.hpp
Matthew Barthdb440d42017-04-17 15:49:37 -050022
Brad Bishop870c3fc2017-05-22 23:23:13 -040023TEMPLATES = \
24 templates/generated.mako.hpp
25
26generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
27 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
28 -t generated.mako.hpp \
29 -p "${TEMPLATESEARCH}" \
Brad Bishope3a01af2017-05-15 17:09:04 -040030 -d ${srcdir}/example \
31 -o ${builddir}/$@ \
32 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040033
34SUBDIRS = . test