blob: ec938a31325c0ac3b7d960073fd47cd26ec132e1 [file] [log] [blame]
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05301AM_DEFAULT_SOURCE_EXT = .cpp
Patrick Venture1c8ee492019-03-28 11:43:45 -07002bin_PROGRAMS = phosphor-softpoweroff
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05303
Andrew Geissler83159702017-04-03 13:31:13 -05004# Using ../ instead of $(top_srcdir) due to automake bug in version 1.15.
5# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=13928
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05306phosphor_softpoweroff_SOURCES = \
Patrick Venturec64f8022018-11-14 19:31:15 -08007 softoff.cpp \
8 mainapp.cpp \
9 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
Vernon Mauery6a98fe72019-03-11 15:57:48 -070010 ../libipmid/utils.cpp
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053011
Patrick Venturec64f8022018-11-14 19:31:15 -080012BUILT_SOURCES = \
13 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
14 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053015
16nodist_include_HEADERS = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
Patrick Venturec64f8022018-11-14 19:31:15 -080017CLEANFILES = \
18 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
19 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053020
Patrick Venturec64f8022018-11-14 19:31:15 -080021phosphor_softpoweroff_LDFLAGS = \
22 $(SYSTEMD_LIBS) \
23 $(SDBUSPLUS_LIBS) \
24 $(SDEVENTPLUS_LIBS) \
25 $(PHOSPHOR_LOGGING_LIBS) \
Vernon Maueryeeb0f982019-05-29 16:36:58 -070026 -lboost_coroutine \
Patrick Venturec64f8022018-11-14 19:31:15 -080027 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
28phosphor_softpoweroff_CXXFLAGS = \
Vernon Maueryeeb0f982019-05-29 16:36:58 -070029 -flto \
30 -Wno-psabi \
31 -DBOOST_ERROR_CODE_HEADER_ONLY \
32 -DBOOST_SYSTEM_NO_DEPRECATED \
33 -DBOOST_COROUTINES_NO_DEPRECATION_WARNING \
34 -DBOOST_ASIO_DISABLE_THREADS \
35 -DBOOST_ALL_NO_LIB
Patrick Venturec64f8022018-11-14 19:31:15 -080036 $(SYSTEMD_CFLAGS) \
37 $(SDBUSPLUS_CFLAGS) \
38 $(SDEVENTPLUS_CFLAGS) \
39 $(PHOSPHOR_LOGGING_CFLAGS) \
40 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053041
42xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml
43 @mkdir -p `dirname $@`
44 $(SDBUSPLUSPLUS) -r $(top_srcdir) interface server-cpp xyz.openbmc_project.Ipmi.Internal.SoftPowerOff > $@
45
46xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml
47 @mkdir -p `dirname $@`
48 $(SDBUSPLUSPLUS) -r $(top_srcdir) interface server-header xyz.openbmc_project.Ipmi.Internal.SoftPowerOff > $@
Vishwanatha Subbanna6dc96682017-02-06 21:47:18 +053049