blob: 2197ef3964cea292af9b0e9f8f4e589168921433 [file] [log] [blame]
Artem Senichevefd5d742018-10-24 16:14:04 +03001YAML_IFACE = xyz/openbmc_project/HostLogger.interface.yaml
2DBUS_IFACE = xyz.openbmc_project.HostLogger
3GENERATED_HPP = xyz/openbmc_project/HostLogger/server.hpp
4GENERATED_CPP = xyz/openbmc_project/HostLogger/server.cpp
5
6sbin_PROGRAMS = hostlogger
7
8nobase_nodist_include_HEADERS = \
9 $(GENERATED_HPP)
10
11hostlogger_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
23hostlogger_CXXFLAGS = $(SDBUSPLUS_CFLAGS) $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
24hostlogger_LDADD = $(SDBUSPLUS_LIBS) $(PHOSPHOR_DBUS_INTERFACES_LIBS)
25
26BUILT_SOURCES = $(GENERATED_HPP) $(GENERATED_CPP)
27CLEANFILES = $(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) > $@