blob: 87c5ad3df5e772cf05bb6d413d8e5de750a9e0ea [file] [log] [blame]
Gunnar Mills01a323b2017-01-18 09:48:13 -06001AM_DEFAULT_SOURCE_EXT = .cpp
2
Deepak Kodihalli059e2332017-04-12 06:40:53 -05003# Build these headers, don't install them
4noinst_HEADERS = \
Deepak Kodihalli059e2332017-04-12 06:40:53 -05005 download_manager.hpp \
Gunnar Millse91d3212017-04-19 15:42:47 -05006 watch.hpp \
7 version.hpp \
Gunnar Millsec1b41c2017-05-02 12:20:36 -05008 image_manager.hpp \
Saqib Khanb0774702017-05-23 16:02:41 -05009 item_updater.hpp \
10 activation.hpp
Deepak Kodihalli059e2332017-04-12 06:40:53 -050011
Gunnar Mills01a323b2017-01-18 09:48:13 -060012sbin_PROGRAMS = \
Gunnar Mills701e0212017-04-03 11:21:27 -050013 phosphor-version-software-manager \
Gunnar Millsec1b41c2017-05-02 12:20:36 -050014 phosphor-download-manager \
15 phosphor-image-updater
Gunnar Mills01a323b2017-01-18 09:48:13 -060016
17phosphor_version_software_manager_SOURCES = \
Deepak Kodihalli059e2332017-04-12 06:40:53 -050018 image_manager_main.cpp \
Gunnar Millse91d3212017-04-19 15:42:47 -050019 watch.cpp \
20 version.cpp \
21 image_manager.cpp
Gunnar Mills01a323b2017-01-18 09:48:13 -060022
Gunnar Mills93c12d32017-05-10 13:11:53 -050023nobase_nodist_include_HEADERS = \
Gunnar Millsf5eaf392017-08-22 16:36:55 -050024 xyz/openbmc_project/Software/Version/error.hpp \
25 org/openbmc/Associations/server.hpp
Gunnar Mills93c12d32017-05-10 13:11:53 -050026
27BUILT_SOURCES = \
28 xyz/openbmc_project/Software/Version/error.cpp \
Gunnar Millsf5eaf392017-08-22 16:36:55 -050029 xyz/openbmc_project/Software/Version/error.hpp \
30 org/openbmc/Associations/server.cpp \
31 org/openbmc/Associations/server.hpp
Gunnar Mills93c12d32017-05-10 13:11:53 -050032
33CLEANFILES = ${BUILT_SOURCES}
34
Gunnar Mills701e0212017-04-03 11:21:27 -050035phosphor_download_manager_SOURCES = \
36 download_manager.cpp \
37 download_manager_main.cpp
38
Gunnar Millsec1b41c2017-05-02 12:20:36 -050039phosphor_image_updater_SOURCES = \
Saqib Khanb0774702017-05-23 16:02:41 -050040 activation.cpp \
Saqib Khan705f1bf2017-06-09 23:58:38 -050041 version.cpp \
Saqib Khan5d532672017-08-09 10:44:50 -050042 serialize.cpp \
Gunnar Millsec1b41c2017-05-02 12:20:36 -050043 item_updater.cpp \
Gunnar Millsf5eaf392017-08-22 16:36:55 -050044 item_updater_main.cpp \
45 org/openbmc/Associations/server.cpp
Gunnar Millsec1b41c2017-05-02 12:20:36 -050046
Deepak Kodihalli059e2332017-04-12 06:40:53 -050047generic_cxxflags = \
48 $(SYSTEMD_CFLAGS) \
49 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
50 $(SDBUSPLUS_CFLAGS) \
51 $(PHOSPHOR_LOGGING_CFLAGS)
52generic_ldflags = \
53 $(SYSTEMD_LIBS) \
54 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
55 $(SDBUSPLUS_LIBS) \
Gunnar Mills3a482f62017-04-20 16:07:20 -050056 $(PHOSPHOR_LOGGING_LIBS) \
57 -lstdc++fs
Gunnar Mills32159fb2017-01-31 21:44:36 -060058
Gunnar Mills93c12d32017-05-10 13:11:53 -050059xyz/openbmc_project/Software/Version/error.hpp: ${top_srcdir}/xyz/openbmc_project/Software/Version.errors.yaml
60 @mkdir -p `dirname $@`
61 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Software.Version > $@
62
63xyz/openbmc_project/Software/Version/error.cpp: ${top_srcdir}/xyz/openbmc_project/Software/Version.errors.yaml
64 @mkdir -p `dirname $@`
65 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Software.Version > $@
66
Gunnar Millsf5eaf392017-08-22 16:36:55 -050067org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml
68 @mkdir -p `dirname $@`
69 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@
70
71org/openbmc/Associations/server.hpp: org/openbmc/Associations.interface.yaml
72 @mkdir -p `dirname $@`
73 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header org.openbmc.Associations > $@
74
Gunnar Mills32159fb2017-01-31 21:44:36 -060075phosphor_version_software_manager_CXXFLAGS = $(generic_cxxflags)
76phosphor_version_software_manager_LDFLAGS = $(generic_ldflags)
Gunnar Mills701e0212017-04-03 11:21:27 -050077phosphor_download_manager_CXXFLAGS = $(generic_cxxflags)
78phosphor_download_manager_LDFLAGS = $(generic_ldflags)
Gunnar Millsec1b41c2017-05-02 12:20:36 -050079phosphor_image_updater_CXXFLAGS = $(generic_cxxflags)
80phosphor_image_updater_LDFLAGS = $(generic_ldflags)
Gunnar Mills01d55c32017-04-20 10:52:15 -050081
82SUBDIRS = test