blob: d9880fba7f499391e112a51e71dfd2042d37e8c2 [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 \
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050012 item_updater.cpp \
Gunnar Mills8fc66c92017-08-29 08:30:48 -050013 item_updater_main.cpp
14
15nodist_openpower_update_manager_SOURCES = \
Saqib Khanc350c612017-08-13 13:36:44 -050016 org/openbmc/Associations/server.cpp
17
18CLEANFILES = \
19 org/openbmc/Associations/server.cpp \
20 org/openbmc/Associations/server.hpp
21
22BUILT_SOURCES = \
23 org/openbmc/Associations/server.cpp \
24 org/openbmc/Associations/server.hpp
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050025
Gunnar Mills9df13162017-03-08 15:00:08 -060026generic_cxxflags = \
27 $(SYSTEMD_CFLAGS) \
28 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050029 $(SDBUSPLUS_CFLAGS) \
30 $(PHOSPHOR_LOGGING_CFLAGS)
Gunnar Mills9df13162017-03-08 15:00:08 -060031generic_ldflags = \
32 $(SYSTEMD_LIBS) \
33 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050034 $(SDBUSPLUS_LIBS) \
Adriana Kobylak55f9e832017-05-14 16:13:00 -050035 $(PHOSPHOR_LOGGING_LIBS) \
36 -lstdc++fs
Gunnar Mills9df13162017-03-08 15:00:08 -060037
Saqib Khanc350c612017-08-13 13:36:44 -050038org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml
39 @mkdir -p `dirname $@`
40 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@
41
42org/openbmc/Associations/server.hpp: org/openbmc/Associations.interface.yaml
43 @mkdir -p `dirname $@`
44 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header org.openbmc.Associations > $@
45
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050046openpower_update_manager_CXXFLAGS = $(generic_cxxflags)
47openpower_update_manager_LDFLAGS = $(generic_ldflags)
Gunnar Mills9df13162017-03-08 15:00:08 -060048
Gunnar Mills1ea62e12017-03-27 21:49:16 -050049SUBDIRS = test