blob: 85149c4a0131ff26ca67f118e595dded88b5270d [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 \
Jayanth Othayoth671fc7f2017-06-14 08:01:41 -05009 dump_utils.hpp \
10 watch.hpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050011
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050012nobase_nodist_include_HEADERS = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050013 xyz/openbmc_project/Dump/Monitor/error.hpp \
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050014 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 \
25 xyz/openbmc_project/Dump/Internal/Create/server.cpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050026
Jayanth Othayoth1756c062017-05-23 22:48:11 -050027phosphor_dump_monitor_SOURCES = \
28 dump_watch_main.cpp \
29 dump_watch.cpp \
30 xyz/openbmc_project/Dump/Monitor/error.cpp
31
Jayanth Othayoth224882b2017-05-04 05:46:45 -050032phosphor_dump_manager_CXXFLAGS = \
33 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050034 $(SDBUSPLUS_CFLAGS) \
35 $(PHOSPHOR_LOGGING_CFLAGS)
36
37phosphor_dump_monitor_CXXFLAGS = \
38 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
39 $(PHOSPHOR_LOGGING_CFLAGS)
Jayanth Othayoth224882b2017-05-04 05:46:45 -050040
41phosphor_dump_manager_LDADD = \
42 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050043 $(SDBUSPLUS_LIBS) \
Jayanth Othayotha320c7c2017-06-14 07:17:21 -050044 $(PHOSPHOR_LOGGING_LIBS) \
45 -lstdc++fs
Jayanth Othayoth1756c062017-05-23 22:48:11 -050046
47phosphor_dump_monitor_LDADD = \
48 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
49 $(PHOSPHOR_LOGGING_LIBS) \
50 -lstdc++fs
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050051
52# Be sure to build needed files before compiling
53BUILT_SOURCES = \
Jayanth Othayoth1756c062017-05-23 22:48:11 -050054 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
55 xyz/openbmc_project/Dump/Internal/Create/server.hpp \
56 xyz/openbmc_project/Dump/Monitor/error.cpp \
57 xyz/openbmc_project/Dump/Monitor/error.hpp
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050058
Jayanth Othayoth1756c062017-05-23 22:48:11 -050059CLEANFILES=${BUILT_SOURCES}
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050060
61xyz/openbmc_project/Dump/Internal/Create/server.cpp: \
62xyz/openbmc_project/Dump/Internal/Create.interface.yaml \
63xyz/openbmc_project/Dump/Internal/Create/server.hpp
64 @mkdir -p `dirname $@`
65 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \
66xyz.openbmc_project.Dump.Internal.Create > $@
67
68xyz/openbmc_project/Dump/Internal/Create/server.hpp: \
69xyz/openbmc_project/Dump/Internal/Create.interface.yaml
70 @mkdir -p `dirname $@`
71 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \
72xyz.openbmc_project.Dump.Internal.Create > $@
Jayanth Othayoth1756c062017-05-23 22:48:11 -050073
74xyz/openbmc_project/Dump/Monitor/error.hpp: \
75${top_srcdir}/xyz/openbmc_project/Dump/Monitor.errors.yaml
76 @mkdir -p `dirname $@`
77 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Dump.Monitor > $@
78
79xyz/openbmc_project/Dump/Monitor/error.cpp: ${top_srcdir}/xyz/openbmc_project/Dump/Monitor.errors.yaml
80 @mkdir -p `dirname $@`
81 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Dump.Monitor > $@