blob: cded7eba0da2949039ed62d0eb3665173782e963 [file] [log] [blame]
Matt Spinlerf716f322017-02-28 09:37:38 -06001AM_DEFAULT_SOURCE_EXT = .cpp
2
Anthony Wilson171fbdf2018-11-01 13:38:50 -05003systemdsystemunit_DATA = \
Lakshminarayana R. Kammath16ab00c2019-06-03 04:33:33 -05004 pcie-poweroff@.service \
Andrew Geissler6a133ab2020-01-31 14:13:06 -06005 xyz.openbmc_project.Control.Host.NMI.service \
Andrew Geisslera0076682020-02-05 13:14:53 -06006 op-stop-instructions@.service \
Dhruvaraj Subhashchandran3506c182020-02-18 05:28:39 -06007 op-cfam-reset.service \
8 op-continue-mpreboot@.service \
9 op-enter-mpreboot@.service
Anthony Wilson171fbdf2018-11-01 13:38:50 -050010
Eddie Jamesce042fe2020-01-28 10:25:13 -060011if ENABLE_PHAL
Ramesh Iyyarb20593f2020-09-16 10:43:37 -050012 systemdsystemunit_DATA += set-spi-mux.service \
13 phal-reinit-devtree.service
Eddie Jamesce042fe2020-01-28 10:25:13 -060014endif
15
Patrick Ventureb964c922019-03-28 13:10:36 -070016bin_PROGRAMS = \
Lakshminarayana R. Kammath16ab00c2019-06-03 04:33:33 -050017 openpower-proc-control \
18 openpower-proc-nmi
Matt Spinlerf716f322017-02-28 09:37:38 -060019
20openpower_proc_control_SOURCES = \
21 proc_control.cpp \
Matt Spinler0c0eeff2017-02-28 10:06:56 -060022 cfam_access.cpp \
Matt Spinler4e97ebe2017-02-28 10:02:16 -060023 filedescriptor.cpp \
Matt Spinlerd9bdcf72017-03-09 15:06:23 -060024 registration.cpp \
Matt Spinler83e37322017-03-09 11:23:17 -060025 targeting.cpp \
Andrew Geissler2548c7a2017-05-18 15:35:40 -050026 openpower_procedures.cpp \
27 ext_interface.cpp
Matt Spinler12bdf052017-03-09 16:01:39 -060028
Lakshminarayana R. Kammath16ab00c2019-06-03 04:33:33 -050029openpower_proc_nmi_SOURCES = \
30 nmi_main.cpp \
31 nmi_interface.cpp
32
Matt Spinler12bdf052017-03-09 16:01:39 -060033CLEANFILES = openpower_procedures.cpp
Matt Spinlerf716f322017-02-28 09:37:38 -060034
Andrew Geissler2548c7a2017-05-18 15:35:40 -050035openpower_proc_control_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
36 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
37 $(SDBUSPLUS_LIBS) \
Andrew Geissler5dc5c392020-02-05 12:48:01 -060038 -lstdc++fs \
Dhruvaraj Subhashchandran08fc2642020-02-17 01:47:05 -060039 -lgpiodcxx \
40 -lpthread
Andrew Geissler2548c7a2017-05-18 15:35:40 -050041
Dhruvaraj Subhashchandran7ce535c2017-05-15 05:06:36 -050042openpower_proc_control_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
Andrew Geissler2548c7a2017-05-18 15:35:40 -050043 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
44 $(SDBUSPLUS_CFLAGS)
Matt Spinler597e05c2017-02-28 09:59:53 -060045
Lakshminarayana R. Kammath16ab00c2019-06-03 04:33:33 -050046openpower_proc_nmi_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
47 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
48 $(SDBUSPLUS_LIBS)
49
50openpower_proc_nmi_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) \
51 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
52 $(SDBUSPLUS_CFLAGS)
Marri Devender Rao78479602020-01-06 03:45:11 -060053if ENABLE_PHAL
54noinst_LTLIBRARIES = libphalerror.la
55libphalerror_la_SOURCES = phalerror/create_pel.cpp \
56 phalerror/phal_error.cpp
57
58openpower_proc_control_LDADD = libphalerror.la
59endif
Lakshminarayana R. Kammath16ab00c2019-06-03 04:33:33 -050060
Matt Spinler597e05c2017-02-28 09:59:53 -060061SUBDIRS = test
Matt Spinler12bdf052017-03-09 16:01:39 -060062
63-include Makefile.generated