blob: c20b9dd53173985607bc3973526e232810b73122 [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 = \
Brad Bishopc1283ae2017-05-20 21:42:38 -04009 journal.cpp \
Gunnar Mills9679d432017-08-03 15:54:43 -050010 elog.cpp \
Matthew Barth1febc282017-04-12 11:33:39 -050011 main.cpp \
Matt Spinler56fd8332017-10-31 14:00:18 -050012 propertywatch.cpp \
13 resolve_errors.cpp
Matthew Barth1febc282017-04-12 11:33:39 -050014phosphor_dbus_monitor_LDADD = \
15 $(SDBUSPLUS_LIBS) \
Gunnar Mills9679d432017-08-03 15:54:43 -050016 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Matthew Barth1febc282017-04-12 11:33:39 -050017 $(PHOSPHOR_LOGGING_LIBS)
18phosphor_dbus_monitor_CXXFLAGS = \
19 $(SDBUSPLUS_CFLAGS) \
Gunnar Mills9679d432017-08-03 15:54:43 -050020 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Matthew Barth1febc282017-04-12 11:33:39 -050021 $(PHOSPHOR_LOGGING_CFLAGS)
Matthew Barthdb440d42017-04-17 15:49:37 -050022
Brad Bishop870c3fc2017-05-22 23:23:13 -040023BUILT_SOURCES = generated.hpp
24CLEANFILES = generated.hpp
Matthew Barthdb440d42017-04-17 15:49:37 -050025
Brad Bishop870c3fc2017-05-22 23:23:13 -040026TEMPLATES = \
Brad Bishop49e66172017-05-23 19:16:21 -040027 templates/callbackgroup.mako.cpp \
Brad Bishop4041d722017-05-21 10:06:07 -040028 templates/conditional.mako.cpp \
29 templates/count.mako.cpp \
Brad Bishopc1283ae2017-05-20 21:42:38 -040030 templates/generated.mako.hpp \
Brad Bishop0df00be2017-05-25 23:38:37 -040031 templates/journal.mako.cpp \
Gunnar Mills9679d432017-08-03 15:54:43 -050032 templates/elog.mako.cpp \
Gunnar Millsd5faea32017-08-08 14:19:36 -050033 templates/errors.mako.hpp \
Matt Spinler1d6ca482017-11-01 10:48:02 -050034 templates/method.mako.cpp \
35 templates/resolve_errors.mako.cpp
Brad Bishop870c3fc2017-05-22 23:23:13 -040036
37generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
38 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
39 -t generated.mako.hpp \
40 -p "${TEMPLATESEARCH}" \
Brad Bishop2d6586a2017-05-31 19:43:35 -040041 -d $(YAML_PATH) \
Brad Bishope3a01af2017-05-15 17:09:04 -040042 -o ${builddir}/$@ \
43 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040044
45SUBDIRS = . test