blob: 0b94db40947d36761507f517a3ebea949a985048 [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
16nodist_openpower_update_manager_SOURCES = \
Saqib Khanc350c612017-08-13 13:36:44 -050017 org/openbmc/Associations/server.cpp
18
19CLEANFILES = \
20 org/openbmc/Associations/server.cpp \
21 org/openbmc/Associations/server.hpp
22
23BUILT_SOURCES = \
24 org/openbmc/Associations/server.cpp \
25 org/openbmc/Associations/server.hpp
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050026
Gunnar Mills9df13162017-03-08 15:00:08 -060027generic_cxxflags = \
28 $(SYSTEMD_CFLAGS) \
29 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050030 $(SDBUSPLUS_CFLAGS) \
31 $(PHOSPHOR_LOGGING_CFLAGS)
Gunnar Mills9df13162017-03-08 15:00:08 -060032generic_ldflags = \
33 $(SYSTEMD_LIBS) \
34 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Gunnar Mills44c77292017-03-20 15:02:27 -050035 $(SDBUSPLUS_LIBS) \
Adriana Kobylak55f9e832017-05-14 16:13:00 -050036 $(PHOSPHOR_LOGGING_LIBS) \
37 -lstdc++fs
Gunnar Mills9df13162017-03-08 15:00:08 -060038
Saqib Khanc350c612017-08-13 13:36:44 -050039org/openbmc/Associations/server.cpp: org/openbmc/Associations.interface.yaml
40 @mkdir -p `dirname $@`
41 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp org.openbmc.Associations > $@
42
43org/openbmc/Associations/server.hpp: org/openbmc/Associations.interface.yaml
44 @mkdir -p `dirname $@`
45 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header org.openbmc.Associations > $@
46
Adriana Kobylak2d8fa222017-03-15 12:34:32 -050047openpower_update_manager_CXXFLAGS = $(generic_cxxflags)
48openpower_update_manager_LDFLAGS = $(generic_ldflags)
Gunnar Mills9df13162017-03-08 15:00:08 -060049
Gunnar Mills1ea62e12017-03-27 21:49:16 -050050SUBDIRS = test