Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
Andrew Jeffery | 234ba8a | 2017-04-18 16:55:25 +0930 | [diff] [blame] | 3 | ACLOCAL_AMFLAGS = -Im4 |
| 4 | |
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 5 | sbin_PROGRAMS = \ |
Adriana Kobylak | 4772a94 | 2018-10-09 15:26:44 -0500 | [diff] [blame] | 6 | openpower-update-manager \ |
| 7 | openpower-pnor-msl |
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 8 | |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 9 | openpower_update_manager_SOURCES = \ |
Adriana Kobylak | befe5ce | 2017-04-05 15:57:44 -0500 | [diff] [blame] | 10 | activation.cpp \ |
Saqib Khan | 167601b | 2017-06-18 23:33:46 -0500 | [diff] [blame] | 11 | version.cpp \ |
Michael Tritz | 60bc20f | 2017-07-29 23:32:21 -0500 | [diff] [blame] | 12 | serialize.cpp \ |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 13 | item_updater.cpp \ |
Gunnar Mills | 8fc66c9 | 2017-08-29 08:30:48 -0500 | [diff] [blame] | 14 | item_updater_main.cpp |
| 15 | |
Lei YU | f3ce433 | 2019-02-21 14:09:49 +0800 | [diff] [blame] | 16 | if UBIFS_LAYOUT |
| 17 | include ubi/Makefile.am.include |
| 18 | else |
| 19 | include static/Makefile.am.include |
| 20 | endif |
| 21 | |
Jayanth Othayoth | 70804dc | 2018-03-20 06:31:59 -0500 | [diff] [blame] | 22 | if WANT_SIGNATURE_VERIFY_BUILD |
Adriana Kobylak | 70ca242 | 2018-09-06 14:23:38 -0500 | [diff] [blame] | 23 | openpower_update_manager_SOURCES += \ |
| 24 | image_verify.cpp \ |
| 25 | utils.cpp |
Jayanth Othayoth | 70804dc | 2018-03-20 06:31:59 -0500 | [diff] [blame] | 26 | endif |
| 27 | |
Gunnar Mills | 8fc66c9 | 2017-08-29 08:30:48 -0500 | [diff] [blame] | 28 | nodist_openpower_update_manager_SOURCES = \ |
Saqib Khan | c350c61 | 2017-08-13 13:36:44 -0500 | [diff] [blame] | 29 | org/openbmc/Associations/server.cpp |
| 30 | |
Adriana Kobylak | 4772a94 | 2018-10-09 15:26:44 -0500 | [diff] [blame] | 31 | openpower_pnor_msl_SOURCES = \ |
| 32 | msl_verify.cpp \ |
| 33 | msl_verify_main.cpp |
| 34 | |
Saqib Khan | c350c61 | 2017-08-13 13:36:44 -0500 | [diff] [blame] | 35 | CLEANFILES = \ |
| 36 | org/openbmc/Associations/server.cpp \ |
| 37 | org/openbmc/Associations/server.hpp |
| 38 | |
| 39 | BUILT_SOURCES = \ |
| 40 | org/openbmc/Associations/server.cpp \ |
| 41 | org/openbmc/Associations/server.hpp |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 42 | |
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 43 | generic_cxxflags = \ |
| 44 | $(SYSTEMD_CFLAGS) \ |
| 45 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Gunnar Mills | 44c7729 | 2017-03-20 15:02:27 -0500 | [diff] [blame] | 46 | $(SDBUSPLUS_CFLAGS) \ |
Andrew Geissler | 8be32f7 | 2018-08-27 11:06:26 -0700 | [diff] [blame] | 47 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 48 | -flto |
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 49 | generic_ldflags = \ |
| 50 | $(SYSTEMD_LIBS) \ |
| 51 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Gunnar Mills | 44c7729 | 2017-03-20 15:02:27 -0500 | [diff] [blame] | 52 | $(SDBUSPLUS_LIBS) \ |
Adriana Kobylak | 55f9e83 | 2017-05-14 16:13:00 -0500 | [diff] [blame] | 53 | $(PHOSPHOR_LOGGING_LIBS) \ |
Saqib Khan | 2308b8b | 2017-09-19 15:33:06 -0500 | [diff] [blame] | 54 | -lstdc++fs \ |
| 55 | -lssl \ |
| 56 | -lcrypto |
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 57 | |
Saqib Khan | c350c61 | 2017-08-13 13:36:44 -0500 | [diff] [blame] | 58 | org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml |
| 59 | @mkdir -p `dirname $@` |
| 60 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@ |
| 61 | |
| 62 | org/openbmc/Associations/server.hpp: org/openbmc/Associations.interface.yaml |
| 63 | @mkdir -p `dirname $@` |
| 64 | $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header org.openbmc.Associations > $@ |
| 65 | |
Adriana Kobylak | 2d8fa22 | 2017-03-15 12:34:32 -0500 | [diff] [blame] | 66 | openpower_update_manager_CXXFLAGS = $(generic_cxxflags) |
| 67 | openpower_update_manager_LDFLAGS = $(generic_ldflags) |
Adriana Kobylak | 4772a94 | 2018-10-09 15:26:44 -0500 | [diff] [blame] | 68 | openpower_pnor_msl_CXXFLAGS = $(generic_cxxflags) |
| 69 | openpower_pnor_msl_LDFLAGS = $(generic_ldflags) |
Gunnar Mills | 9df1316 | 2017-03-08 15:00:08 -0600 | [diff] [blame] | 70 | |
Gunnar Mills | 1ea62e1 | 2017-03-27 21:49:16 -0500 | [diff] [blame] | 71 | SUBDIRS = test |