blob: 35734d243d2b74f728c782438d926c84f46ebe9e [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
5phosphor_softpoweroff_SOURCES = \
6 softoff.cpp \
Vishwanatha Subbannabcb76882017-01-25 16:29:43 +05307 timer.cpp \
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +05308 mainapp.cpp \
9 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp
10
11BUILT_SOURCES = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
12 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
13
14nodist_include_HEADERS = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
15CLEANFILES = xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp \
16 xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp
17
Vishwanatha Subbanna917454b2017-02-24 00:16:05 +053018phosphor_softpoweroff_LDFLAGS = $(SYSTEMD_LIBS) \
19 $(SDBUSPLUS_LIBS) \
20 $(PHOSPHOR_LOGGING_LIBS) \
21 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
22phosphor_softpoweroff_CXXFLAGS = $(SYSTEMD_CFLAGS) \
23 $(SDBUSPLUS_CFLAGS) \
24 $(PHOSPHOR_LOGGING_CFLAGS) \
25 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna506aa0f2017-01-24 14:58:25 +053026
27xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.cpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml
28 @mkdir -p `dirname $@`
29 $(SDBUSPLUSPLUS) -r $(top_srcdir) interface server-cpp xyz.openbmc_project.Ipmi.Internal.SoftPowerOff > $@
30
31xyz/openbmc_project/Ipmi/Internal/SoftPowerOff/server.hpp: ${top_srcdir}/xyz/openbmc_project/Ipmi/Internal/SoftPowerOff.interface.yaml
32 @mkdir -p `dirname $@`
33 $(SDBUSPLUSPLUS) -r $(top_srcdir) interface server-header xyz.openbmc_project.Ipmi.Internal.SoftPowerOff > $@
Vishwanatha Subbanna6dc96682017-02-06 21:47:18 +053034
35SUBDIRS = test