blob: 1c8c9aeec471758f15997869479d3f75f8965cd5 [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 Subhashchandran59642e22020-03-19 03:37:44 -050012 dump_serialize.hpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050013
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050014nobase_nodist_include_HEADERS = \
15 xyz/openbmc_project/Dump/Internal/Create/server.hpp
16
Patrick Venture004938e2019-03-28 11:18:35 -070017bin_PROGRAMS = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050018 phosphor-dump-manager \
19 phosphor-dump-monitor
Jayanth Othayoth224882b2017-05-04 05:46:45 -050020
21phosphor_dump_manager_SOURCES = \
22 dump_manager_main.cpp \
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050023 dump_entry.cpp \
Dhruvaraj Subhashchandran4a98e8f2020-01-29 07:11:08 -060024 bmc_dump_entry.cpp \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -050025 dump_manager.cpp \
Jayanth Othayoth671fc7f2017-06-14 08:01:41 -050026 watch.cpp \
Jayanth Othayothd0f00642017-09-04 06:26:30 -050027 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
Jayanth Othayoth24964822017-09-04 22:07:06 -050028 elog_watch.cpp \
Jayanth Othayothd31be2c2020-02-04 02:56:45 -060029 dump_serialize.cpp \
Dhruvaraj Subhashchandran69e61522020-02-04 06:39:11 -060030 dump_utils.cpp \
31 system_dump_entry.cpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050032
Jayanth Othayoth1756c062017-05-23 22:48:11 -050033phosphor_dump_monitor_SOURCES = \
Jayanth Othayothd02153c2017-07-02 22:29:42 -050034 watch.cpp \
35 core_manager.cpp \
36 core_manager_main.cpp
Jayanth Othayoth1756c062017-05-23 22:48:11 -050037
Jayanth Othayoth224882b2017-05-04 05:46:45 -050038phosphor_dump_manager_CXXFLAGS = \
39 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050040 $(SDBUSPLUS_CFLAGS) \
Dhruvaraj Subhashchandran59642e22020-03-19 03:37:44 -050041 $(PHOSPHOR_LOGGING_CFLAGS)
Jayanth Othayoth1756c062017-05-23 22:48:11 -050042
43phosphor_dump_monitor_CXXFLAGS = \
44 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
45 $(PHOSPHOR_LOGGING_CFLAGS)
Jayanth Othayoth224882b2017-05-04 05:46:45 -050046
47phosphor_dump_manager_LDADD = \
48 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050049 $(SDBUSPLUS_LIBS) \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -050050 $(PHOSPHOR_LOGGING_LIBS) \
Dhruvaraj Subhashchandran59642e22020-03-19 03:37:44 -050051 -lstdc++fs
Jayanth Othayoth1756c062017-05-23 22:48:11 -050052
53phosphor_dump_monitor_LDADD = \
54 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
55 $(PHOSPHOR_LOGGING_LIBS) \
56 -lstdc++fs
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050057
Dhruvaraj Subhashchandran59642e22020-03-19 03:37:44 -050058include offload-extensions/extensions.mk
59
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050060# Be sure to build needed files before compiling
61BUILT_SOURCES = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050062 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
Marri Devender Rao0deb2872018-11-12 07:45:54 -060063 xyz/openbmc_project/Dump/Internal/Create/server.hpp \
64 errors_map.hpp
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050065
Jayanth Othayoth1756c062017-05-23 22:48:11 -050066CLEANFILES=${BUILT_SOURCES}
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050067
68xyz/openbmc_project/Dump/Internal/Create/server.cpp: \
69xyz/openbmc_project/Dump/Internal/Create.interface.yaml \
70xyz/openbmc_project/Dump/Internal/Create/server.hpp
71 @mkdir -p `dirname $@`
72 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \
73xyz.openbmc_project.Dump.Internal.Create > $@
74
75xyz/openbmc_project/Dump/Internal/Create/server.hpp: \
76xyz/openbmc_project/Dump/Internal/Create.interface.yaml
77 @mkdir -p `dirname $@`
78 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \
79xyz.openbmc_project.Dump.Internal.Create > $@
Marri Devender Rao0deb2872018-11-12 07:45:54 -060080
81ERROR_TEMPLATE ?= ${abs_srcdir}/errors_map.mako.hpp
82ERROR_REQ_FILES_TO_GEN ?= ${abs_srcdir}/errors_map_gen.py \
83 ${ERROR_TEMPLATE}
84
85EXTRA_DIST = $(ERROR_REQ_FILES_TO_GEN)
86errors_map.hpp: $(ERROR_REQ_FILES_TO_GEN)
87 $(AM_V_at)$(PYTHON) ${abs_srcdir}/errors_map_gen.py -i ${ERROR_MAP_YAML}