blob: f2bec7ccde82f9d4e37f2693f02c549ee6a86e12 [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 \
11 elog_watch.hpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050012
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050013nobase_nodist_include_HEADERS = \
14 xyz/openbmc_project/Dump/Internal/Create/server.hpp
15
Jayanth Othayoth224882b2017-05-04 05:46:45 -050016sbin_PROGRAMS = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050017 phosphor-dump-manager \
18 phosphor-dump-monitor
Jayanth Othayoth224882b2017-05-04 05:46:45 -050019
20phosphor_dump_manager_SOURCES = \
21 dump_manager_main.cpp \
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050022 dump_entry.cpp \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -050023 dump_manager.cpp \
Jayanth Othayoth671fc7f2017-06-14 08:01:41 -050024 watch.cpp \
Jayanth Othayothd0f00642017-09-04 06:26:30 -050025 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
26 elog_watch.cpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050027
Jayanth Othayoth1756c062017-05-23 22:48:11 -050028phosphor_dump_monitor_SOURCES = \
Jayanth Othayothd02153c2017-07-02 22:29:42 -050029 watch.cpp \
30 core_manager.cpp \
31 core_manager_main.cpp
Jayanth Othayoth1756c062017-05-23 22:48:11 -050032
Jayanth Othayoth224882b2017-05-04 05:46:45 -050033phosphor_dump_manager_CXXFLAGS = \
34 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050035 $(SDBUSPLUS_CFLAGS) \
36 $(PHOSPHOR_LOGGING_CFLAGS)
37
38phosphor_dump_monitor_CXXFLAGS = \
39 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
40 $(PHOSPHOR_LOGGING_CFLAGS)
Jayanth Othayoth224882b2017-05-04 05:46:45 -050041
42phosphor_dump_manager_LDADD = \
43 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050044 $(SDBUSPLUS_LIBS) \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -050045 $(PHOSPHOR_LOGGING_LIBS) \
46 -lstdc++fs
Jayanth Othayoth1756c062017-05-23 22:48:11 -050047
48phosphor_dump_monitor_LDADD = \
49 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
50 $(PHOSPHOR_LOGGING_LIBS) \
51 -lstdc++fs
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050052
53# Be sure to build needed files before compiling
54BUILT_SOURCES = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050055 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
Jayanth Othayothd02153c2017-07-02 22:29:42 -050056 xyz/openbmc_project/Dump/Internal/Create/server.hpp
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050057
Jayanth Othayoth1756c062017-05-23 22:48:11 -050058CLEANFILES=${BUILT_SOURCES}
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050059
60xyz/openbmc_project/Dump/Internal/Create/server.cpp: \
61xyz/openbmc_project/Dump/Internal/Create.interface.yaml \
62xyz/openbmc_project/Dump/Internal/Create/server.hpp
63 @mkdir -p `dirname $@`
64 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \
65xyz.openbmc_project.Dump.Internal.Create > $@
66
67xyz/openbmc_project/Dump/Internal/Create/server.hpp: \
68xyz/openbmc_project/Dump/Internal/Create.interface.yaml
69 @mkdir -p `dirname $@`
70 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \
71xyz.openbmc_project.Dump.Internal.Create > $@