blob: bf7a559043cf48c38c089fcdf1af1099739a3fc1 [file] [log] [blame]
Vishwanatha81ee91f2016-08-30 17:17:13 +05301AM_DEFAULT_SOURCE_EXT = .cpp
2
Lei YU2f9c0cc2017-01-20 14:02:03 +08003sbin_PROGRAMS = phosphor-timemanager
Vishwanatha81ee91f2016-08-30 17:17:13 +05304
Lei YU2f9c0cc2017-01-20 14:02:03 +08005noinst_LTLIBRARIES = libtimemanager.la
Vishwanatha81ee91f2016-08-30 17:17:13 +05306
Lei YU23d06af2017-07-11 17:22:17 +08007generated_source = xyz/openbmc_project/Time/Internal/error.cpp
8
9BUILT_SOURCES = ${generated_source} \
10 xyz/openbmc_project/Time/Internal/error.hpp
11
12CLEANFILES = ${BUILT_SOURCES}
13
Lei YU2f9c0cc2017-01-20 14:02:03 +080014libtimemanager_la_SOURCES = \
Lei YU96232822017-01-20 14:05:46 +080015 epoch_base.cpp \
Lei YUaf5abc52017-03-07 17:49:17 +080016 bmc_epoch.cpp \
Lei YU415b9642017-02-09 11:37:26 +080017 host_epoch.cpp \
Lei YUddd54422017-04-18 16:38:44 +080018 manager.cpp \
Lei YU23d06af2017-07-11 17:22:17 +080019 utils.cpp \
20 ${generated_source}
Lei YU2f9c0cc2017-01-20 14:02:03 +080021
22phosphor_timemanager_SOURCES = \
23 main.cpp
24
25phosphor_timemanager_LDADD = libtimemanager.la
26
27generic_cxx_flags = $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
28 $(SDBUSPLUS_CFLAGS)
29
30generic_ld_flags = $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
31 $(SDBUSPLUS_LIBS)
32
33libtimemanager_la_CXXFLAGS = $(generic_cxx_flags)
34libtimemanager_la_LIBADD = $(generic_ld_flags)
35
36phosphor_timemanager_CXXFLAGS = $(generic_cxx_flags)
37
38phosphor_timemanager_LDFLAGS = $(generic_ld_flags)
39
Lei YU23d06af2017-07-11 17:22:17 +080040xyz/openbmc_project/Time/Internal/error.hpp: ${top_srcdir}/xyz/openbmc_project/Time/Internal.errors.yaml
41 @mkdir -p `dirname $@`
42 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header xyz.openbmc_project.Time.Internal > $@
43
44xyz/openbmc_project/Time/Internal/error.cpp: ${top_srcdir}/xyz/openbmc_project/Time/Internal.errors.yaml
45 @mkdir -p `dirname $@`
46 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp xyz.openbmc_project.Time.Internal> $@
47
Lei YU2f9c0cc2017-01-20 14:02:03 +080048SUBDIRS = . test