blob: 79db184e88e094ec12575d49592eda3159f909a3 [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 \
William A. Kennington IIIc920bdb2019-04-19 14:23:06 -070020 netlink.hpp \
Michael Tritz29f2fd62017-05-22 15:27:26 -050021 network_config.hpp \
Ratan Gupta4af36762017-04-20 19:12:29 +053022 network_manager.hpp \
Ratan Gupta82549cc2017-04-21 08:45:23 +053023 ipaddress.hpp \
Ratan Gupta8804feb2017-05-25 10:49:57 +053024 types.hpp \
Ratan Gupta82e1ef92017-06-15 08:39:15 +053025 util.hpp \
26 routing_table.hpp \
Ratan Guptaed123a32017-06-15 09:07:31 +053027 config_parser.hpp \
Ratan Gupta935bc332017-07-11 17:47:14 +053028 system_configuration.hpp \
Ratan Gupta3d3e4fc2017-07-25 13:38:19 +053029 dhcp_configuration.hpp \
Ratan Gupta0f9dc1b2017-09-03 17:57:50 +053030 vlan_interface.hpp \
Ratan Gupta4f80c1a2017-09-03 18:01:22 +053031 rtnetlink_server.hpp \
Vishwanatha Subbannaca4ce1b2017-10-16 23:17:18 +053032 dns_updater.hpp \
Ratan Guptab38401b2018-03-16 12:44:26 +053033 watch.hpp \
34 argument.hpp
35
36ncsi_netlink_SOURCES = \
37 argument.cpp \
Ratan Guptabbe45792018-03-23 00:22:55 +053038 ncsi_netlink_main.cpp \
39 ncsi_util.cpp
40
41ncsi_netlink_LDFLAGS = \
42 $(PHOSPHOR_LOGGING_LIBS) \
William A. Kennington III01defca2019-03-21 16:23:12 -070043 $(LIBNL_LIBS)
Ratan Guptabbe45792018-03-23 00:22:55 +053044
William A. Kennington III01defca2019-03-21 16:23:12 -070045ncsi_netlink_CPPFLAGS = $(LIBNL_CFLAGS)
Andrew Geissler1f0648d2018-08-27 11:12:06 -070046ncsi_netlink_CXXFLAGS = -flto
Ratan Guptab38401b2018-03-16 12:44:26 +053047
Ratan Gupta8c834932017-04-14 16:30:24 +053048
49phosphor_network_manager_SOURCES = \
Ratan Gupta91a99cc2017-04-14 16:32:09 +053050 ethernet_interface.cpp \
William A. Kennington III08505792019-01-30 16:00:04 -080051 neighbor.cpp \
Ratan Gupta2eff84f2017-04-20 19:19:15 +053052 ipaddress.cpp \
William A. Kennington IIIc920bdb2019-04-19 14:23:06 -070053 netlink.cpp \
Michael Tritz29f2fd62017-05-22 15:27:26 -050054 network_config.cpp \
Ratan Gupta6811f822017-04-14 16:34:56 +053055 network_manager.cpp \
Ratan Guptabf9ba402017-04-14 17:16:04 +053056 network_manager_main.cpp \
Ratan Gupta82e1ef92017-06-15 08:39:15 +053057 system_configuration.cpp \
Ratan Guptadb81a8a2017-04-20 20:21:25 +053058 xyz/openbmc_project/Network/VLAN/Create/server.cpp \
Ratan Gupta8804feb2017-05-25 10:49:57 +053059 xyz/openbmc_project/Network/IP/Create/server.cpp \
William A. Kennington III08505792019-01-30 16:00:04 -080060 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp \
Ratan Gupta233524c2017-05-27 11:47:31 +053061 util.cpp \
Ratan Guptaed123a32017-06-15 09:07:31 +053062 routing_table.cpp \
Ratan Gupta935bc332017-07-11 17:47:14 +053063 config_parser.cpp \
Ratan Gupta3d3e4fc2017-07-25 13:38:19 +053064 dhcp_configuration.cpp \
Gunnar Millsaed434f2018-08-27 15:31:16 -050065 vlan_interface.cpp \
Ratan Gupta4f80c1a2017-09-03 18:01:22 +053066 rtnetlink_server.cpp \
Vishwanatha Subbannaca4ce1b2017-10-16 23:17:18 +053067 dns_updater.cpp \
68 watch.cpp
Ratan Guptabf9ba402017-04-14 17:16:04 +053069
70CLEANFILES = \
71 xyz/openbmc_project/Network/VLAN/Create/server.cpp \
Ratan Guptadb81a8a2017-04-20 20:21:25 +053072 xyz/openbmc_project/Network/VLAN/Create/server.hpp \
73 xyz/openbmc_project/Network/IP/Create/server.cpp \
William A. Kennington III08505792019-01-30 16:00:04 -080074 xyz/openbmc_project/Network/IP/Create/server.hpp \
75 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp \
76 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp
Ratan Guptadb81a8a2017-04-20 20:21:25 +053077
Ratan Guptabf9ba402017-04-14 17:16:04 +053078BUILT_SOURCES = \
79 xyz/openbmc_project/Network/VLAN/Create/server.cpp \
Ratan Guptadb81a8a2017-04-20 20:21:25 +053080 xyz/openbmc_project/Network/VLAN/Create/server.hpp \
81 xyz/openbmc_project/Network/IP/Create/server.cpp \
William A. Kennington III08505792019-01-30 16:00:04 -080082 xyz/openbmc_project/Network/IP/Create/server.hpp \
83 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp \
84 xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp
Ratan Guptabf9ba402017-04-14 17:16:04 +053085
Ratan Gupta8c834932017-04-14 16:30:24 +053086phosphor_network_manager_LDFLAGS = \
87 $(SYSTEMD_LIBS) \
88 $(SDBUSPLUS_LIBS) \
William A. Kennington III3a70fa22018-09-20 18:48:20 -070089 $(SDEVENTPLUS_LIBS) \
Ratan Gupta82549cc2017-04-21 08:45:23 +053090 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Ratan Gupta11cef802017-05-29 08:41:48 +053091 $(PHOSPHOR_LOGGING_LIBS) \
Ratan Gupta82549cc2017-04-21 08:45:23 +053092 -lstdc++fs
Ratan Gupta8c834932017-04-14 16:30:24 +053093
94phosphor_network_manager_CXXFLAGS = \
95 $(SYSTEMD_CFLAGS) \
96 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III3a70fa22018-09-20 18:48:20 -070097 $(SDEVENTPLUS_CFLAGS) \
Ratan Gupta233524c2017-05-27 11:47:31 +053098 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Andrew Geissler1f0648d2018-08-27 11:12:06 -070099 $(PHOSPHOR_LOGGING_CFLAGS) \
100 -flto
Ratan Guptabf9ba402017-04-14 17:16:04 +0530101
102xyz/openbmc_project/Network/VLAN/Create/server.cpp: xyz/openbmc_project/Network/VLAN/Create.interface.yaml xyz/openbmc_project/Network/VLAN/Create/server.hpp
103 @mkdir -p `dirname $@`
104 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.VLAN.Create > $@
105
106xyz/openbmc_project/Network/VLAN/Create/server.hpp: xyz/openbmc_project/Network/VLAN/Create.interface.yaml
107 @mkdir -p `dirname $@`
108 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.VLAN.Create > $@
Ratan Guptadb81a8a2017-04-20 20:21:25 +0530109
110xyz/openbmc_project/Network/IP/Create/server.cpp: xyz/openbmc_project/Network/IP/Create.interface.yaml xyz/openbmc_project/Network/IP/Create/server.hpp
111 @mkdir -p `dirname $@`
112 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.IP.Create > $@
113
114xyz/openbmc_project/Network/IP/Create/server.hpp: xyz/openbmc_project/Network/IP/Create.interface.yaml
115 @mkdir -p `dirname $@`
116 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.IP.Create > $@
Ratan Gupta594123d2017-05-16 22:48:35 +0530117
William A. Kennington III08505792019-01-30 16:00:04 -0800118xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp: xyz/openbmc_project/Network/Neighbor/CreateStatic.interface.yaml xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp
119 @mkdir -p `dirname $@`
120 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.Neighbor.CreateStatic > $@
121
122xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp: xyz/openbmc_project/Network/Neighbor/CreateStatic.interface.yaml
123 @mkdir -p `dirname $@`
124 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.Neighbor.CreateStatic > $@
William A. Kennington III08505792019-01-30 16:00:04 -0800125
Ratan Gupta35297172018-11-28 18:40:16 +0530126SUBDIRS = test