blob: 30d5a887f021c2d843a594ae1a29cb0ac6955b92 [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 \
6 dump_watch.hpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -05007
Jayanth Othayoth23ebc262017-05-25 07:22:03 -05008nobase_nodist_include_HEADERS = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -05009 xyz/openbmc_project/Dump/Monitor/error.hpp \
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050010 xyz/openbmc_project/Dump/Internal/Create/server.hpp
11
Jayanth Othayoth224882b2017-05-04 05:46:45 -050012sbin_PROGRAMS = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050013 phosphor-dump-manager \
14 phosphor-dump-monitor
Jayanth Othayoth224882b2017-05-04 05:46:45 -050015
16phosphor_dump_manager_SOURCES = \
17 dump_manager_main.cpp \
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050018 dump_entry.cpp \
19 xyz/openbmc_project/Dump/Internal/Create/server.cpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050020
Jayanth Othayoth1756c062017-05-23 22:48:11 -050021phosphor_dump_monitor_SOURCES = \
22 dump_watch_main.cpp \
23 dump_watch.cpp \
24 xyz/openbmc_project/Dump/Monitor/error.cpp
25
Jayanth Othayoth224882b2017-05-04 05:46:45 -050026phosphor_dump_manager_CXXFLAGS = \
27 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050028 $(SDBUSPLUS_CFLAGS) \
29 $(PHOSPHOR_LOGGING_CFLAGS)
30
31phosphor_dump_monitor_CXXFLAGS = \
32 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
33 $(PHOSPHOR_LOGGING_CFLAGS)
Jayanth Othayoth224882b2017-05-04 05:46:45 -050034
35phosphor_dump_manager_LDADD = \
36 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050037 $(SDBUSPLUS_LIBS) \
38 $(PHOSPHOR_LOGGING_LIBS)
39
40phosphor_dump_monitor_LDADD = \
41 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
42 $(PHOSPHOR_LOGGING_LIBS) \
43 -lstdc++fs
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050044
45# Be sure to build needed files before compiling
46BUILT_SOURCES = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050047 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
48 xyz/openbmc_project/Dump/Internal/Create/server.hpp \
49 xyz/openbmc_project/Dump/Monitor/error.cpp \
50 xyz/openbmc_project/Dump/Monitor/error.hpp
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050051
Jayanth Othayoth1756c062017-05-23 22:48:11 -050052CLEANFILES=${BUILT_SOURCES}
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050053
54xyz/openbmc_project/Dump/Internal/Create/server.cpp: \
55xyz/openbmc_project/Dump/Internal/Create.interface.yaml \
56xyz/openbmc_project/Dump/Internal/Create/server.hpp
57 @mkdir -p `dirname $@`
58 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \
59xyz.openbmc_project.Dump.Internal.Create > $@
60
61xyz/openbmc_project/Dump/Internal/Create/server.hpp: \
62xyz/openbmc_project/Dump/Internal/Create.interface.yaml
63 @mkdir -p `dirname $@`
64 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \
65xyz.openbmc_project.Dump.Internal.Create > $@
Jayanth Othayoth1756c062017-05-23 22:48:11 -050066
67xyz/openbmc_project/Dump/Monitor/error.hpp: \
68${top_srcdir}/xyz/openbmc_project/Dump/Monitor.errors.yaml
69 @mkdir -p `dirname $@`
70 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Dump.Monitor > $@
71
72xyz/openbmc_project/Dump/Monitor/error.cpp: ${top_srcdir}/xyz/openbmc_project/Dump/Monitor.errors.yaml
73 @mkdir -p `dirname $@`
74 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Dump.Monitor > $@