| Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
| 3 | # Build these headers, don't install them |
| 4 | noinst_HEADERS = \ |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 5 | dump_entry.hpp \ |
| Jayanth Othayoth | a320c7c | 2017-06-14 07:17:21 -0500 | [diff] [blame] | 6 | dump_watch.hpp \ |
| 7 | dump_internal.hpp \ |
| 8 | dump_manager.hpp \ |
| Jayanth Othayoth | 671fc7f | 2017-06-14 08:01:41 -0500 | [diff] [blame] | 9 | dump_utils.hpp \ |
| 10 | watch.hpp |
| Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 11 | |
| Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 12 | nobase_nodist_include_HEADERS = \ |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 13 | xyz/openbmc_project/Dump/Monitor/error.hpp \ |
| Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 14 | xyz/openbmc_project/Dump/Internal/Create/server.hpp |
| 15 | |
| Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 16 | sbin_PROGRAMS = \ |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 17 | phosphor-dump-manager \ |
| 18 | phosphor-dump-monitor |
| Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 19 | |
| 20 | phosphor_dump_manager_SOURCES = \ |
| 21 | dump_manager_main.cpp \ |
| Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 22 | dump_entry.cpp \ |
| Jayanth Othayoth | a320c7c | 2017-06-14 07:17:21 -0500 | [diff] [blame] | 23 | dump_manager.cpp \ |
| Jayanth Othayoth | 671fc7f | 2017-06-14 08:01:41 -0500 | [diff] [blame] | 24 | watch.cpp \ |
| 25 | xyz/openbmc_project/Dump/Internal/Create/server.cpp |
| Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 26 | |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 27 | phosphor_dump_monitor_SOURCES = \ |
| 28 | dump_watch_main.cpp \ |
| 29 | dump_watch.cpp \ |
| 30 | xyz/openbmc_project/Dump/Monitor/error.cpp |
| 31 | |
| Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 32 | phosphor_dump_manager_CXXFLAGS = \ |
| 33 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 34 | $(SDBUSPLUS_CFLAGS) \ |
| 35 | $(PHOSPHOR_LOGGING_CFLAGS) |
| 36 | |
| 37 | phosphor_dump_monitor_CXXFLAGS = \ |
| 38 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 39 | $(PHOSPHOR_LOGGING_CFLAGS) |
| Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 40 | |
| 41 | phosphor_dump_manager_LDADD = \ |
| 42 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 43 | $(SDBUSPLUS_LIBS) \ |
| Jayanth Othayoth | a320c7c | 2017-06-14 07:17:21 -0500 | [diff] [blame] | 44 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 45 | -lstdc++fs |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 46 | |
| 47 | phosphor_dump_monitor_LDADD = \ |
| 48 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 49 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 50 | -lstdc++fs |
| Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 51 | |
| 52 | # Be sure to build needed files before compiling |
| 53 | BUILT_SOURCES = \ |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 54 | xyz/openbmc_project/Dump/Internal/Create/server.cpp \ |
| 55 | xyz/openbmc_project/Dump/Internal/Create/server.hpp \ |
| 56 | xyz/openbmc_project/Dump/Monitor/error.cpp \ |
| 57 | xyz/openbmc_project/Dump/Monitor/error.hpp |
| Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 58 | |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 59 | CLEANFILES=${BUILT_SOURCES} |
| Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 60 | |
| 61 | xyz/openbmc_project/Dump/Internal/Create/server.cpp: \ |
| 62 | xyz/openbmc_project/Dump/Internal/Create.interface.yaml \ |
| 63 | xyz/openbmc_project/Dump/Internal/Create/server.hpp |
| 64 | @mkdir -p `dirname $@` |
| 65 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \ |
| 66 | xyz.openbmc_project.Dump.Internal.Create > $@ |
| 67 | |
| 68 | xyz/openbmc_project/Dump/Internal/Create/server.hpp: \ |
| 69 | xyz/openbmc_project/Dump/Internal/Create.interface.yaml |
| 70 | @mkdir -p `dirname $@` |
| 71 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \ |
| 72 | xyz.openbmc_project.Dump.Internal.Create > $@ |
| Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 73 | |
| 74 | xyz/openbmc_project/Dump/Monitor/error.hpp: \ |
| 75 | ${top_srcdir}/xyz/openbmc_project/Dump/Monitor.errors.yaml |
| 76 | @mkdir -p `dirname $@` |
| 77 | $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Dump.Monitor > $@ |
| 78 | |
| 79 | xyz/openbmc_project/Dump/Monitor/error.cpp: ${top_srcdir}/xyz/openbmc_project/Dump/Monitor.errors.yaml |
| 80 | @mkdir -p `dirname $@` |
| 81 | $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Dump.Monitor > $@ |