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