Vishwanatha | 81ee91f | 2016-08-30 17:17:13 +0530 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 3 | sbin_PROGRAMS = phosphor-timemanager |
Vishwanatha | 81ee91f | 2016-08-30 17:17:13 +0530 | [diff] [blame] | 4 | |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 5 | noinst_LTLIBRARIES = libtimemanager.la |
Vishwanatha | 81ee91f | 2016-08-30 17:17:13 +0530 | [diff] [blame] | 6 | |
Lei YU | 23d06af | 2017-07-11 17:22:17 +0800 | [diff] [blame] | 7 | generated_source = xyz/openbmc_project/Time/Internal/error.cpp |
| 8 | |
| 9 | BUILT_SOURCES = ${generated_source} \ |
| 10 | xyz/openbmc_project/Time/Internal/error.hpp |
| 11 | |
| 12 | CLEANFILES = ${BUILT_SOURCES} |
| 13 | |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 14 | libtimemanager_la_SOURCES = \ |
Lei YU | 9623282 | 2017-01-20 14:05:46 +0800 | [diff] [blame] | 15 | epoch_base.cpp \ |
Lei YU | af5abc5 | 2017-03-07 17:49:17 +0800 | [diff] [blame] | 16 | bmc_epoch.cpp \ |
Lei YU | 415b964 | 2017-02-09 11:37:26 +0800 | [diff] [blame] | 17 | host_epoch.cpp \ |
Lei YU | ddd5442 | 2017-04-18 16:38:44 +0800 | [diff] [blame] | 18 | manager.cpp \ |
Lei YU | 23d06af | 2017-07-11 17:22:17 +0800 | [diff] [blame] | 19 | utils.cpp \ |
Lei YU | 710d49b | 2017-08-01 17:10:17 +0800 | [diff] [blame] | 20 | settings.cpp \ |
Lei YU | 23d06af | 2017-07-11 17:22:17 +0800 | [diff] [blame] | 21 | ${generated_source} |
Lei YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 22 | |
| 23 | phosphor_timemanager_SOURCES = \ |
| 24 | main.cpp |
| 25 | |
| 26 | phosphor_timemanager_LDADD = libtimemanager.la |
| 27 | |
| 28 | generic_cxx_flags = $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 29 | $(SDBUSPLUS_CFLAGS) |
| 30 | |
| 31 | generic_ld_flags = $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 32 | $(SDBUSPLUS_LIBS) |
| 33 | |
| 34 | libtimemanager_la_CXXFLAGS = $(generic_cxx_flags) |
| 35 | libtimemanager_la_LIBADD = $(generic_ld_flags) |
| 36 | |
| 37 | phosphor_timemanager_CXXFLAGS = $(generic_cxx_flags) |
| 38 | |
| 39 | phosphor_timemanager_LDFLAGS = $(generic_ld_flags) |
| 40 | |
Lei YU | 23d06af | 2017-07-11 17:22:17 +0800 | [diff] [blame] | 41 | xyz/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 | |
| 45 | xyz/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 YU | 2f9c0cc | 2017-01-20 14:02:03 +0800 | [diff] [blame] | 49 | SUBDIRS = . test |