blob: 09e8807ac5761584555e8c789b934752e2476e90 [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 \
Lei YU710d49b2017-08-01 17:10:17 +080020 settings.cpp \
Lei YU23d06af2017-07-11 17:22:17 +080021 ${generated_source}
Lei YU2f9c0cc2017-01-20 14:02:03 +080022
23phosphor_timemanager_SOURCES = \
24 main.cpp
25
26phosphor_timemanager_LDADD = libtimemanager.la
27
28generic_cxx_flags = $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
29 $(SDBUSPLUS_CFLAGS)
30
31generic_ld_flags = $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
32 $(SDBUSPLUS_LIBS)
33
34libtimemanager_la_CXXFLAGS = $(generic_cxx_flags)
35libtimemanager_la_LIBADD = $(generic_ld_flags)
36
37phosphor_timemanager_CXXFLAGS = $(generic_cxx_flags)
38
39phosphor_timemanager_LDFLAGS = $(generic_ld_flags)
40
Lei YU23d06af2017-07-11 17:22:17 +080041xyz/openbmc_project/Time/Internal/error.hpp: ${top_srcdir}/xyz/openbmc_project/Time/Internal.errors.yaml
42 @mkdir -p `dirname $@`
43 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header xyz.openbmc_project.Time.Internal > $@
44
45xyz/openbmc_project/Time/Internal/error.cpp: ${top_srcdir}/xyz/openbmc_project/Time/Internal.errors.yaml
46 @mkdir -p `dirname $@`
47 $(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp xyz.openbmc_project.Time.Internal> $@
48
Lei YU2f9c0cc2017-01-20 14:02:03 +080049SUBDIRS = . test