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 | d02153c | 2017-07-02 22:29:42 -0500 | [diff] [blame] | 6 | core_manager.hpp \ |
Jayanth Othayoth | a320c7c | 2017-06-14 07:17:21 -0500 | [diff] [blame] | 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 = \ |
| 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 \ |
Jayanth Othayoth | 671fc7f | 2017-06-14 08:01:41 -0500 | [diff] [blame] | 23 | watch.cpp \ |
| 24 | xyz/openbmc_project/Dump/Internal/Create/server.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 = \ |
Jayanth Othayoth | d02153c | 2017-07-02 22:29:42 -0500 | [diff] [blame] | 27 | watch.cpp \ |
| 28 | core_manager.cpp \ |
| 29 | core_manager_main.cpp |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 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 \ |
Jayanth Othayoth | d02153c | 2017-07-02 22:29:42 -0500 | [diff] [blame] | 54 | xyz/openbmc_project/Dump/Internal/Create/server.hpp |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 55 | |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 56 | CLEANFILES=${BUILT_SOURCES} |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 57 | |
| 58 | xyz/openbmc_project/Dump/Internal/Create/server.cpp: \ |
| 59 | xyz/openbmc_project/Dump/Internal/Create.interface.yaml \ |
| 60 | xyz/openbmc_project/Dump/Internal/Create/server.hpp |
| 61 | @mkdir -p `dirname $@` |
| 62 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \ |
| 63 | xyz.openbmc_project.Dump.Internal.Create > $@ |
| 64 | |
| 65 | xyz/openbmc_project/Dump/Internal/Create/server.hpp: \ |
| 66 | xyz/openbmc_project/Dump/Internal/Create.interface.yaml |
| 67 | @mkdir -p `dirname $@` |
| 68 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \ |
| 69 | xyz.openbmc_project.Dump.Internal.Create > $@ |