blob: 716e4537d7544e7a00000f01087a63a9dbf21289 [file] [log] [blame]
Gunnar Mills9df13162017-03-08 15:00:08 -06001AM_DEFAULT_SOURCE_EXT = .cpp
2
Andrew Jeffery234ba8a2017-04-18 16:55:25 +09303ACLOCAL_AMFLAGS = -Im4
4
Gunnar Mills9df13162017-03-08 15:00:08 -06005sbin_PROGRAMS = \
Adriana Kobylak4772a942018-10-09 15:26:44 -05006 openpower-update-manager \
7 openpower-pnor-msl
Gunnar Mills9df13162017-03-08 15:00:08 -06008
Adriana Kobylak2d8fa222017-03-15 12:34:32 -05009openpower_update_manager_SOURCES = \
Adriana Kobylakbefe5ce2017-04-05 15:57:44 -050010 activation.cpp \
Saqib Khan167601b2017-06-18 23:33:46 -050011 version.cpp \
Michael Tritz60bc20f2017-07-29 23:32:21 -050012 serialize.cpp \
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050013 item_updater.cpp \
Gunnar Mills8fc66c92017-08-29 08:30:48 -050014 item_updater_main.cpp
15
Lei YUf3ce4332019-02-21 14:09:49 +080016if UBIFS_LAYOUT
17include ubi/Makefile.am.include
18else
19include static/Makefile.am.include
20endif
21
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050022if WANT_SIGNATURE_VERIFY_BUILD
Adriana Kobylak70ca2422018-09-06 14:23:38 -050023openpower_update_manager_SOURCES += \
24 image_verify.cpp \
25 utils.cpp
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050026endif
27
Gunnar Mills8fc66c92017-08-29 08:30:48 -050028nodist_openpower_update_manager_SOURCES = \
Saqib Khanc350c612017-08-13 13:36:44 -050029 org/openbmc/Associations/server.cpp
30
Adriana Kobylak4772a942018-10-09 15:26:44 -050031openpower_pnor_msl_SOURCES = \
32 msl_verify.cpp \
33 msl_verify_main.cpp
34
Saqib Khanc350c612017-08-13 13:36:44 -050035CLEANFILES = \
36 org/openbmc/Associations/server.cpp \
37 org/openbmc/Associations/server.hpp
38
39BUILT_SOURCES = \
40 org/openbmc/Associations/server.cpp \
41 org/openbmc/Associations/server.hpp
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050042
Gunnar Mills9df13162017-03-08 15:00:08 -060043generic_cxxflags = \
44 $(SYSTEMD_CFLAGS) \
45 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050046 $(SDBUSPLUS_CFLAGS) \
Andrew Geissler8be32f72018-08-27 11:06:26 -070047 $(PHOSPHOR_LOGGING_CFLAGS) \
48 -flto
Gunnar Mills9df13162017-03-08 15:00:08 -060049generic_ldflags = \
50 $(SYSTEMD_LIBS) \
51 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050052 $(SDBUSPLUS_LIBS) \
Adriana Kobylak55f9e832017-05-14 16:13:00 -050053 $(PHOSPHOR_LOGGING_LIBS) \
Saqib Khan2308b8b2017-09-19 15:33:06 -050054 -lstdc++fs \
55 -lssl \
56 -lcrypto
Gunnar Mills9df13162017-03-08 15:00:08 -060057
Saqib Khanc350c612017-08-13 13:36:44 -050058org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml
59 @mkdir -p `dirname $@`
60 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@
61
62org/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 Kobylak2d8fa222017-03-15 12:34:32 -050066openpower_update_manager_CXXFLAGS = $(generic_cxxflags)
67openpower_update_manager_LDFLAGS = $(generic_ldflags)
Adriana Kobylak4772a942018-10-09 15:26:44 -050068openpower_pnor_msl_CXXFLAGS = $(generic_cxxflags)
69openpower_pnor_msl_LDFLAGS = $(generic_ldflags)
Gunnar Mills9df13162017-03-08 15:00:08 -060070
Gunnar Mills1ea62e12017-03-27 21:49:16 -050071SUBDIRS = test