blob: dbbbcd8adc0762b38689d49f45657c9dc2382db8 [file] [log] [blame]
Vernon Mauerycbccb052018-10-24 13:52:22 -07001BOOST_CXX = \
2 -DBOOST_ERROR_CODE_HEADER_ONLY \
3 -DBOOST_SYSTEM_NO_DEPRECATED \
4 -DBOOST_COROUTINES_NO_DEPRECATION_WARNING \
5 -DBOOST_ASIO_DISABLE_THREADS \
6 -DBOOST_ALL_NO_LIB
7
Patrick Venture17c17cc2019-03-28 10:58:54 -07008bin_PROGRAMS = \
Tom Josephc35524e2016-08-29 08:17:59 -05009 netipmid
10
11netipmid_SOURCES = \
12 endian.hpp \
13 socket_channel.hpp \
Tom Josephc35524e2016-08-29 08:17:59 -050014 message.hpp \
15 auth_algo.hpp \
16 auth_algo.cpp \
17 session.hpp \
Tom Josephc35524e2016-08-29 08:17:59 -050018 sessions_manager.hpp \
19 sessions_manager.cpp \
20 message_parsers.hpp \
21 message_parsers.cpp \
22 message_handler.hpp \
23 message_handler.cpp \
24 command_table.hpp \
25 command_table.cpp \
26 command/channel_auth.hpp \
27 command/channel_auth.cpp \
28 command/guid.hpp \
29 command/guid.cpp \
30 command/open_session.hpp \
31 command/open_session.cpp \
32 command/rakp12.hpp \
33 command/rakp12.cpp \
34 command/rakp34.hpp \
35 command/rakp34.cpp \
36 command/session_cmds.hpp \
37 command/session_cmds.cpp \
38 comm_module.hpp \
39 comm_module.cpp \
40 main.hpp \
Tom Joseph77531db2017-01-10 15:44:44 +053041 main.cpp \
42 integrity_algo.hpp \
Tom485038e2016-12-02 13:44:45 +053043 integrity_algo.cpp \
Tom Josephd08b5232017-01-24 18:15:39 +053044 crypt_algo.hpp \
Tom Joseph2be58bc2017-02-09 19:54:12 +053045 crypt_algo.cpp \
Tom Joseph807c7e82017-02-09 19:49:38 +053046 sol/console_buffer.hpp \
Tom Joseph86d17b42017-02-15 14:45:01 +053047 sd_event_loop.hpp \
Tom Joseph5a454a22017-02-15 14:51:42 +053048 sol/sol_context.hpp \
Tom Joseph7fd26dd2017-03-14 15:26:26 +053049 sol/sol_manager.hpp \
Tom Joseph22c5ad32017-03-14 18:04:22 +053050 sd_event_loop.cpp \
Tom Josephfbcac2e2017-03-14 18:15:07 +053051 sol/sol_manager.cpp \
Tom Joseph64b3dec2017-04-03 01:53:44 +053052 sol/sol_context.cpp \
53 command/sol_cmds.hpp \
Tom Joseph5c846a82017-04-03 01:59:39 +053054 command/sol_cmds.cpp \
55 command/payload_cmds.hpp \
Tom Josephe088bf02017-04-03 02:07:06 +053056 command/payload_cmds.cpp \
57 sol_module.hpp \
Vernon Mauery3819c1e2019-08-29 16:16:59 -070058 sol_module.cpp
Tom Josephc35524e2016-08-29 08:17:59 -050059
Tom485038e2016-12-02 13:44:45 +053060netipmid_CPPFLAGS = -DNET_IPMID_LIB_PATH=\"/usr/lib/net-ipmid/\"
Tom Joseph19b4f402017-08-02 17:59:30 +053061
62
63netipmid_LDFLAGS = \
64 $(SYSTEMD_LIBS) \
65 $(CRYPTO_LIBS) \
66 $(libmapper_LIBS) \
67 $(PHOSPHOR_LOGGING_LIBS) \
68 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
William A. Kennington III4f09eae2019-02-12 17:10:35 -080069 $(LIBIPMID_LIBS) \
Vernon Mauerydb9f8e72018-12-21 11:25:33 -080070 -lchannellayer \
Vernon Mauery66501642018-07-30 09:07:10 -070071 -luserlayer
Tom Joseph19b4f402017-08-02 17:59:30 +053072
73netipmid_CXXFLAGS = \
Vernon Mauery36baa142018-10-24 13:54:20 -070074 -flto \
Tom Joseph19b4f402017-08-02 17:59:30 +053075 $(SYSTEMD_CFLAGS) \
Vernon Mauerycbccb052018-10-24 13:52:22 -070076 $(BOOST_CXX) \
Tom Joseph19b4f402017-08-02 17:59:30 +053077 $(libmapper_CFLAGS) \
78 $(PHOSPHOR_LOGGING_CFLAGS) \
William A. Kennington III4f09eae2019-02-12 17:10:35 -080079 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
80 $(LIBIPMID_CFLAGS)
Tom Josephc35524e2016-08-29 08:17:59 -050081
Vernon Maueryd92bc322019-03-15 15:24:30 -070082if HAVE_SYSTEMD
83SYSTEMD_UNIT = phosphor-ipmi-net@.service
84SYSTEMD_SOCKET = phosphor-ipmi-net@.socket
85systemdsystemunit_DATA = $(SYSTEMD_UNIT) $(SYSTEMD_SOCKET)
86endif # HAVE_SYSTEMD
87
Tom Joseph1e5a76a2017-01-30 19:25:06 +053088SUBDIRS = test
89