Artem Senichev | efd5d74 | 2018-10-24 16:14:04 +0300 | [diff] [blame] | 1 | YAML_IFACE = xyz/openbmc_project/HostLogger.interface.yaml |
| 2 | DBUS_IFACE = xyz.openbmc_project.HostLogger |
| 3 | GENERATED_HPP = xyz/openbmc_project/HostLogger/server.hpp |
| 4 | GENERATED_CPP = xyz/openbmc_project/HostLogger/server.cpp |
| 5 | |
| 6 | sbin_PROGRAMS = hostlogger |
| 7 | |
| 8 | nobase_nodist_include_HEADERS = \ |
| 9 | $(GENERATED_HPP) |
| 10 | |
| 11 | hostlogger_SOURCES = \ |
| 12 | $(GENERATED_CPP) \ |
| 13 | src/main.cpp \ |
| 14 | src/dbus_server.hpp \ |
| 15 | src/dbus_server.cpp \ |
| 16 | src/dbus_watch.hpp \ |
| 17 | src/dbus_watch.cpp \ |
| 18 | src/log_manager.hpp \ |
| 19 | src/log_manager.cpp \ |
| 20 | src/log_storage.hpp \ |
| 21 | src/log_storage.cpp |
| 22 | |
| 23 | hostlogger_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
| 24 | hostlogger_LDADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 25 | |
| 26 | BUILT_SOURCES = $(GENERATED_HPP) $(GENERATED_CPP) |
| 27 | CLEANFILES = $(BUILT_SOURCES) |
| 28 | |
| 29 | $(GENERATED_HPP): $(YAML_IFACE) |
| 30 | @mkdir -p $(@D) |
| 31 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header $(DBUS_IFACE) > $@ |
| 32 | |
| 33 | $(GENERATED_CPP): $(YAML_IFACE) $(GENERATED_HPP) |
| 34 | @mkdir -p $(@D) |
| 35 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp $(DBUS_IFACE) > $@ |