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 \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 8 | image_manager.hpp \ |
Saqib Khan | b077470 | 2017-05-23 16:02:41 -0500 | [diff] [blame] | 9 | item_updater.hpp \ |
| 10 | activation.hpp |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 11 | |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 12 | sbin_PROGRAMS = \ |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 13 | phosphor-version-software-manager \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 14 | phosphor-download-manager \ |
| 15 | phosphor-image-updater |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 16 | |
| 17 | phosphor_version_software_manager_SOURCES = \ |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 18 | image_manager_main.cpp \ |
Gunnar Mills | e91d321 | 2017-04-19 15:42:47 -0500 | [diff] [blame] | 19 | watch.cpp \ |
| 20 | version.cpp \ |
| 21 | image_manager.cpp |
Gunnar Mills | 01a323b | 2017-01-18 09:48:13 -0600 | [diff] [blame] | 22 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 23 | nobase_nodist_include_HEADERS = \ |
Gunnar Mills | f5eaf39 | 2017-08-22 16:36:55 -0500 | [diff] [blame^] | 24 | xyz/openbmc_project/Software/Version/error.hpp \ |
| 25 | org/openbmc/Associations/server.hpp |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 26 | |
| 27 | BUILT_SOURCES = \ |
| 28 | xyz/openbmc_project/Software/Version/error.cpp \ |
Gunnar Mills | f5eaf39 | 2017-08-22 16:36:55 -0500 | [diff] [blame^] | 29 | xyz/openbmc_project/Software/Version/error.hpp \ |
| 30 | org/openbmc/Associations/server.cpp \ |
| 31 | org/openbmc/Associations/server.hpp |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 32 | |
| 33 | CLEANFILES = ${BUILT_SOURCES} |
| 34 | |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 35 | phosphor_download_manager_SOURCES = \ |
| 36 | download_manager.cpp \ |
| 37 | download_manager_main.cpp |
| 38 | |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 39 | phosphor_image_updater_SOURCES = \ |
Saqib Khan | b077470 | 2017-05-23 16:02:41 -0500 | [diff] [blame] | 40 | activation.cpp \ |
Saqib Khan | 705f1bf | 2017-06-09 23:58:38 -0500 | [diff] [blame] | 41 | version.cpp \ |
Saqib Khan | 5d53267 | 2017-08-09 10:44:50 -0500 | [diff] [blame] | 42 | serialize.cpp \ |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 43 | item_updater.cpp \ |
Gunnar Mills | f5eaf39 | 2017-08-22 16:36:55 -0500 | [diff] [blame^] | 44 | item_updater_main.cpp \ |
| 45 | org/openbmc/Associations/server.cpp |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 46 | |
Deepak Kodihalli | 059e233 | 2017-04-12 06:40:53 -0500 | [diff] [blame] | 47 | generic_cxxflags = \ |
| 48 | $(SYSTEMD_CFLAGS) \ |
| 49 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 50 | $(SDBUSPLUS_CFLAGS) \ |
| 51 | $(PHOSPHOR_LOGGING_CFLAGS) |
| 52 | generic_ldflags = \ |
| 53 | $(SYSTEMD_LIBS) \ |
| 54 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 55 | $(SDBUSPLUS_LIBS) \ |
Gunnar Mills | 3a482f6 | 2017-04-20 16:07:20 -0500 | [diff] [blame] | 56 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 57 | -lstdc++fs |
Gunnar Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 58 | |
Gunnar Mills | 93c12d3 | 2017-05-10 13:11:53 -0500 | [diff] [blame] | 59 | xyz/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 | |
| 63 | xyz/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 Mills | f5eaf39 | 2017-08-22 16:36:55 -0500 | [diff] [blame^] | 67 | org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml |
| 68 | @mkdir -p `dirname $@` |
| 69 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@ |
| 70 | |
| 71 | org/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 Mills | 32159fb | 2017-01-31 21:44:36 -0600 | [diff] [blame] | 75 | phosphor_version_software_manager_CXXFLAGS = $(generic_cxxflags) |
| 76 | phosphor_version_software_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 701e021 | 2017-04-03 11:21:27 -0500 | [diff] [blame] | 77 | phosphor_download_manager_CXXFLAGS = $(generic_cxxflags) |
| 78 | phosphor_download_manager_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | ec1b41c | 2017-05-02 12:20:36 -0500 | [diff] [blame] | 79 | phosphor_image_updater_CXXFLAGS = $(generic_cxxflags) |
| 80 | phosphor_image_updater_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 01d55c3 | 2017-04-20 10:52:15 -0500 | [diff] [blame] | 81 | |
| 82 | SUBDIRS = test |