blob: d27b30487f49607b2c7e56bd7e8a60e35f65d07b [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) \
William A. Kennington III12beaad2020-06-13 19:30:41 -070090 $(STDPLUS_LIBS) \
Ratan Gupta82549cc2017-04-21 08:45:23 +053091 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Ratan Gupta11cef802017-05-29 08:41:48 +053092 $(PHOSPHOR_LOGGING_LIBS) \
Ratan Gupta82549cc2017-04-21 08:45:23 +053093 -lstdc++fs
Ratan Gupta8c834932017-04-14 16:30:24 +053094
95phosphor_network_manager_CXXFLAGS = \
96 $(SYSTEMD_CFLAGS) \
97 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III3a70fa22018-09-20 18:48:20 -070098 $(SDEVENTPLUS_CFLAGS) \
William A. Kennington III12beaad2020-06-13 19:30:41 -070099 $(STDPLUS_CFLAGS) \
Ratan Gupta233524c2017-05-27 11:47:31 +0530100 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Andrew Geissler1f0648d2018-08-27 11:12:06 -0700101 $(PHOSPHOR_LOGGING_CFLAGS) \
102 -flto
Ratan Guptabf9ba402017-04-14 17:16:04 +0530103
Johnathan Manteyad4bf5c2020-01-24 13:30:39 -0800104if FEATURE_NIC_ETHTOOL
105phosphor_network_manager_CXXFLAGS += -DNIC_SUPPORTS_ETHTOOL
106endif
107
Manojkiran Eda75e08ea2020-06-17 19:03:24 +0530108if FEATURE_SYNC_MAC_FROM_INVENTORY
109phosphor_network_manager_CXXFLAGS += -DSYNC_MAC_FROM_INVENTORY
110endif
111
Ratan Guptabf9ba402017-04-14 17:16:04 +0530112xyz/openbmc_project/Network/VLAN/Create/server.cpp: xyz/openbmc_project/Network/VLAN/Create.interface.yaml xyz/openbmc_project/Network/VLAN/Create/server.hpp
113 @mkdir -p `dirname $@`
114 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.VLAN.Create > $@
115
116xyz/openbmc_project/Network/VLAN/Create/server.hpp: xyz/openbmc_project/Network/VLAN/Create.interface.yaml
117 @mkdir -p `dirname $@`
118 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.VLAN.Create > $@
Ratan Guptadb81a8a2017-04-20 20:21:25 +0530119
120xyz/openbmc_project/Network/IP/Create/server.cpp: xyz/openbmc_project/Network/IP/Create.interface.yaml xyz/openbmc_project/Network/IP/Create/server.hpp
121 @mkdir -p `dirname $@`
122 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.IP.Create > $@
123
124xyz/openbmc_project/Network/IP/Create/server.hpp: xyz/openbmc_project/Network/IP/Create.interface.yaml
125 @mkdir -p `dirname $@`
126 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.IP.Create > $@
Ratan Gupta594123d2017-05-16 22:48:35 +0530127
William A. Kennington III08505792019-01-30 16:00:04 -0800128xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp: xyz/openbmc_project/Network/Neighbor/CreateStatic.interface.yaml xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp
129 @mkdir -p `dirname $@`
130 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.Neighbor.CreateStatic > $@
131
132xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp: xyz/openbmc_project/Network/Neighbor/CreateStatic.interface.yaml
133 @mkdir -p `dirname $@`
134 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.Neighbor.CreateStatic > $@
William A. Kennington III08505792019-01-30 16:00:04 -0800135
Ratan Gupta35297172018-11-28 18:40:16 +0530136SUBDIRS = test