blob: 63601deb6e480db97348e6856a5ab145305a5dba [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 \
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050012 item_updater.cpp \
Gunnar Mills8fc66c92017-08-29 08:30:48 -050013 item_updater_main.cpp
14
Lei YUf3ce4332019-02-21 14:09:49 +080015if UBIFS_LAYOUT
16include ubi/Makefile.am.include
17else
18include static/Makefile.am.include
19endif
20
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050021if WANT_SIGNATURE_VERIFY_BUILD
Adriana Kobylak70ca2422018-09-06 14:23:38 -050022openpower_update_manager_SOURCES += \
23 image_verify.cpp \
24 utils.cpp
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050025endif
26
Gunnar Mills8fc66c92017-08-29 08:30:48 -050027nodist_openpower_update_manager_SOURCES = \
Saqib Khanc350c612017-08-13 13:36:44 -050028 org/openbmc/Associations/server.cpp
29
Adriana Kobylak4772a942018-10-09 15:26:44 -050030openpower_pnor_msl_SOURCES = \
31 msl_verify.cpp \
32 msl_verify_main.cpp
33
Saqib Khanc350c612017-08-13 13:36:44 -050034CLEANFILES = \
35 org/openbmc/Associations/server.cpp \
36 org/openbmc/Associations/server.hpp
37
38BUILT_SOURCES = \
39 org/openbmc/Associations/server.cpp \
40 org/openbmc/Associations/server.hpp
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050041
Gunnar Mills9df13162017-03-08 15:00:08 -060042generic_cxxflags = \
43 $(SYSTEMD_CFLAGS) \
44 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050045 $(SDBUSPLUS_CFLAGS) \
Andrew Geissler8be32f72018-08-27 11:06:26 -070046 $(PHOSPHOR_LOGGING_CFLAGS) \
47 -flto
Gunnar Mills9df13162017-03-08 15:00:08 -060048generic_ldflags = \
49 $(SYSTEMD_LIBS) \
50 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050051 $(SDBUSPLUS_LIBS) \
Adriana Kobylak55f9e832017-05-14 16:13:00 -050052 $(PHOSPHOR_LOGGING_LIBS) \
Saqib Khan2308b8b2017-09-19 15:33:06 -050053 -lstdc++fs \
54 -lssl \
55 -lcrypto
Gunnar Mills9df13162017-03-08 15:00:08 -060056
Saqib Khanc350c612017-08-13 13:36:44 -050057org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml
58 @mkdir -p `dirname $@`
59 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@
60
61org/openbmc/Associations/server.hpp: org/openbmc/Associations.interface.yaml
62 @mkdir -p `dirname $@`
63 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header org.openbmc.Associations > $@
64
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050065openpower_update_manager_CXXFLAGS = $(generic_cxxflags)
66openpower_update_manager_LDFLAGS = $(generic_ldflags)
Adriana Kobylak4772a942018-10-09 15:26:44 -050067openpower_pnor_msl_CXXFLAGS = $(generic_cxxflags)
68openpower_pnor_msl_LDFLAGS = $(generic_ldflags)
Gunnar Mills9df13162017-03-08 15:00:08 -060069
Gunnar Mills1ea62e12017-03-27 21:49:16 -050070SUBDIRS = test