blob: 72401e1f3a30eff3923b716f30c1a68c2eaa1525 [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 Othayotha320c7c2017-06-14 07:17:21 -05006 dump_watch.hpp \
7 dump_internal.hpp \
8 dump_manager.hpp \
9 dump_utils.hpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050010
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050011nobase_nodist_include_HEADERS = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050012 xyz/openbmc_project/Dump/Monitor/error.hpp \
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050013 xyz/openbmc_project/Dump/Internal/Create/server.hpp
14
Jayanth Othayoth224882b2017-05-04 05:46:45 -050015sbin_PROGRAMS = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050016 phosphor-dump-manager \
17 phosphor-dump-monitor
Jayanth Othayoth224882b2017-05-04 05:46:45 -050018
19phosphor_dump_manager_SOURCES = \
20 dump_manager_main.cpp \
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050021 dump_entry.cpp \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -050022 dump_manager.cpp \
23 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
24 xyz/openbmc_project/Dump/Monitor/error.cpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050025
Jayanth Othayoth1756c062017-05-23 22:48:11 -050026phosphor_dump_monitor_SOURCES = \
27 dump_watch_main.cpp \
28 dump_watch.cpp \
29 xyz/openbmc_project/Dump/Monitor/error.cpp
30
Jayanth Othayoth224882b2017-05-04 05:46:45 -050031phosphor_dump_manager_CXXFLAGS = \
32 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050033 $(SDBUSPLUS_CFLAGS) \
34 $(PHOSPHOR_LOGGING_CFLAGS)
35
36phosphor_dump_monitor_CXXFLAGS = \
37 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
38 $(PHOSPHOR_LOGGING_CFLAGS)
Jayanth Othayoth224882b2017-05-04 05:46:45 -050039
40phosphor_dump_manager_LDADD = \
41 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050042 $(SDBUSPLUS_LIBS) \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -050043 $(PHOSPHOR_LOGGING_LIBS) \
44 -lstdc++fs
Jayanth Othayoth1756c062017-05-23 22:48:11 -050045
46phosphor_dump_monitor_LDADD = \
47 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
48 $(PHOSPHOR_LOGGING_LIBS) \
49 -lstdc++fs
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050050
51# Be sure to build needed files before compiling
52BUILT_SOURCES = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050053 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
54 xyz/openbmc_project/Dump/Internal/Create/server.hpp \
55 xyz/openbmc_project/Dump/Monitor/error.cpp \
56 xyz/openbmc_project/Dump/Monitor/error.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 > $@
Jayanth Othayoth1756c062017-05-23 22:48:11 -050072
73xyz/openbmc_project/Dump/Monitor/error.hpp: \
74${top_srcdir}/xyz/openbmc_project/Dump/Monitor.errors.yaml
75 @mkdir -p `dirname $@`
76 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Dump.Monitor > $@
77
78xyz/openbmc_project/Dump/Monitor/error.cpp: ${top_srcdir}/xyz/openbmc_project/Dump/Monitor.errors.yaml
79 @mkdir -p `dirname $@`
80 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Dump.Monitor > $@