blob: 638cb0fb0a18b3b88b9ca3b6a714d396062636cc [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 \
10 watch.hpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050011
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050012nobase_nodist_include_HEADERS = \
13 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 \
Jayanth Othayoth671fc7f2017-06-14 08:01:41 -050023 watch.cpp \
24 xyz/openbmc_project/Dump/Internal/Create/server.cpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050025
Jayanth Othayoth1756c062017-05-23 22:48:11 -050026phosphor_dump_monitor_SOURCES = \
Jayanth Othayothd02153c2017-07-02 22:29:42 -050027 watch.cpp \
28 core_manager.cpp \
29 core_manager_main.cpp
Jayanth Othayoth1756c062017-05-23 22:48:11 -050030
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 \
Jayanth Othayothd02153c2017-07-02 22:29:42 -050054 xyz/openbmc_project/Dump/Internal/Create/server.hpp
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050055
Jayanth Othayoth1756c062017-05-23 22:48:11 -050056CLEANFILES=${BUILT_SOURCES}
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050057
58xyz/openbmc_project/Dump/Internal/Create/server.cpp: \
59xyz/openbmc_project/Dump/Internal/Create.interface.yaml \
60xyz/openbmc_project/Dump/Internal/Create/server.hpp
61 @mkdir -p `dirname $@`
62 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \
63xyz.openbmc_project.Dump.Internal.Create > $@
64
65xyz/openbmc_project/Dump/Internal/Create/server.hpp: \
66xyz/openbmc_project/Dump/Internal/Create.interface.yaml
67 @mkdir -p `dirname $@`
68 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \
69xyz.openbmc_project.Dump.Internal.Create > $@