blob: e43cfbb66bb5c30a08ebccc863a725bf9cdf7e34 [file] [log] [blame]
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05301AM_DEFAULT_SOURCE_EXT = .cpp
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05302sbin_PROGRAMS = phosphor-softpoweroff
3
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 \
10 ../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) \
26 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
27phosphor_softpoweroff_CXXFLAGS = \
28 $(SYSTEMD_CFLAGS) \
29 $(SDBUSPLUS_CFLAGS) \
30 $(SDEVENTPLUS_CFLAGS) \
31 $(PHOSPHOR_LOGGING_CFLAGS) \
32 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053033
34xyz/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
38xyz/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 Subbanna6dc96682017-02-06 21:47:18 +053041