blob: bbe7b6ec477fe128d4a9d0d0f6c34ed058078cc2 [file] [log] [blame]
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05301AM_DEFAULT_SOURCE_EXT = .cpp
2AM_CPPFLAGS = -I$(top_srcdir)
3sbin_PROGRAMS = phosphor-softpoweroff
4
Andrew Geissler83159702017-04-03 13:31:13 -05005# Using ../ instead of $(top_srcdir) due to automake bug in version 1.15.
6# https://debbugs.gnu.org/cgi/bugreport.cgi?bug=13928
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05307phosphor_softpoweroff_SOURCES = \
Patrick Venturec64f8022018-11-14 19:31:15 -08008 softoff.cpp \
9 mainapp.cpp \
10 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
11 ../utils.cpp
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053012
Patrick Venturec64f8022018-11-14 19:31:15 -080013BUILT_SOURCES = \
14 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
15 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053016
17nodist_include_HEADERS = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
Patrick Venturec64f8022018-11-14 19:31:15 -080018CLEANFILES = \
19 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
20 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053021
Patrick Venturec64f8022018-11-14 19:31:15 -080022phosphor_softpoweroff_LDFLAGS = \
23 $(SYSTEMD_LIBS) \
24 $(SDBUSPLUS_LIBS) \
25 $(SDEVENTPLUS_LIBS) \
26 $(PHOSPHOR_LOGGING_LIBS) \
27 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
28phosphor_softpoweroff_CXXFLAGS = \
29 $(SYSTEMD_CFLAGS) \
30 $(SDBUSPLUS_CFLAGS) \
31 $(SDEVENTPLUS_CFLAGS) \
32 $(PHOSPHOR_LOGGING_CFLAGS) \
33 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053034
35xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml
36 @mkdir -p `dirname $@`
37 $(SDBUSPLUSPLUS) -r $(top_srcdir) interface server-cpp xyz.openbmc_project.Ipmi.Internal.SoftPowerOff > $@
38
39xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml
40 @mkdir -p `dirname $@`
41 $(SDBUSPLUSPLUS) -r $(top_srcdir) interface server-header xyz.openbmc_project.Ipmi.Internal.SoftPowerOff > $@
Vishwanatha Subbanna6dc96682017-02-06 21:47:18 +053042