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 | |
Patrick Venture | 92907da | 2019-03-28 11:55:58 -0700 | [diff] [blame] | 6 | bin_PROGRAMS = phosphor-dbus-monitor |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 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) \ |
William A. Kennington III | 223c409 | 2018-10-19 15:56:09 -0700 | [diff] [blame] | 21 | $(SDEVENTPLUS_LIBS) \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 22 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Ratan Gupta | 3e84ec6 | 2017-10-06 21:37:01 +0530 | [diff] [blame] | 23 | $(PHOSPHOR_LOGGING_LIBS) \ |
Marri Devender Rao | e88df9c | 2018-05-02 00:16:06 -0500 | [diff] [blame] | 24 | $(PHOSPHOR_SNMP_LIBS) \ |
Ratan Gupta | 3e84ec6 | 2017-10-06 21:37:01 +0530 | [diff] [blame] | 25 | -lstdc++fs |
Matthew Barth | 1febc28 | 2017-04-12 11:33:39 -0500 | [diff] [blame] | 26 | phosphor_dbus_monitor_CXXFLAGS = \ |
| 27 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | 223c409 | 2018-10-19 15:56:09 -0700 | [diff] [blame] | 28 | $(SDEVENTPLUS_CFLAGS) \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 29 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Marri Devender Rao | e88df9c | 2018-05-02 00:16:06 -0500 | [diff] [blame] | 30 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 31 | $(PHOSPHOR_SNMP_CFLAGS) |
Matthew Barth | db440d4 | 2017-04-17 15:49:37 -0500 | [diff] [blame] | 32 | |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 33 | BUILT_SOURCES = generated.hpp |
| 34 | CLEANFILES = generated.hpp |
Matthew Barth | db440d4 | 2017-04-17 15:49:37 -0500 | [diff] [blame] | 35 | |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 36 | TEMPLATES = \ |
Brad Bishop | 49e6617 | 2017-05-23 19:16:21 -0400 | [diff] [blame] | 37 | templates/callbackgroup.mako.cpp \ |
Brad Bishop | 4041d72 | 2017-05-21 10:06:07 -0400 | [diff] [blame] | 38 | templates/conditional.mako.cpp \ |
| 39 | templates/count.mako.cpp \ |
Matthew Barth | efdd03c | 2019-09-04 15:44:35 -0500 | [diff] [blame] | 40 | templates/median.mako.cpp \ |
Brad Bishop | c1283ae | 2017-05-20 21:42:38 -0400 | [diff] [blame] | 41 | templates/generated.mako.hpp \ |
Brad Bishop | 0df00be | 2017-05-25 23:38:37 -0400 | [diff] [blame] | 42 | templates/journal.mako.cpp \ |
Gunnar Mills | 9679d43 | 2017-08-03 15:54:43 -0500 | [diff] [blame] | 43 | templates/elog.mako.cpp \ |
Gunnar Mills | d5faea3 | 2017-08-08 14:19:36 -0500 | [diff] [blame] | 44 | templates/errors.mako.hpp \ |
Matt Spinler | 1d6ca48 | 2017-11-01 10:48:02 -0500 | [diff] [blame] | 45 | templates/method.mako.cpp \ |
Ratan Gupta | 90bfaea | 2017-10-06 20:56:31 +0530 | [diff] [blame] | 46 | templates/resolve_errors.mako.cpp \ |
| 47 | templates/event.mako.cpp |
Brad Bishop | 870c3fc | 2017-05-22 23:23:13 -0400 | [diff] [blame] | 48 | |
| 49 | generated.hpp: $(PDMGEN) $(YAML_PATH) $(TEMPLATES) |
| 50 | $(AM_V_GEN)$(PYTHON) ${PDMGEN} \ |
| 51 | -t generated.mako.hpp \ |
| 52 | -p "${TEMPLATESEARCH}" \ |
Brad Bishop | 2d6586a | 2017-05-31 19:43:35 -0400 | [diff] [blame] | 53 | -d $(YAML_PATH) \ |
Brad Bishop | e3a01af | 2017-05-15 17:09:04 -0400 | [diff] [blame] | 54 | -o ${builddir}/$@ \ |
| 55 | generate-cpp |
Brad Bishop | 83c4349 | 2017-05-22 22:04:03 -0400 | [diff] [blame] | 56 | |
| 57 | SUBDIRS = . test |