blob: ecd8f86593936cf79ab1d170f18ef69a9e660a61 [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 = \
8 softoff.cpp \
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05309 mainapp.cpp \
Andrew Geisslerf0f496c2017-05-02 13:54:35 -050010 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
11 ../utils.cpp
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053012
13BUILT_SOURCES = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
14 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
15
16nodist_include_HEADERS = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
17CLEANFILES = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
18 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
19
Vishwanatha Subbanna917454b2017-02-24 00:16:05 +053020phosphor_softpoweroff_LDFLAGS = $(SYSTEMD_LIBS) \
21 $(SDBUSPLUS_LIBS) \
William A. Kennington III4f67cc32018-10-18 15:24:49 -070022 $(SDEVENTPLUS_LIBS) \
Vishwanatha Subbanna917454b2017-02-24 00:16:05 +053023 $(PHOSPHOR_LOGGING_LIBS) \
24 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
25phosphor_softpoweroff_CXXFLAGS = $(SYSTEMD_CFLAGS) \
26 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III4f67cc32018-10-18 15:24:49 -070027 $(SDEVENTPLUS_CFLAGS) \
Vishwanatha Subbanna917454b2017-02-24 00:16:05 +053028 $(PHOSPHOR_LOGGING_CFLAGS) \
29 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053030
31xyz/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
35xyz/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 Subbanna6dc96682017-02-06 21:47:18 +053038