Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 3 | # Build these headers, don't install them |
| 4 | noinst_HEADERS = \ |
Gunnar Mills | 9b7c0b6 | 2017-04-24 12:59:58 -0500 | [diff] [blame] | 5 | bmc_version.hpp \ |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 6 | download_manager.hpp \ |
Gunnar Mills | e91d321 | 2017-04-19 15:42:47 -0500 | [diff] [blame] | 7 | watch.hpp \ |
| 8 | version.hpp \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 9 | image_manager.hpp \ |
Saqib Khan | b077470 | 2017-05-23 16:02:41 -0500 | [diff] [blame] | 10 | item_updater.hpp \ |
| 11 | activation.hpp |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 12 | |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 13 | sbin_PROGRAMS = \ |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 14 | phosphor-version-software-manager \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 15 | phosphor-download-manager \ |
| 16 | phosphor-image-updater |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 17 | |
| 18 | phosphor_version_software_manager_SOURCES = \ |
Gunnar Mills | 9b7c0b6 | 2017-04-24 12:59:58 -0500 | [diff] [blame] | 19 | bmc_version.cpp \ |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 20 | image_manager_main.cpp \ |
Gunnar Mills | e91d321 | 2017-04-19 15:42:47 -0500 | [diff] [blame] | 21 | watch.cpp \ |
| 22 | version.cpp \ |
| 23 | image_manager.cpp |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 24 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 25 | nobase_nodist_include_HEADERS = \ |
| 26 | xyz/openbmc_project/Software/Version/error.hpp |
| 27 | |
| 28 | BUILT_SOURCES = \ |
| 29 | xyz/openbmc_project/Software/Version/error.cpp \ |
| 30 | xyz/openbmc_project/Software/Version/error.hpp |
| 31 | |
| 32 | CLEANFILES = ${BUILT_SOURCES} |
| 33 | |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 34 | phosphor_download_manager_SOURCES = \ |
| 35 | download_manager.cpp \ |
| 36 | download_manager_main.cpp |
| 37 | |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 38 | phosphor_image_updater_SOURCES = \ |
Saqib Khan | b077470 | 2017-05-23 16:02:41 -0500 | [diff] [blame] | 39 | activation.cpp \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 40 | item_updater.cpp \ |
| 41 | item_updater_main.cpp |
| 42 | |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 43 | generic_cxxflags = \ |
| 44 | $(SYSTEMD_CFLAGS) \ |
| 45 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 46 | $(SDBUSPLUS_CFLAGS) \ |
| 47 | $(PHOSPHOR_LOGGING_CFLAGS) |
| 48 | generic_ldflags = \ |
| 49 | $(SYSTEMD_LIBS) \ |
| 50 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 51 | $(SDBUSPLUS_LIBS) \ |
Gunnar Mills | 3a482f6 | 2017-04-20 16:07:20 -0500 | [diff] [blame] | 52 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 53 | -lstdc++fs |
Gunnar Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 54 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 55 | xyz/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 | |
| 59 | xyz/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 Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 63 | phosphor_version_software_manager_CXXFLAGS = $(generic_cxxflags) |
| 64 | phosphor_version_software_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 65 | phosphor_download_manager_CXXFLAGS = $(generic_cxxflags) |
| 66 | phosphor_download_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 67 | phosphor_image_updater_CXXFLAGS = $(generic_cxxflags) |
| 68 | phosphor_image_updater_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 01d55c3 | 2017-04-20 10:52:15 -0500 | [diff] [blame] | 69 | |
| 70 | SUBDIRS = test |