Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
Patrick Venture | 1c8ee49 | 2019-03-28 11:43:45 -0700 | [diff] [blame] | 2 | bin_PROGRAMS = phosphor-softpoweroff |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 3 | |
Andrew Geissler | 8315970 | 2017-04-03 13:31:13 -0500 | [diff] [blame] | 4 | # Using ../ instead of $(top_srcdir) due to automake bug in version 1.15. |
| 5 | # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=13928 |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 6 | phosphor_softpoweroff_SOURCES = \ |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 7 | softoff.cpp \ |
| 8 | mainapp.cpp \ |
| 9 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \ |
Vernon Mauery | 6a98fe7 | 2019-03-11 15:57:48 -0700 | [diff] [blame] | 10 | ../libipmid/utils.cpp |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 11 | |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 12 | BUILT_SOURCES = \ |
| 13 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \ |
| 14 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 15 | |
| 16 | nodist_include_HEADERS = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 17 | CLEANFILES = \ |
| 18 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \ |
| 19 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 20 | |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 21 | phosphor_softpoweroff_LDFLAGS = \ |
| 22 | $(SYSTEMD_LIBS) \ |
| 23 | $(SDBUSPLUS_LIBS) \ |
| 24 | $(SDEVENTPLUS_LIBS) \ |
| 25 | $(PHOSPHOR_LOGGING_LIBS) \ |
Vernon Mauery | eeb0f98 | 2019-05-29 16:36:58 -0700 | [diff] [blame] | 26 | -lboost_coroutine \ |
Patrick Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 27 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 28 | phosphor_softpoweroff_CXXFLAGS = \ |
Vernon Mauery | eeb0f98 | 2019-05-29 16:36:58 -0700 | [diff] [blame] | 29 | -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 Venture | c64f802 | 2018-11-14 19:31:15 -0800 | [diff] [blame] | 36 | $(SYSTEMD_CFLAGS) \ |
| 37 | $(SDBUSPLUS_CFLAGS) \ |
| 38 | $(SDEVENTPLUS_CFLAGS) \ |
| 39 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 40 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 41 | |
| 42 | xyz/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 | |
| 46 | xyz/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 Subbanna | 6dc9668 | 2017-02-06 21:47:18 +0530 | [diff] [blame] | 49 | |