Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 2 | sbin_PROGRAMS = phosphor-softpoweroff |
| 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 \ |
| 10 | ../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) \ |
| 26 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 27 | phosphor_softpoweroff_CXXFLAGS = \ |
| 28 | $(SYSTEMD_CFLAGS) \ |
| 29 | $(SDBUSPLUS_CFLAGS) \ |
| 30 | $(SDEVENTPLUS_CFLAGS) \ |
| 31 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 32 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 33 | |
| 34 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml |
| 35 | @mkdir -p `dirname $@` |
| 36 | $(SDBUSPLUSPLUS) -r $(top_srcdir) interface server-cpp xyz.openbmc_project.Ipmi.Internal.SoftPowerOff > $@ |
| 37 | |
| 38 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml |
| 39 | @mkdir -p `dirname $@` |
| 40 | $(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] | 41 | |