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 \ |
| 13 | resolve_errors.cpp |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 14 | phosphor_dbus_monitor_LDADD = \ |
| 15 | $(SDBUSPLUS_LIBS) \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 16 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 17 | $(PHOSPHOR_LOGGING_LIBS) |
| 18 | phosphor_dbus_monitor_CXXFLAGS = \ |
| 19 | $(SDBUSPLUS_CFLAGS) \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 20 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 21 | $(PHOSPHOR_LOGGING_CFLAGS) |
Matthew Barth | db440d4 | 2017-04-17 15:49:37 -0500 | [diff] [blame] | 22 | |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 23 | BUILT_SOURCES = generated.hpp |
| 24 | CLEANFILES = generated.hpp |
Matthew Barth | db440d4 | 2017-04-17 15:49:37 -0500 | [diff] [blame] | 25 | |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 26 | TEMPLATES = \ |
Brad Bishop | 49e6617 | 2017-05-23 19:16:21 -0400 | [diff] [blame] | 27 | templates/callbackgroup.mako.cpp \ |
Brad Bishop | 4041d72 | 2017-05-21 10:06:07 -0400 | [diff] [blame] | 28 | templates/conditional.mako.cpp \ |
| 29 | templates/count.mako.cpp \ |
Brad Bishop | c1283ae | 2017-05-20 21:42:38 -0400 | [diff] [blame] | 30 | templates/generated.mako.hpp \ |
Brad Bishop | 0df00be | 2017-05-25 23:38:37 -0400 | [diff] [blame] | 31 | templates/journal.mako.cpp \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 32 | templates/elog.mako.cpp \ |
Gunnar Mills | d5faea3 | 2017-08-08 14:19:36 -0500 | [diff] [blame] | 33 | templates/errors.mako.hpp \ |
Matt Spinler | 1d6ca48 | 2017-11-01 10:48:02 -0500 | [diff] [blame] | 34 | templates/method.mako.cpp \ |
| 35 | templates/resolve_errors.mako.cpp |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 36 | |
| 37 | generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES) |
| 38 | $(AM_V_GEN)$(PYTHON) ${PDMGEN} \ |
| 39 | -t generated.mako.hpp \ |
| 40 | -p "${TEMPLATESEARCH}" \ |
Brad Bishop | 2d6586a | 2017-05-31 19:43:35 -0400 | [diff] [blame] | 41 | -d $(YAML_PATH) \ |
Brad Bishop | e3a01af | 2017-05-15 17:09:04 -0400 | [diff] [blame] | 42 | -o ${builddir}/$@ \ |
| 43 | generate-cpp |
Brad Bishop | 83c4349 | 2017-05-22 22:04:03 -0400 | [diff] [blame] | 44 | |
| 45 | SUBDIRS = . test |