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