blob: 7d65c7ae06b2d1d5a73fe10d50254ef6ef5847c6 [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 = \
Gunnar Mills9b7c0b62017-04-24 12:59:58 -05005 bmc_version.hpp \
Deepak Kodihalli059e2332017-04-12 06:40:53 -05006 download_manager.hpp \
Gunnar Millse91d3212017-04-19 15:42:47 -05007 watch.hpp \
8 version.hpp \
Gunnar Millsec1b41c2017-05-02 12:20:36 -05009 image_manager.hpp \
Saqib Khanb0774702017-05-23 16:02:41 -050010 item_updater.hpp \
11 activation.hpp
Deepak Kodihalli059e2332017-04-12 06:40:53 -050012
Gunnar Mills01a323b2017-01-18 09:48:13 -060013sbin_PROGRAMS = \
Gunnar Mills701e0212017-04-03 11:21:27 -050014 phosphor-version-software-manager \
Gunnar Millsec1b41c2017-05-02 12:20:36 -050015 phosphor-download-manager \
16 phosphor-image-updater
Gunnar Mills01a323b2017-01-18 09:48:13 -060017
18phosphor_version_software_manager_SOURCES = \
Gunnar Mills9b7c0b62017-04-24 12:59:58 -050019 bmc_version.cpp \
Deepak Kodihalli059e2332017-04-12 06:40:53 -050020 image_manager_main.cpp \
Gunnar Millse91d3212017-04-19 15:42:47 -050021 watch.cpp \
22 version.cpp \
23 image_manager.cpp
Gunnar Mills01a323b2017-01-18 09:48:13 -060024
Gunnar Mills93c12d32017-05-10 13:11:53 -050025nobase_nodist_include_HEADERS = \
26 xyz/openbmc_project/Software/Version/error.hpp
27
28BUILT_SOURCES = \
29 xyz/openbmc_project/Software/Version/error.cpp \
30 xyz/openbmc_project/Software/Version/error.hpp
31
32CLEANFILES = ${BUILT_SOURCES}
33
Gunnar Mills701e0212017-04-03 11:21:27 -050034phosphor_download_manager_SOURCES = \
35 download_manager.cpp \
36 download_manager_main.cpp
37
Gunnar Millsec1b41c2017-05-02 12:20:36 -050038phosphor_image_updater_SOURCES = \
Saqib Khanb0774702017-05-23 16:02:41 -050039 activation.cpp \
Gunnar Millsec1b41c2017-05-02 12:20:36 -050040 item_updater.cpp \
41 item_updater_main.cpp
42
Deepak Kodihalli059e2332017-04-12 06:40:53 -050043generic_cxxflags = \
44 $(SYSTEMD_CFLAGS) \
45 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
46 $(SDBUSPLUS_CFLAGS) \
47 $(PHOSPHOR_LOGGING_CFLAGS)
48generic_ldflags = \
49 $(SYSTEMD_LIBS) \
50 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
51 $(SDBUSPLUS_LIBS) \
Gunnar Mills3a482f62017-04-20 16:07:20 -050052 $(PHOSPHOR_LOGGING_LIBS) \
53 -lstdc++fs
Gunnar Mills32159fb2017-01-31 21:44:36 -060054
Gunnar Mills93c12d32017-05-10 13:11:53 -050055xyz/openbmc_project/Software/Version/error.hpp: ${top_srcdir}/xyz/openbmc_project/Software/Version.errors.yaml
56 @mkdir -p `dirname $@`
57 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Software.Version > $@
58
59xyz/openbmc_project/Software/Version/error.cpp: ${top_srcdir}/xyz/openbmc_project/Software/Version.errors.yaml
60 @mkdir -p `dirname $@`
61 $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Software.Version > $@
62
Gunnar Mills32159fb2017-01-31 21:44:36 -060063phosphor_version_software_manager_CXXFLAGS = $(generic_cxxflags)
64phosphor_version_software_manager_LDFLAGS = $(generic_ldflags)
Gunnar Mills701e0212017-04-03 11:21:27 -050065phosphor_download_manager_CXXFLAGS = $(generic_cxxflags)
66phosphor_download_manager_LDFLAGS = $(generic_ldflags)
Gunnar Millsec1b41c2017-05-02 12:20:36 -050067phosphor_image_updater_CXXFLAGS = $(generic_cxxflags)
68phosphor_image_updater_LDFLAGS = $(generic_ldflags)
Gunnar Mills01d55c32017-04-20 10:52:15 -050069
70SUBDIRS = test