blob: cb1271e045d9d7f5a334f3f39f3021d381c9dc96 [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 Kobylak2d8fa222017-03-15 12:34:32 -05006 openpower-update-manager
Gunnar Mills9df13162017-03-08 15:00:08 -06007
Adriana Kobylak2d8fa222017-03-15 12:34:32 -05008openpower_update_manager_SOURCES = \
Adriana Kobylakbefe5ce2017-04-05 15:57:44 -05009 activation.cpp \
Saqib Khan167601b2017-06-18 23:33:46 -050010 version.cpp \
Michael Tritz60bc20f2017-07-29 23:32:21 -050011 serialize.cpp \
Gunnar Mills6bd6d7b2017-09-18 09:22:36 -050012 watch.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
Jayanth Othayoth70804dc2018-03-20 06:31:59 -050016if WANT_SIGNATURE_VERIFY_BUILD
17openpower_update_manager_SOURCES += image_verify.cpp
18endif
19
Gunnar Mills8fc66c92017-08-29 08:30:48 -050020nodist_openpower_update_manager_SOURCES = \
Saqib Khanc350c612017-08-13 13:36:44 -050021 org/openbmc/Associations/server.cpp
22
23CLEANFILES = \
24 org/openbmc/Associations/server.cpp \
25 org/openbmc/Associations/server.hpp
26
27BUILT_SOURCES = \
28 org/openbmc/Associations/server.cpp \
29 org/openbmc/Associations/server.hpp
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050030
Gunnar Mills9df13162017-03-08 15:00:08 -060031generic_cxxflags = \
32 $(SYSTEMD_CFLAGS) \
33 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050034 $(SDBUSPLUS_CFLAGS) \
35 $(PHOSPHOR_LOGGING_CFLAGS)
Gunnar Mills9df13162017-03-08 15:00:08 -060036generic_ldflags = \
37 $(SYSTEMD_LIBS) \
38 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050039 $(SDBUSPLUS_LIBS) \
Adriana Kobylak55f9e832017-05-14 16:13:00 -050040 $(PHOSPHOR_LOGGING_LIBS) \
Saqib Khan2308b8b2017-09-19 15:33:06 -050041 -lstdc++fs \
42 -lssl \
43 -lcrypto
Gunnar Mills9df13162017-03-08 15:00:08 -060044
Saqib Khanc350c612017-08-13 13:36:44 -050045org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml
46 @mkdir -p `dirname $@`
47 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@
48
49org/openbmc/Associations/server.hpp: org/openbmc/Associations.interface.yaml
50 @mkdir -p `dirname $@`
51 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header org.openbmc.Associations > $@
52
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050053openpower_update_manager_CXXFLAGS = $(generic_cxxflags)
54openpower_update_manager_LDFLAGS = $(generic_ldflags)
Gunnar Mills9df13162017-03-08 15:00:08 -060055
Gunnar Mills1ea62e12017-03-27 21:49:16 -050056SUBDIRS = test