blob: bac980ed28c9cfdd41b1806b6cb2febc1007089c [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
Patrick Venture92907da2019-03-28 11:55:58 -07006bin_PROGRAMS = phosphor-dbus-monitor
Matthew Barth1febc282017-04-12 11:33:39 -05007
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) \
William A. Kennington III223c4092018-10-19 15:56:09 -070021 $(SDEVENTPLUS_LIBS) \
Gunnar Mills9679d432017-08-03 15:54:43 -050022 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Ratan Gupta3e84ec62017-10-06 21:37:01 +053023 $(PHOSPHOR_LOGGING_LIBS) \
Marri Devender Raoe88df9c2018-05-02 00:16:06 -050024 $(PHOSPHOR_SNMP_LIBS) \
Ratan Gupta3e84ec62017-10-06 21:37:01 +053025 -lstdc++fs
Matthew Barth1febc282017-04-12 11:33:39 -050026phosphor_dbus_monitor_CXXFLAGS = \
27 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III223c4092018-10-19 15:56:09 -070028 $(SDEVENTPLUS_CFLAGS) \
Gunnar Mills9679d432017-08-03 15:54:43 -050029 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Marri Devender Raoe88df9c2018-05-02 00:16:06 -050030 $(PHOSPHOR_LOGGING_CFLAGS) \
31 $(PHOSPHOR_SNMP_CFLAGS)
Matthew Barthdb440d42017-04-17 15:49:37 -050032
Brad Bishop870c3fc2017-05-22 23:23:13 -040033BUILT_SOURCES = generated.hpp
34CLEANFILES = generated.hpp
Matthew Barthdb440d42017-04-17 15:49:37 -050035
Brad Bishop870c3fc2017-05-22 23:23:13 -040036TEMPLATES = \
Brad Bishop49e66172017-05-23 19:16:21 -040037 templates/callbackgroup.mako.cpp \
Brad Bishop4041d722017-05-21 10:06:07 -040038 templates/conditional.mako.cpp \
39 templates/count.mako.cpp \
Matthew Barthefdd03c2019-09-04 15:44:35 -050040 templates/median.mako.cpp \
Brad Bishopc1283ae2017-05-20 21:42:38 -040041 templates/generated.mako.hpp \
Brad Bishop0df00be2017-05-25 23:38:37 -040042 templates/journal.mako.cpp \
Gunnar Mills9679d432017-08-03 15:54:43 -050043 templates/elog.mako.cpp \
Gunnar Millsd5faea32017-08-08 14:19:36 -050044 templates/errors.mako.hpp \
Matt Spinler1d6ca482017-11-01 10:48:02 -050045 templates/method.mako.cpp \
Ratan Gupta90bfaea2017-10-06 20:56:31 +053046 templates/resolve_errors.mako.cpp \
47 templates/event.mako.cpp
Brad Bishop870c3fc2017-05-22 23:23:13 -040048
49generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES)
50 $(AM_V_GEN)$(PYTHON) ${PDMGEN} \
51 -t generated.mako.hpp \
52 -p "${TEMPLATESEARCH}" \
Brad Bishop2d6586a2017-05-31 19:43:35 -040053 -d $(YAML_PATH) \
Brad Bishope3a01af2017-05-15 17:09:04 -040054 -o ${builddir}/$@ \
55 generate-cpp
Brad Bishop83c43492017-05-22 22:04:03 -040056
57SUBDIRS = . test