blob: 2197ef3964cea292af9b0e9f8f4e589168921433 [file] [log] [blame]
YAML_IFACE = xyz/openbmc_project/HostLogger.interface.yaml
DBUS_IFACE = xyz.openbmc_project.HostLogger
GENERATED_HPP = xyz/openbmc_project/HostLogger/server.hpp
GENERATED_CPP = xyz/openbmc_project/HostLogger/server.cpp
sbin_PROGRAMS = hostlogger
nobase_nodist_include_HEADERS = \
$(GENERATED_HPP)
hostlogger_SOURCES = \
$(GENERATED_CPP) \
src/main.cpp \
src/dbus_server.hpp \
src/dbus_server.cpp \
src/dbus_watch.hpp \
src/dbus_watch.cpp \
src/log_manager.hpp \
src/log_manager.cpp \
src/log_storage.hpp \
src/log_storage.cpp
hostlogger_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
hostlogger_LDADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS)
BUILT_SOURCES = $(GENERATED_HPP) $(GENERATED_CPP)
CLEANFILES = $(BUILT_SOURCES)
$(GENERATED_HPP): $(YAML_IFACE)
@mkdir -p $(@D)
$(SDBUSPLUSPLUS) -r $(srcdir) interface server-header $(DBUS_IFACE) > $@
$(GENERATED_CPP): $(YAML_IFACE) $(GENERATED_HPP)
@mkdir -p $(@D)
$(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp $(DBUS_IFACE) > $@