blob: 0dfe63be2895e10bebb02971c845cd2b4a1453ec [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 Bishop870c3fc2017-05-22 23:23:13 -040011 monitor.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 = \
23 templates/generated.mako.hpp
24
25generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
26 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
27 -t generated.mako.hpp \
28 -p "${TEMPLATESEARCH}" \
Brad Bishope3a01af2017-05-15 17:09:04 -040029 -d ${srcdir}/example \
30 -o ${builddir}/$@ \
31 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040032
33SUBDIRS = . test