summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: bf7a559043cf48c38c089fcdf1af1099739a3fc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
AM_DEFAULT_SOURCE_EXT = .cpp

sbin_PROGRAMS = phosphor-timemanager

noinst_LTLIBRARIES = libtimemanager.la

generated_source = xyz/openbmc_project/Time/Internal/error.cpp

BUILT_SOURCES = ${generated_source} \
				xyz/openbmc_project/Time/Internal/error.hpp

CLEANFILES = ${BUILT_SOURCES}

libtimemanager_la_SOURCES = \
	epoch_base.cpp \
	bmc_epoch.cpp \
	host_epoch.cpp \
	manager.cpp \
	utils.cpp \
	${generated_source}

phosphor_timemanager_SOURCES = \
	main.cpp

phosphor_timemanager_LDADD = libtimemanager.la

generic_cxx_flags = $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
                    $(SDBUSPLUS_CFLAGS)

generic_ld_flags = $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
                   $(SDBUSPLUS_LIBS)

libtimemanager_la_CXXFLAGS = $(generic_cxx_flags)
libtimemanager_la_LIBADD = $(generic_ld_flags)

phosphor_timemanager_CXXFLAGS = $(generic_cxx_flags)

phosphor_timemanager_LDFLAGS = $(generic_ld_flags)

xyz/openbmc_project/Time/Internal/error.hpp: ${top_srcdir}/xyz/openbmc_project/Time/Internal.errors.yaml
	@mkdir -p `dirname $@`
	$(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-header xyz.openbmc_project.Time.Internal > $@

xyz/openbmc_project/Time/Internal/error.cpp: ${top_srcdir}/xyz/openbmc_project/Time/Internal.errors.yaml
	@mkdir -p `dirname $@`
	$(SDBUSPLUSPLUS) -r $(top_srcdir) error exception-cpp xyz.openbmc_project.Time.Internal> $@

SUBDIRS = . test
OpenPOWER on IntegriCloud