Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | AM_CPPFLAGS = -I$(top_srcdir) |
| 3 | sbin_PROGRAMS = phosphor-softpoweroff |
| 4 | |
Andrew Geissler | 8315970 | 2017-04-03 13:31:13 -0500 | [diff] [blame] | 5 | # Using ../ instead of $(top_srcdir) due to automake bug in version 1.15. |
| 6 | # https://debbugs.gnu.org/cgi/bugreport.cgi?bug=13928 |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 7 | phosphor_softpoweroff_SOURCES = \ |
| 8 | softoff.cpp \ |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 9 | mainapp.cpp \ |
Andrew Geissler | f0f496c | 2017-05-02 13:54:35 -0500 | [diff] [blame] | 10 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \ |
| 11 | ../utils.cpp |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 12 | |
| 13 | BUILT_SOURCES = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \ |
| 14 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp |
| 15 | |
| 16 | nodist_include_HEADERS = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp |
| 17 | CLEANFILES = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \ |
| 18 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp |
| 19 | |
Vishwanatha Subbanna | 917454b | 2017-02-24 00:16:05 +0530 | [diff] [blame] | 20 | phosphor_softpoweroff_LDFLAGS = $(SYSTEMD_LIBS) \ |
| 21 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | 4f67cc3 | 2018-10-18 15:24:49 -0700 | [diff] [blame] | 22 | $(SDEVENTPLUS_LIBS) \ |
Vishwanatha Subbanna | 917454b | 2017-02-24 00:16:05 +0530 | [diff] [blame] | 23 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 24 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 25 | phosphor_softpoweroff_CXXFLAGS = $(SYSTEMD_CFLAGS) \ |
| 26 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | 4f67cc3 | 2018-10-18 15:24:49 -0700 | [diff] [blame] | 27 | $(SDEVENTPLUS_CFLAGS) \ |
Vishwanatha Subbanna | 917454b | 2017-02-24 00:16:05 +0530 | [diff] [blame] | 28 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 29 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Vishwanatha Subbanna | 506aa0f | 2017-01-24 14:58:25 +0530 | [diff] [blame] | 30 | |
| 31 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml |
| 32 | @mkdir -p `dirname $@` |
| 33 | $(SDBUSPLUSPLUS) -r $(top_srcdir) interface server-cpp xyz.openbmc_project.Ipmi.Internal.SoftPowerOff > $@ |
| 34 | |
| 35 | xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml |
| 36 | @mkdir -p `dirname $@` |
| 37 | $(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] | 38 | |