blob: c77c0a8e5891d4b3b44e058274d71474e3ff124c [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 Bishopc1283ae2017-05-20 21:42:38 -040026 templates/generated.mako.hpp \
27 templates/journal.mako.cpp
Brad Bishop870c3fc2017-05-22 23:23:13 -040028
29generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
30 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
31 -t generated.mako.hpp \
32 -p "${TEMPLATESEARCH}" \
Brad Bishope3a01af2017-05-15 17:09:04 -040033 -d ${srcdir}/example \
34 -o ${builddir}/$@ \
35 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040036
37SUBDIRS = . test