blob: 73ebca843bc43eb11ea7c39a817092c24242f029 [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 \
Ratan Guptacd227862017-10-06 21:27:13 +053013 resolve_errors.cpp \
14 event_manager.cpp
Matthew Barth1febc282017-04-12 11:33:39 -050015phosphor_dbus_monitor_LDADD = \
16 $(SDBUSPLUS_LIBS) \
Gunnar Mills9679d432017-08-03 15:54:43 -050017 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Ratan Gupta3e84ec62017-10-06 21:37:01 +053018 $(PHOSPHOR_LOGGING_LIBS) \
19 -lstdc++fs
Matthew Barth1febc282017-04-12 11:33:39 -050020phosphor_dbus_monitor_CXXFLAGS = \
21 $(SDBUSPLUS_CFLAGS) \
Gunnar Mills9679d432017-08-03 15:54:43 -050022 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Matthew Barth1febc282017-04-12 11:33:39 -050023 $(PHOSPHOR_LOGGING_CFLAGS)
Matthew Barthdb440d42017-04-17 15:49:37 -050024
Brad Bishop870c3fc2017-05-22 23:23:13 -040025BUILT_SOURCES = generated.hpp
26CLEANFILES = generated.hpp
Matthew Barthdb440d42017-04-17 15:49:37 -050027
Brad Bishop870c3fc2017-05-22 23:23:13 -040028TEMPLATES = \
Brad Bishop49e66172017-05-23 19:16:21 -040029 templates/callbackgroup.mako.cpp \
Brad Bishop4041d722017-05-21 10:06:07 -040030 templates/conditional.mako.cpp \
31 templates/count.mako.cpp \
Brad Bishopc1283ae2017-05-20 21:42:38 -040032 templates/generated.mako.hpp \
Brad Bishop0df00be2017-05-25 23:38:37 -040033 templates/journal.mako.cpp \
Gunnar Mills9679d432017-08-03 15:54:43 -050034 templates/elog.mako.cpp \
Gunnar Millsd5faea32017-08-08 14:19:36 -050035 templates/errors.mako.hpp \
Matt Spinler1d6ca482017-11-01 10:48:02 -050036 templates/method.mako.cpp \
Ratan Gupta90bfaea2017-10-06 20:56:31 +053037 templates/resolve_errors.mako.cpp \
38 templates/event.mako.cpp
Brad Bishop870c3fc2017-05-22 23:23:13 -040039
40generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
41 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
42 -t generated.mako.hpp \
43 -p "${TEMPLATESEARCH}" \
Brad Bishop2d6586a2017-05-31 19:43:35 -040044 -d $(YAML_PATH) \
Brad Bishope3a01af2017-05-15 17:09:04 -040045 -o ${builddir}/$@ \
46 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040047
48SUBDIRS = . test