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 \ |
Jayanth Othayoth | d0f0064 | 2017-09-04 06:26:30 -0500 | [diff] [blame] | 10 | watch.hpp \ |
Jayanth Othayoth | 2496482 | 2017-09-04 22:07:06 -0500 | [diff] [blame] | 11 | elog_watch.hpp \ |
Jayanth Othayoth | d31be2c | 2020-02-04 02:56:45 -0600 | [diff] [blame^] | 12 | dump_serialize.hpp \ |
| 13 | pldm_interface.hpp |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 14 | |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 15 | nobase_nodist_include_HEADERS = \ |
| 16 | xyz/openbmc_project/Dump/Internal/Create/server.hpp |
| 17 | |
Patrick Venture | 004938e | 2019-03-28 11:18:35 -0700 | [diff] [blame] | 18 | bin_PROGRAMS = \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 19 | phosphor-dump-manager \ |
| 20 | phosphor-dump-monitor |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 21 | |
| 22 | phosphor_dump_manager_SOURCES = \ |
| 23 | dump_manager_main.cpp \ |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 24 | dump_entry.cpp \ |
Dhruvaraj Subhashchandran | 4a98e8f | 2020-01-29 07:11:08 -0600 | [diff] [blame] | 25 | bmc_dump_entry.cpp \ |
Jayanth Othayoth | a320c7c | 2017-06-14 07:17:21 -0500 | [diff] [blame] | 26 | dump_manager.cpp \ |
Jayanth Othayoth | 671fc7f | 2017-06-14 08:01:41 -0500 | [diff] [blame] | 27 | watch.cpp \ |
Jayanth Othayoth | d0f0064 | 2017-09-04 06:26:30 -0500 | [diff] [blame] | 28 | xyz/openbmc_project/Dump/Internal/Create/server.cpp \ |
Jayanth Othayoth | 2496482 | 2017-09-04 22:07:06 -0500 | [diff] [blame] | 29 | elog_watch.cpp \ |
Jayanth Othayoth | d31be2c | 2020-02-04 02:56:45 -0600 | [diff] [blame^] | 30 | dump_serialize.cpp \ |
| 31 | pldm_interface.cpp \ |
| 32 | dump_utils.cpp |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 33 | |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 34 | phosphor_dump_monitor_SOURCES = \ |
Jayanth Othayoth | d02153c | 2017-07-02 22:29:42 -0500 | [diff] [blame] | 35 | watch.cpp \ |
| 36 | core_manager.cpp \ |
| 37 | core_manager_main.cpp |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 38 | |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 39 | phosphor_dump_manager_CXXFLAGS = \ |
| 40 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 41 | $(SDBUSPLUS_CFLAGS) \ |
Jayanth Othayoth | d31be2c | 2020-02-04 02:56:45 -0600 | [diff] [blame^] | 42 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 43 | $(LIBPLDM_CFLAGS) |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 44 | |
| 45 | phosphor_dump_monitor_CXXFLAGS = \ |
| 46 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 47 | $(PHOSPHOR_LOGGING_CFLAGS) |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 48 | |
| 49 | phosphor_dump_manager_LDADD = \ |
| 50 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 51 | $(SDBUSPLUS_LIBS) \ |
Jayanth Othayoth | a320c7c | 2017-06-14 07:17:21 -0500 | [diff] [blame] | 52 | $(PHOSPHOR_LOGGING_LIBS) \ |
Jayanth Othayoth | d31be2c | 2020-02-04 02:56:45 -0600 | [diff] [blame^] | 53 | -lstdc++fs \ |
| 54 | $(LIBPLDM_LIBS) |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 55 | |
| 56 | phosphor_dump_monitor_LDADD = \ |
| 57 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 58 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 59 | -lstdc++fs |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 60 | |
| 61 | # Be sure to build needed files before compiling |
| 62 | BUILT_SOURCES = \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 63 | xyz/openbmc_project/Dump/Internal/Create/server.cpp \ |
Marri Devender Rao | 0deb287 | 2018-11-12 07:45:54 -0600 | [diff] [blame] | 64 | xyz/openbmc_project/Dump/Internal/Create/server.hpp \ |
| 65 | errors_map.hpp |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 66 | |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 67 | CLEANFILES=${BUILT_SOURCES} |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 68 | |
| 69 | xyz/openbmc_project/Dump/Internal/Create/server.cpp: \ |
| 70 | xyz/openbmc_project/Dump/Internal/Create.interface.yaml \ |
| 71 | xyz/openbmc_project/Dump/Internal/Create/server.hpp |
| 72 | @mkdir -p `dirname $@` |
| 73 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \ |
| 74 | xyz.openbmc_project.Dump.Internal.Create > $@ |
| 75 | |
| 76 | xyz/openbmc_project/Dump/Internal/Create/server.hpp: \ |
| 77 | xyz/openbmc_project/Dump/Internal/Create.interface.yaml |
| 78 | @mkdir -p `dirname $@` |
| 79 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \ |
| 80 | xyz.openbmc_project.Dump.Internal.Create > $@ |
Marri Devender Rao | 0deb287 | 2018-11-12 07:45:54 -0600 | [diff] [blame] | 81 | |
| 82 | ERROR_TEMPLATE ?= ${abs_srcdir}/errors_map.mako.hpp |
| 83 | ERROR_REQ_FILES_TO_GEN ?= ${abs_srcdir}/errors_map_gen.py \ |
| 84 | ${ERROR_TEMPLATE} |
| 85 | |
| 86 | EXTRA_DIST = $(ERROR_REQ_FILES_TO_GEN) |
| 87 | errors_map.hpp: $(ERROR_REQ_FILES_TO_GEN) |
| 88 | $(AM_V_at)$(PYTHON) ${abs_srcdir}/errors_map_gen.py -i ${ERROR_MAP_YAML} |