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