Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 1 | include ${top_srcdir}/vars.mk |
| 2 | |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 3 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 4 | AM_CPPFLAGS = -iquote ${top_srcdir} |
| 5 | |
| 6 | sbin_PROGRAMS = phosphor-dbus-monitor |
| 7 | |
| 8 | phosphor_dbus_monitor_SOURCES = \ |
Brad Bishop | c1283ae | 2017-05-20 21:42:38 -0400 | [diff] [blame] | 9 | journal.cpp \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 10 | elog.cpp \ |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 11 | main.cpp \ |
Matt Spinler | 56fd833 | 2017-10-31 14:00:18 -0500 | [diff] [blame] | 12 | propertywatch.cpp \ |
Marri Devender Rao | 0dabe59 | 2018-04-12 09:18:43 -0500 | [diff] [blame] | 13 | pathwatch.cpp \ |
Ratan Gupta | cd22786 | 2017-10-06 21:27:13 +0530 | [diff] [blame] | 14 | resolve_errors.cpp \ |
Dhruvaraj Subhashchandran | 6524b9d | 2017-10-18 01:41:51 -0500 | [diff] [blame] | 15 | event_manager.cpp \ |
Marri Devender Rao | 70aafbb | 2018-04-12 01:11:48 -0500 | [diff] [blame] | 16 | event_serialize.cpp \ |
| 17 | snmp_trap.cpp |
Dhruvaraj Subhashchandran | 6524b9d | 2017-10-18 01:41:51 -0500 | [diff] [blame] | 18 | |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 19 | phosphor_dbus_monitor_LDADD = \ |
| 20 | $(SDBUSPLUS_LIBS) \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 21 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Ratan Gupta | 3e84ec6 | 2017-10-06 21:37:01 +0530 | [diff] [blame] | 22 | $(PHOSPHOR_LOGGING_LIBS) \ |
Marri Devender Rao | e88df9c | 2018-05-02 00:16:06 -0500 | [diff] [blame] | 23 | $(PHOSPHOR_SNMP_LIBS) \ |
Ratan Gupta | 3e84ec6 | 2017-10-06 21:37:01 +0530 | [diff] [blame] | 24 | -lstdc++fs |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 25 | phosphor_dbus_monitor_CXXFLAGS = \ |
| 26 | $(SDBUSPLUS_CFLAGS) \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 27 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Marri Devender Rao | e88df9c | 2018-05-02 00:16:06 -0500 | [diff] [blame] | 28 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 29 | $(PHOSPHOR_SNMP_CFLAGS) |
Matthew Barth | db440d4 | 2017-04-17 15:49:37 -0500 | [diff] [blame] | 30 | |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 31 | BUILT_SOURCES = generated.hpp |
| 32 | CLEANFILES = generated.hpp |
Matthew Barth | db440d4 | 2017-04-17 15:49:37 -0500 | [diff] [blame] | 33 | |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 34 | TEMPLATES = \ |
Brad Bishop | 49e6617 | 2017-05-23 19:16:21 -0400 | [diff] [blame] | 35 | templates/callbackgroup.mako.cpp \ |
Brad Bishop | 4041d72 | 2017-05-21 10:06:07 -0400 | [diff] [blame] | 36 | templates/conditional.mako.cpp \ |
| 37 | templates/count.mako.cpp \ |
Brad Bishop | c1283ae | 2017-05-20 21:42:38 -0400 | [diff] [blame] | 38 | templates/generated.mako.hpp \ |
Brad Bishop | 0df00be | 2017-05-25 23:38:37 -0400 | [diff] [blame] | 39 | templates/journal.mako.cpp \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 40 | templates/elog.mako.cpp \ |
Gunnar Mills | d5faea3 | 2017-08-08 14:19:36 -0500 | [diff] [blame] | 41 | templates/errors.mako.hpp \ |
Matt Spinler | 1d6ca48 | 2017-11-01 10:48:02 -0500 | [diff] [blame] | 42 | templates/method.mako.cpp \ |
Ratan Gupta | 90bfaea | 2017-10-06 20:56:31 +0530 | [diff] [blame] | 43 | templates/resolve_errors.mako.cpp \ |
| 44 | templates/event.mako.cpp |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 45 | |
| 46 | generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES) |
| 47 | $(AM_V_GEN)$(PYTHON) ${PDMGEN} \ |
| 48 | -t generated.mako.hpp \ |
| 49 | -p "${TEMPLATESEARCH}" \ |
Brad Bishop | 2d6586a | 2017-05-31 19:43:35 -0400 | [diff] [blame] | 50 | -d $(YAML_PATH) \ |
Brad Bishop | e3a01af | 2017-05-15 17:09:04 -0400 | [diff] [blame] | 51 | -o ${builddir}/$@ \ |
| 52 | generate-cpp |
Brad Bishop | 83c4349 | 2017-05-22 22:04:03 -0400 | [diff] [blame] | 53 | |
| 54 | SUBDIRS = . test |