blob: 0380f6c9c55ebee1442e67e73dbb10a2d1b526a5 [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 \
Brad Bishopc1283ae2017-05-20 21:42:38 -040010 journal.cpp \
Matthew Barth1febc282017-04-12 11:33:39 -050011 main.cpp \
Brad Bishop4b916f12017-05-23 18:06:38 -040012 monitor.cpp \
13 propertywatch.cpp
Matthew Barth1febc282017-04-12 11:33:39 -050014phosphor_dbus_monitor_LDADD = \
15 $(SDBUSPLUS_LIBS) \
16 $(PHOSPHOR_LOGGING_LIBS)
17phosphor_dbus_monitor_CXXFLAGS = \
18 $(SDBUSPLUS_CFLAGS) \
19 $(PHOSPHOR_LOGGING_CFLAGS)
Matthew Barthdb440d42017-04-17 15:49:37 -050020
Brad Bishop870c3fc2017-05-22 23:23:13 -040021BUILT_SOURCES = generated.hpp
22CLEANFILES = generated.hpp
Matthew Barthdb440d42017-04-17 15:49:37 -050023
Brad Bishop870c3fc2017-05-22 23:23:13 -040024TEMPLATES = \
Brad Bishop49e66172017-05-23 19:16:21 -040025 templates/callbackgroup.mako.cpp \
Brad Bishop4041d722017-05-21 10:06:07 -040026 templates/conditional.mako.cpp \
27 templates/count.mako.cpp \
Brad Bishopc1283ae2017-05-20 21:42:38 -040028 templates/generated.mako.hpp \
Brad Bishop0df00be2017-05-25 23:38:37 -040029 templates/journal.mako.cpp \
30 templates/method.mako.cpp
Brad Bishop870c3fc2017-05-22 23:23:13 -040031
32generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
33 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
34 -t generated.mako.hpp \
35 -p "${TEMPLATESEARCH}" \
Brad Bishope3a01af2017-05-15 17:09:04 -040036 -d ${srcdir}/example \
37 -o ${builddir}/$@ \
38 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040039
40SUBDIRS = . test