blob: dd5f3544a8245527921df7d638fddd3201dd6c93 [file] [log] [blame]
Jayanth Othayoth224882b2017-05-04 05:46:45 -05001AM_DEFAULT_SOURCE_EXT = .cpp
2
3# Build these headers, don't install them
4noinst_HEADERS = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -05005 dump_entry.hpp \
Jayanth Othayothd02153c2017-07-02 22:29:42 -05006 core_manager.hpp \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -05007 dump_internal.hpp \
8 dump_manager.hpp \
Jayanth Othayoth671fc7f2017-06-14 08:01:41 -05009 dump_utils.hpp \
Jayanth Othayothd0f00642017-09-04 06:26:30 -050010 watch.hpp \
Jayanth Othayoth24964822017-09-04 22:07:06 -050011 elog_watch.hpp \
Dhruvaraj Subhashchandran580d91d2020-04-22 12:29:18 -050012 dump_serialize.hpp \
13 dump_offload.hpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050014
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050015nobase_nodist_include_HEADERS = \
16 xyz/openbmc_project/Dump/Internal/Create/server.hpp
17
Patrick Venture004938e2019-03-28 11:18:35 -070018bin_PROGRAMS = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050019 phosphor-dump-manager \
20 phosphor-dump-monitor
Jayanth Othayoth224882b2017-05-04 05:46:45 -050021
22phosphor_dump_manager_SOURCES = \
23 dump_manager_main.cpp \
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050024 dump_entry.cpp \
Dhruvaraj Subhashchandran4a98e8f2020-01-29 07:11:08 -060025 bmc_dump_entry.cpp \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -050026 dump_manager.cpp \
Jayanth Othayoth671fc7f2017-06-14 08:01:41 -050027 watch.cpp \
Jayanth Othayothd0f00642017-09-04 06:26:30 -050028 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
Jayanth Othayoth24964822017-09-04 22:07:06 -050029 elog_watch.cpp \
Jayanth Othayothd31be2c2020-02-04 02:56:45 -060030 dump_serialize.cpp \
Dhruvaraj Subhashchandran69e61522020-02-04 06:39:11 -060031 dump_utils.cpp \
Dhruvaraj Subhashchandran580d91d2020-04-22 12:29:18 -050032 system_dump_entry.cpp \
33 dump_offload.cpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050034
Jayanth Othayoth1756c062017-05-23 22:48:11 -050035phosphor_dump_monitor_SOURCES = \
Jayanth Othayothd02153c2017-07-02 22:29:42 -050036 watch.cpp \
37 core_manager.cpp \
38 core_manager_main.cpp
Jayanth Othayoth1756c062017-05-23 22:48:11 -050039
Jayanth Othayoth224882b2017-05-04 05:46:45 -050040phosphor_dump_manager_CXXFLAGS = \
41 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050042 $(SDBUSPLUS_CFLAGS) \
Dhruvaraj Subhashchandran59642e22020-03-19 03:37:44 -050043 $(PHOSPHOR_LOGGING_CFLAGS)
Jayanth Othayoth1756c062017-05-23 22:48:11 -050044
45phosphor_dump_monitor_CXXFLAGS = \
46 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
47 $(PHOSPHOR_LOGGING_CFLAGS)
Jayanth Othayoth224882b2017-05-04 05:46:45 -050048
49phosphor_dump_manager_LDADD = \
50 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050051 $(SDBUSPLUS_LIBS) \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -050052 $(PHOSPHOR_LOGGING_LIBS) \
Dhruvaraj Subhashchandran59642e22020-03-19 03:37:44 -050053 -lstdc++fs
Jayanth Othayoth1756c062017-05-23 22:48:11 -050054
55phosphor_dump_monitor_LDADD = \
56 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
57 $(PHOSPHOR_LOGGING_LIBS) \
58 -lstdc++fs
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050059
Dhruvaraj Subhashchandran59642e22020-03-19 03:37:44 -050060include offload-extensions/extensions.mk
61
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050062# Be sure to build needed files before compiling
63BUILT_SOURCES = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050064 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
Marri Devender Rao0deb2872018-11-12 07:45:54 -060065 xyz/openbmc_project/Dump/Internal/Create/server.hpp \
66 errors_map.hpp
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050067
Jayanth Othayoth1756c062017-05-23 22:48:11 -050068CLEANFILES=${BUILT_SOURCES}
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050069
70xyz/openbmc_project/Dump/Internal/Create/server.cpp: \
71xyz/openbmc_project/Dump/Internal/Create.interface.yaml \
72xyz/openbmc_project/Dump/Internal/Create/server.hpp
73 @mkdir -p `dirname $@`
74 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \
75xyz.openbmc_project.Dump.Internal.Create > $@
76
77xyz/openbmc_project/Dump/Internal/Create/server.hpp: \
78xyz/openbmc_project/Dump/Internal/Create.interface.yaml
79 @mkdir -p `dirname $@`
80 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \
81xyz.openbmc_project.Dump.Internal.Create > $@
Marri Devender Rao0deb2872018-11-12 07:45:54 -060082
83ERROR_TEMPLATE ?= ${abs_srcdir}/errors_map.mako.hpp
84ERROR_REQ_FILES_TO_GEN ?= ${abs_srcdir}/errors_map_gen.py \
85 ${ERROR_TEMPLATE}
86
87EXTRA_DIST = $(ERROR_REQ_FILES_TO_GEN)
88errors_map.hpp: $(ERROR_REQ_FILES_TO_GEN)
89 $(AM_V_at)$(PYTHON) ${abs_srcdir}/errors_map_gen.py -i ${ERROR_MAP_YAML}