Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
| 3 | # Build these headers, don't install them |
| 4 | noinst_HEADERS = \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 5 | dump_entry.hpp \ |
| 6 | dump_watch.hpp |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 7 | |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 8 | nobase_nodist_include_HEADERS = \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 9 | xyz/openbmc_project/Dump/Monitor/error.hpp \ |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 10 | xyz/openbmc_project/Dump/Internal/Create/server.hpp |
| 11 | |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 12 | sbin_PROGRAMS = \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 13 | phosphor-dump-manager \ |
| 14 | phosphor-dump-monitor |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 15 | |
| 16 | phosphor_dump_manager_SOURCES = \ |
| 17 | dump_manager_main.cpp \ |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 18 | dump_entry.cpp \ |
| 19 | xyz/openbmc_project/Dump/Internal/Create/server.cpp |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 20 | |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 21 | phosphor_dump_monitor_SOURCES = \ |
| 22 | dump_watch_main.cpp \ |
| 23 | dump_watch.cpp \ |
| 24 | xyz/openbmc_project/Dump/Monitor/error.cpp |
| 25 | |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 26 | phosphor_dump_manager_CXXFLAGS = \ |
| 27 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 28 | $(SDBUSPLUS_CFLAGS) \ |
| 29 | $(PHOSPHOR_LOGGING_CFLAGS) |
| 30 | |
| 31 | phosphor_dump_monitor_CXXFLAGS = \ |
| 32 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 33 | $(PHOSPHOR_LOGGING_CFLAGS) |
Jayanth Othayoth | 224882b | 2017-05-04 05:46:45 -0500 | [diff] [blame] | 34 | |
| 35 | phosphor_dump_manager_LDADD = \ |
| 36 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 37 | $(SDBUSPLUS_LIBS) \ |
| 38 | $(PHOSPHOR_LOGGING_LIBS) |
| 39 | |
| 40 | phosphor_dump_monitor_LDADD = \ |
| 41 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 42 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 43 | -lstdc++fs |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 44 | |
| 45 | # Be sure to build needed files before compiling |
| 46 | BUILT_SOURCES = \ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 47 | 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 Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 51 | |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 52 | CLEANFILES=${BUILT_SOURCES} |
Jayanth Othayoth | 23ebc26 | 2017-05-25 07:22:03 -0500 | [diff] [blame] | 53 | |
| 54 | xyz/openbmc_project/Dump/Internal/Create/server.cpp: \ |
| 55 | xyz/openbmc_project/Dump/Internal/Create.interface.yaml \ |
| 56 | xyz/openbmc_project/Dump/Internal/Create/server.hpp |
| 57 | @mkdir -p `dirname $@` |
| 58 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp \ |
| 59 | xyz.openbmc_project.Dump.Internal.Create > $@ |
| 60 | |
| 61 | xyz/openbmc_project/Dump/Internal/Create/server.hpp: \ |
| 62 | xyz/openbmc_project/Dump/Internal/Create.interface.yaml |
| 63 | @mkdir -p `dirname $@` |
| 64 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header \ |
| 65 | xyz.openbmc_project.Dump.Internal.Create > $@ |
Jayanth Othayoth | 1756c06 | 2017-05-23 22:48:11 -0500 | [diff] [blame] | 66 | |
| 67 | xyz/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 | |
| 72 | xyz/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 > $@ |