blob: f95a44d2da52343fdb27c7a714c36916f61fc9ad [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
Patrick Venture799eb192019-03-28 12:54:43 -07005bin_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 \
Lei YUe4994462019-03-14 14:41:53 +080013 item_updater_main.cpp \
14 utils.cpp
Gunnar Mills8fc66c92017-08-29 08:30:48 -050015
Lei YUf3ce4332019-02-21 14:09:49 +080016if UBIFS_LAYOUT
17include ubi/Makefile.am.include
18else
19include static/Makefile.am.include
Lei YU7d832d72019-03-14 13:58:07 +080020if HAVE_SYSTEMD
21 systemdsystemunit_DATA = \
22 openpower-pnor-update@.service
23endif
Lei YUf3ce4332019-02-21 14:09:49 +080024endif
25
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050026if WANT_SIGNATURE_VERIFY_BUILD
Adriana Kobylak70ca2422018-09-06 14:23:38 -050027openpower_update_manager_SOURCES += \
Lei YUe4994462019-03-14 14:41:53 +080028 image_verify.cpp
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050029endif
30
Gunnar Mills8fc66c92017-08-29 08:30:48 -050031nodist_openpower_update_manager_SOURCES = \
Saqib Khanc350c612017-08-13 13:36:44 -050032 org/openbmc/Associations/server.cpp
33
Adriana Kobylak4772a942018-10-09 15:26:44 -050034openpower_pnor_msl_SOURCES = \
35 msl_verify.cpp \
36 msl_verify_main.cpp
37
Saqib Khanc350c612017-08-13 13:36:44 -050038CLEANFILES = \
39 org/openbmc/Associations/server.cpp \
40 org/openbmc/Associations/server.hpp
41
42BUILT_SOURCES = \
43 org/openbmc/Associations/server.cpp \
44 org/openbmc/Associations/server.hpp
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050045
Gunnar Mills9df13162017-03-08 15:00:08 -060046generic_cxxflags = \
47 $(SYSTEMD_CFLAGS) \
48 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050049 $(SDBUSPLUS_CFLAGS) \
Andrew Geissler8be32f72018-08-27 11:06:26 -070050 $(PHOSPHOR_LOGGING_CFLAGS) \
51 -flto
Gunnar Mills9df13162017-03-08 15:00:08 -060052generic_ldflags = \
53 $(SYSTEMD_LIBS) \
54 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050055 $(SDBUSPLUS_LIBS) \
Adriana Kobylak55f9e832017-05-14 16:13:00 -050056 $(PHOSPHOR_LOGGING_LIBS) \
Saqib Khan2308b8b2017-09-19 15:33:06 -050057 -lstdc++fs \
58 -lssl \
59 -lcrypto
Gunnar Mills9df13162017-03-08 15:00:08 -060060
Saqib Khanc350c612017-08-13 13:36:44 -050061org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml
62 @mkdir -p `dirname $@`
63 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@
64
65org/openbmc/Associations/server.hpp: org/openbmc/Associations.interface.yaml
66 @mkdir -p `dirname $@`
67 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header org.openbmc.Associations > $@
68
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050069openpower_update_manager_CXXFLAGS = $(generic_cxxflags)
70openpower_update_manager_LDFLAGS = $(generic_ldflags)
Adriana Kobylak4772a942018-10-09 15:26:44 -050071openpower_pnor_msl_CXXFLAGS = $(generic_cxxflags)
72openpower_pnor_msl_LDFLAGS = $(generic_ldflags)
Gunnar Mills9df13162017-03-08 15:00:08 -060073
Gunnar Mills1ea62e12017-03-27 21:49:16 -050074SUBDIRS = test