blob: 6ff8965bc1d5589ed3416dab1067ee675bf965e7 [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 = \
5 dump_entry.hpp
6
Jayanth Othayoth23ebc262017-05-25 07:22:03 -05007nobase_nodist_include_HEADERS = \
8 xyz/openbmc_project/Dump/Internal/Create/server.hpp
9
Jayanth Othayoth224882b2017-05-04 05:46:45 -050010sbin_PROGRAMS = \
11 phosphor-dump-manager
12
13phosphor_dump_manager_SOURCES = \
14 dump_manager_main.cpp \
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050015 dump_entry.cpp \
16 xyz/openbmc_project/Dump/Internal/Create/server.cpp
Jayanth Othayoth224882b2017-05-04 05:46:45 -050017
18phosphor_dump_manager_CXXFLAGS = \
19 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
20 $(SDBUSPLUS_CFLAGS)
21
22phosphor_dump_manager_LDADD = \
23 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
24 $(SDBUSPLUS_LIBS)
Jayanth Othayoth23ebc262017-05-25 07:22:03 -050025
26# Be sure to build needed files before compiling
27BUILT_SOURCES = \
28 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
29 xyz/openbmc_project/Dump/Internal/Create/server.hpp
30
31CLEANFILES = \
32 xyz/openbmc_project/Dump/Internal/Create/server.cpp \
33 xyz/openbmc_project/Dump/Internal/Create/server.hpp
34
35xyz/openbmc_project/Dump/Internal/Create/server.cpp: \
36xyz/openbmc_project/Dump/Internal/Create.interface.yaml \
37xyz/openbmc_project/Dump/Internal/Create/server.hpp
38 @mkdir -p `dirname $@`
39 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \
40xyz.openbmc_project.Dump.Internal.Create > $@
41
42xyz/openbmc_project/Dump/Internal/Create/server.hpp: \
43xyz/openbmc_project/Dump/Internal/Create.interface.yaml
44 @mkdir -p `dirname $@`
45 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \
46xyz.openbmc_project.Dump.Internal.Create > $@