blob: 627bcbf9024c482c9461dbb31f75dd834c15e0f6 [file] [log] [blame]
Ratan Guptabf9ba402017-04-14 17:16:04 +05301# Build these headers, don't install them
2nobase_nodist_include_HEADERS = \
Ratan Guptadb81a8a2017-04-20 20:21:25 +05303 xyz/openbmc_project/Network/VLAN/Create/server.hpp \
William A. Kennington III08505792019-01-30 16:00:04 -08004 xyz/openbmc_project/Network/IP/Create/server.hpp \
5 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp
Ratan Guptabf9ba402017-04-14 17:16:04 +05306
Patrick Venture042e4722019-01-07 07:42:11 -08007if HAVE_SYSTEMD
8systemdsystemunit_DATA = \
9 xyz.openbmc_project.Network.service
10
11dbuspolicy_DATA = \
12 xyz.openbmc_project.Network.conf
13endif
14
Patrick Venture946d1592019-03-28 11:02:30 -070015bin_PROGRAMS = phosphor-network-manager ncsi-netlink
Ratan Gupta8c834932017-04-14 16:30:24 +053016
17noinst_HEADERS = \
Ratan Gupta05eb1092017-04-14 16:33:53 +053018 ethernet_interface.hpp \
William A. Kennington III08505792019-01-30 16:00:04 -080019 neighbor.hpp \
Michael Tritz29f2fd62017-05-22 15:27:26 -050020 network_config.hpp \
Ratan Gupta4af36762017-04-20 19:12:29 +053021 network_manager.hpp \
Ratan Gupta82549cc2017-04-21 08:45:23 +053022 ipaddress.hpp \
Ratan Gupta8804feb2017-05-25 10:49:57 +053023 types.hpp \
Ratan Gupta82e1ef92017-06-15 08:39:15 +053024 util.hpp \
25 routing_table.hpp \
Ratan Guptaed123a32017-06-15 09:07:31 +053026 config_parser.hpp \
Ratan Gupta935bc332017-07-11 17:47:14 +053027 system_configuration.hpp \
Ratan Gupta3d3e4fc2017-07-25 13:38:19 +053028 dhcp_configuration.hpp \
Ratan Gupta0f9dc1b2017-09-03 17:57:50 +053029 vlan_interface.hpp \
Ratan Gupta4f80c1a2017-09-03 18:01:22 +053030 rtnetlink_server.hpp \
Vishwanatha Subbannaca4ce1b2017-10-16 23:17:18 +053031 dns_updater.hpp \
Ratan Guptab38401b2018-03-16 12:44:26 +053032 watch.hpp \
33 argument.hpp
34
35ncsi_netlink_SOURCES = \
36 argument.cpp \
Ratan Guptabbe45792018-03-23 00:22:55 +053037 ncsi_netlink_main.cpp \
38 ncsi_util.cpp
39
40ncsi_netlink_LDFLAGS = \
41 $(PHOSPHOR_LOGGING_LIBS) \
William A. Kennington III01defca2019-03-21 16:23:12 -070042 $(LIBNL_LIBS)
Ratan Guptabbe45792018-03-23 00:22:55 +053043
William A. Kennington III01defca2019-03-21 16:23:12 -070044ncsi_netlink_CPPFLAGS = $(LIBNL_CFLAGS)
Andrew Geissler1f0648d2018-08-27 11:12:06 -070045ncsi_netlink_CXXFLAGS = -flto
Ratan Guptab38401b2018-03-16 12:44:26 +053046
Ratan Gupta8c834932017-04-14 16:30:24 +053047
48phosphor_network_manager_SOURCES = \
Ratan Gupta91a99cc2017-04-14 16:32:09 +053049 ethernet_interface.cpp \
William A. Kennington III08505792019-01-30 16:00:04 -080050 neighbor.cpp \
Ratan Gupta2eff84f2017-04-20 19:19:15 +053051 ipaddress.cpp \
Michael Tritz29f2fd62017-05-22 15:27:26 -050052 network_config.cpp \
Ratan Gupta6811f822017-04-14 16:34:56 +053053 network_manager.cpp \
Ratan Guptabf9ba402017-04-14 17:16:04 +053054 network_manager_main.cpp \
Ratan Gupta82e1ef92017-06-15 08:39:15 +053055 system_configuration.cpp \
Ratan Guptadb81a8a2017-04-20 20:21:25 +053056 xyz/openbmc_project/Network/VLAN/Create/server.cpp \
Ratan Gupta8804feb2017-05-25 10:49:57 +053057 xyz/openbmc_project/Network/IP/Create/server.cpp \
William A. Kennington III08505792019-01-30 16:00:04 -080058 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp \
Ratan Gupta233524c2017-05-27 11:47:31 +053059 util.cpp \
Ratan Guptaed123a32017-06-15 09:07:31 +053060 routing_table.cpp \
Ratan Gupta935bc332017-07-11 17:47:14 +053061 config_parser.cpp \
Ratan Gupta3d3e4fc2017-07-25 13:38:19 +053062 dhcp_configuration.cpp \
Gunnar Millsaed434f2018-08-27 15:31:16 -050063 vlan_interface.cpp \
Ratan Gupta4f80c1a2017-09-03 18:01:22 +053064 rtnetlink_server.cpp \
Vishwanatha Subbannaca4ce1b2017-10-16 23:17:18 +053065 dns_updater.cpp \
66 watch.cpp
Ratan Guptabf9ba402017-04-14 17:16:04 +053067
68CLEANFILES = \
69 xyz/openbmc_project/Network/VLAN/Create/server.cpp \
Ratan Guptadb81a8a2017-04-20 20:21:25 +053070 xyz/openbmc_project/Network/VLAN/Create/server.hpp \
71 xyz/openbmc_project/Network/IP/Create/server.cpp \
William A. Kennington III08505792019-01-30 16:00:04 -080072 xyz/openbmc_project/Network/IP/Create/server.hpp \
73 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp \
74 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp
Ratan Guptadb81a8a2017-04-20 20:21:25 +053075
Ratan Guptabf9ba402017-04-14 17:16:04 +053076BUILT_SOURCES = \
77 xyz/openbmc_project/Network/VLAN/Create/server.cpp \
Ratan Guptadb81a8a2017-04-20 20:21:25 +053078 xyz/openbmc_project/Network/VLAN/Create/server.hpp \
79 xyz/openbmc_project/Network/IP/Create/server.cpp \
William A. Kennington III08505792019-01-30 16:00:04 -080080 xyz/openbmc_project/Network/IP/Create/server.hpp \
81 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp \
82 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp
Ratan Guptabf9ba402017-04-14 17:16:04 +053083
Ratan Gupta8c834932017-04-14 16:30:24 +053084phosphor_network_manager_LDFLAGS = \
85 $(SYSTEMD_LIBS) \
86 $(SDBUSPLUS_LIBS) \
William A. Kennington III3a70fa22018-09-20 18:48:20 -070087 $(SDEVENTPLUS_LIBS) \
Ratan Gupta82549cc2017-04-21 08:45:23 +053088 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Ratan Gupta11cef802017-05-29 08:41:48 +053089 $(PHOSPHOR_LOGGING_LIBS) \
Ratan Gupta82549cc2017-04-21 08:45:23 +053090 -lstdc++fs
Ratan Gupta8c834932017-04-14 16:30:24 +053091
92phosphor_network_manager_CXXFLAGS = \
93 $(SYSTEMD_CFLAGS) \
94 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III3a70fa22018-09-20 18:48:20 -070095 $(SDEVENTPLUS_CFLAGS) \
Ratan Gupta233524c2017-05-27 11:47:31 +053096 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Andrew Geissler1f0648d2018-08-27 11:12:06 -070097 $(PHOSPHOR_LOGGING_CFLAGS) \
98 -flto
Ratan Guptabf9ba402017-04-14 17:16:04 +053099
100xyz/openbmc_project/Network/VLAN/Create/server.cpp: xyz/openbmc_project/Network/VLAN/Create.interface.yaml xyz/openbmc_project/Network/VLAN/Create/server.hpp
101 @mkdir -p `dirname $@`
102 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.VLAN.Create > $@
103
104xyz/openbmc_project/Network/VLAN/Create/server.hpp: xyz/openbmc_project/Network/VLAN/Create.interface.yaml
105 @mkdir -p `dirname $@`
106 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.VLAN.Create > $@
Ratan Guptadb81a8a2017-04-20 20:21:25 +0530107
108xyz/openbmc_project/Network/IP/Create/server.cpp: xyz/openbmc_project/Network/IP/Create.interface.yaml xyz/openbmc_project/Network/IP/Create/server.hpp
109 @mkdir -p `dirname $@`
110 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.IP.Create > $@
111
112xyz/openbmc_project/Network/IP/Create/server.hpp: xyz/openbmc_project/Network/IP/Create.interface.yaml
113 @mkdir -p `dirname $@`
114 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.IP.Create > $@
Ratan Gupta594123d2017-05-16 22:48:35 +0530115
William A. Kennington III08505792019-01-30 16:00:04 -0800116xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp: xyz/openbmc_project/Network/Neighbor/CreateStatic.interface.yaml xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp
117 @mkdir -p `dirname $@`
118 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.Neighbor.CreateStatic > $@
119
120xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp: xyz/openbmc_project/Network/Neighbor/CreateStatic.interface.yaml
121 @mkdir -p `dirname $@`
122 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.Neighbor.CreateStatic > $@
William A. Kennington III08505792019-01-30 16:00:04 -0800123
Ratan Gupta35297172018-11-28 18:40:16 +0530124SUBDIRS = test