blob: f223713b9f65b1d654418b53ece7ba169ef2330c [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 Bishopc1283ae2017-05-20 21:42:38 -040025 templates/generated.mako.hpp \
26 templates/journal.mako.cpp
Brad Bishop870c3fc2017-05-22 23:23:13 -040027
28generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
29 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
30 -t generated.mako.hpp \
31 -p "${TEMPLATESEARCH}" \
Brad Bishope3a01af2017-05-15 17:09:04 -040032 -d ${srcdir}/example \
33 -o ${builddir}/$@ \
34 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040035
36SUBDIRS = . test