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 = \ |
Matthew Barth | b0b82be | 2017-04-12 13:54:26 -0500 | [diff] [blame] | 9 | functor.cpp \ |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 10 | main.cpp \ |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 11 | monitor.cpp |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 12 | phosphor_dbus_monitor_LDADD = \ |
| 13 | $(SDBUSPLUS_LIBS) \ |
| 14 | $(PHOSPHOR_LOGGING_LIBS) |
| 15 | phosphor_dbus_monitor_CXXFLAGS = \ |
| 16 | $(SDBUSPLUS_CFLAGS) \ |
| 17 | $(PHOSPHOR_LOGGING_CFLAGS) |
Matthew Barth | db440d4 | 2017-04-17 15:49:37 -0500 | [diff] [blame] | 18 | |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 19 | BUILT_SOURCES = generated.hpp |
| 20 | CLEANFILES = generated.hpp |
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 | TEMPLATES = \ |
| 23 | templates/generated.mako.hpp |
| 24 | |
| 25 | generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES) |
| 26 | $(AM_V_GEN)$(PYTHON) ${PDMGEN} \ |
| 27 | -t generated.mako.hpp \ |
| 28 | -p "${TEMPLATESEARCH}" \ |
Brad Bishop | e3a01af | 2017-05-15 17:09:04 -0400 | [diff] [blame] | 29 | -d ${srcdir}/example \ |
| 30 | -o ${builddir}/$@ \ |
| 31 | generate-cpp |
Brad Bishop | 83c4349 | 2017-05-22 22:04:03 -0400 | [diff] [blame] | 32 | |
| 33 | SUBDIRS = . test |