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 = \ |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 5 | download_manager.hpp \ |
Gunnar Mills | e91d321 | 2017-04-19 15:42:47 -0500 | [diff] [blame] | 6 | watch.hpp \ |
| 7 | version.hpp \ |
Lei YU | 1be8d50 | 2018-06-20 11:48:36 +0800 | [diff] [blame] | 8 | images.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 \ |
Lei YU | 56aaf45 | 2018-06-21 16:09:44 +0800 | [diff] [blame] | 11 | activation.hpp \ |
| 12 | flash.hpp \ |
| 13 | item_updater_helper.hpp |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 14 | |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 15 | sbin_PROGRAMS = \ |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 16 | phosphor-version-software-manager \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 17 | phosphor-download-manager \ |
| 18 | phosphor-image-updater |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 19 | |
| 20 | phosphor_version_software_manager_SOURCES = \ |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 21 | image_manager_main.cpp \ |
Gunnar Mills | e91d321 | 2017-04-19 15:42:47 -0500 | [diff] [blame] | 22 | watch.cpp \ |
| 23 | version.cpp \ |
| 24 | image_manager.cpp |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 25 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 26 | BUILT_SOURCES = \ |
| 27 | xyz/openbmc_project/Software/Version/error.cpp \ |
Gunnar Mills | f5eaf39 | 2017-08-22 16:36:55 -0500 | [diff] [blame] | 28 | xyz/openbmc_project/Software/Version/error.hpp \ |
| 29 | org/openbmc/Associations/server.cpp \ |
| 30 | org/openbmc/Associations/server.hpp |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 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 \ |
Saqib Khan | 705f1bf | 2017-06-09 23:58:38 -0500 | [diff] [blame] | 40 | version.cpp \ |
Saqib Khan | 5d53267 | 2017-08-09 10:44:50 -0500 | [diff] [blame] | 41 | serialize.cpp \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 42 | item_updater.cpp \ |
Jayanth Othayoth | 0e0c127 | 2018-02-21 05:46:36 -0600 | [diff] [blame] | 43 | item_updater_main.cpp |
| 44 | |
Lei YU | a7853ee | 2018-05-23 11:13:12 +0800 | [diff] [blame] | 45 | if UBIFS_LAYOUT |
Adriana Kobylak | 9f89e2e | 2018-05-30 13:16:20 -0500 | [diff] [blame] | 46 | include ubi/Makefile.am.include |
Lei YU | a7853ee | 2018-05-23 11:13:12 +0800 | [diff] [blame] | 47 | else |
| 48 | include static/Makefile.am.include |
| 49 | endif |
Adriana Kobylak | 9f89e2e | 2018-05-30 13:16:20 -0500 | [diff] [blame] | 50 | |
Jayanth Othayoth | 0e0c127 | 2018-02-21 05:46:36 -0600 | [diff] [blame] | 51 | if WANT_SIGNATURE_VERIFY_BUILD |
Adriana Kobylak | 5ed9b2d | 2018-09-06 13:15:34 -0500 | [diff] [blame] | 52 | noinst_HEADERS += \ |
| 53 | image_verify.hpp \ |
| 54 | utils.hpp |
| 55 | phosphor_image_updater_SOURCES += \ |
| 56 | image_verify.cpp \ |
| 57 | utils.cpp |
Jayanth Othayoth | 0e0c127 | 2018-02-21 05:46:36 -0600 | [diff] [blame] | 58 | endif |
Gunnar Mills | 652da83 | 2017-08-29 08:34:54 -0500 | [diff] [blame] | 59 | |
Adriana Kobylak | 7e8d76b | 2018-04-20 10:03:01 -0500 | [diff] [blame] | 60 | if WANT_SYNC |
Adriana Kobylak | b072d1b | 2018-04-24 11:37:21 -0500 | [diff] [blame] | 61 | noinst_HEADERS += \ |
| 62 | sync_manager.hpp \ |
| 63 | sync_watch.hpp |
Adriana Kobylak | 7e8d76b | 2018-04-20 10:03:01 -0500 | [diff] [blame] | 64 | sbin_PROGRAMS += phosphor-sync-software-manager |
Adriana Kobylak | b072d1b | 2018-04-24 11:37:21 -0500 | [diff] [blame] | 65 | phosphor_sync_software_manager_SOURCES = \ |
| 66 | sync_manager.cpp \ |
| 67 | sync_watch.cpp \ |
| 68 | sync_manager_main.cpp |
Adriana Kobylak | 7e8d76b | 2018-04-20 10:03:01 -0500 | [diff] [blame] | 69 | phosphor_sync_software_manager_CXXFLAGS = $(generic_cxxflags) |
| 70 | phosphor_sync_software_manager_LDFLAGS = $(generic_ldflags) |
| 71 | endif |
| 72 | |
Gunnar Mills | 652da83 | 2017-08-29 08:34:54 -0500 | [diff] [blame] | 73 | nodist_phosphor_image_updater_SOURCES = \ |
Gunnar Mills | f5eaf39 | 2017-08-22 16:36:55 -0500 | [diff] [blame] | 74 | org/openbmc/Associations/server.cpp |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 75 | |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 76 | generic_cxxflags = \ |
| 77 | $(SYSTEMD_CFLAGS) \ |
| 78 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 79 | $(SDBUSPLUS_CFLAGS) \ |
Andrew Geissler | e4c0632 | 2018-08-27 11:27:54 -0700 | [diff] [blame] | 80 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 81 | -flto |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 82 | generic_ldflags = \ |
| 83 | $(SYSTEMD_LIBS) \ |
| 84 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 85 | $(SDBUSPLUS_LIBS) \ |
Gunnar Mills | 3a482f6 | 2017-04-20 16:07:20 -0500 | [diff] [blame] | 86 | $(PHOSPHOR_LOGGING_LIBS) \ |
Saqib Khan | 26a960d | 2017-09-19 14:23:28 -0500 | [diff] [blame] | 87 | -lstdc++fs \ |
| 88 | -lssl \ |
| 89 | -lcrypto |
Gunnar Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 90 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 91 | xyz/openbmc_project/Software/Version/error.hpp: ${top_srcdir}/xyz/openbmc_project/Software/Version.errors.yaml |
| 92 | @mkdir -p `dirname $@` |
| 93 | $(SDBUSPLUSPLUS) -r $(srcdir) error exception-header xyz.openbmc_project.Software.Version > $@ |
| 94 | |
| 95 | xyz/openbmc_project/Software/Version/error.cpp: ${top_srcdir}/xyz/openbmc_project/Software/Version.errors.yaml |
| 96 | @mkdir -p `dirname $@` |
| 97 | $(SDBUSPLUSPLUS) -r $(srcdir) error exception-cpp xyz.openbmc_project.Software.Version > $@ |
| 98 | |
Gunnar Mills | f5eaf39 | 2017-08-22 16:36:55 -0500 | [diff] [blame] | 99 | org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml |
| 100 | @mkdir -p `dirname $@` |
| 101 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@ |
| 102 | |
| 103 | org/openbmc/Associations/server.hpp: org/openbmc/Associations.interface.yaml |
| 104 | @mkdir -p `dirname $@` |
| 105 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header org.openbmc.Associations > $@ |
| 106 | |
Gunnar Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 107 | phosphor_version_software_manager_CXXFLAGS = $(generic_cxxflags) |
| 108 | phosphor_version_software_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 109 | phosphor_download_manager_CXXFLAGS = $(generic_cxxflags) |
| 110 | phosphor_download_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 111 | phosphor_image_updater_CXXFLAGS = $(generic_cxxflags) |
| 112 | phosphor_image_updater_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 01d55c3 | 2017-04-20 10:52:15 -0500 | [diff] [blame] | 113 | |
| 114 | SUBDIRS = test |