blob: 55a2d061cf3f5d56ea7c5a22988ea507edf9495d [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 \
Marri Devender Rao0dabe592018-04-12 09:18:43 -050013 pathwatch.cpp \
Ratan Guptacd227862017-10-06 21:27:13 +053014 resolve_errors.cpp \
Dhruvaraj Subhashchandran6524b9d2017-10-18 01:41:51 -050015 event_manager.cpp \
Marri Devender Rao70aafbb2018-04-12 01:11:48 -050016 event_serialize.cpp \
17 snmp_trap.cpp
Dhruvaraj Subhashchandran6524b9d2017-10-18 01:41:51 -050018
Matthew Barth1febc282017-04-12 11:33:39 -050019phosphor_dbus_monitor_LDADD = \
20 $(SDBUSPLUS_LIBS) \
Gunnar Mills9679d432017-08-03 15:54:43 -050021 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Ratan Gupta3e84ec62017-10-06 21:37:01 +053022 $(PHOSPHOR_LOGGING_LIBS) \
Marri Devender Raoe88df9c2018-05-02 00:16:06 -050023 $(PHOSPHOR_SNMP_LIBS) \
Ratan Gupta3e84ec62017-10-06 21:37:01 +053024 -lstdc++fs
Matthew Barth1febc282017-04-12 11:33:39 -050025phosphor_dbus_monitor_CXXFLAGS = \
26 $(SDBUSPLUS_CFLAGS) \
Gunnar Mills9679d432017-08-03 15:54:43 -050027 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Marri Devender Raoe88df9c2018-05-02 00:16:06 -050028 $(PHOSPHOR_LOGGING_CFLAGS) \
29 $(PHOSPHOR_SNMP_CFLAGS)
Matthew Barthdb440d42017-04-17 15:49:37 -050030
Brad Bishop870c3fc2017-05-22 23:23:13 -040031BUILT_SOURCES = generated.hpp
32CLEANFILES = generated.hpp
Matthew Barthdb440d42017-04-17 15:49:37 -050033
Brad Bishop870c3fc2017-05-22 23:23:13 -040034TEMPLATES = \
Brad Bishop49e66172017-05-23 19:16:21 -040035 templates/callbackgroup.mako.cpp \
Brad Bishop4041d722017-05-21 10:06:07 -040036 templates/conditional.mako.cpp \
37 templates/count.mako.cpp \
Brad Bishopc1283ae2017-05-20 21:42:38 -040038 templates/generated.mako.hpp \
Brad Bishop0df00be2017-05-25 23:38:37 -040039 templates/journal.mako.cpp \
Gunnar Mills9679d432017-08-03 15:54:43 -050040 templates/elog.mako.cpp \
Gunnar Millsd5faea32017-08-08 14:19:36 -050041 templates/errors.mako.hpp \
Matt Spinler1d6ca482017-11-01 10:48:02 -050042 templates/method.mako.cpp \
Ratan Gupta90bfaea2017-10-06 20:56:31 +053043 templates/resolve_errors.mako.cpp \
44 templates/event.mako.cpp
Brad Bishop870c3fc2017-05-22 23:23:13 -040045
46generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
47 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
48 -t generated.mako.hpp \
49 -p "${TEMPLATESEARCH}" \
Brad Bishop2d6586a2017-05-31 19:43:35 -040050 -d $(YAML_PATH) \
Brad Bishope3a01af2017-05-15 17:09:04 -040051 -o ${builddir}/$@ \
52 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040053
54SUBDIRS = . test