Ratan Gupta | bf9ba40 | 2017-04-14 17:16:04 +0530 | [diff] [blame] | 1 | # Build these headers, don't install them |
| 2 | nobase_nodist_include_HEADERS = \ |
Ratan Gupta | db81a8a | 2017-04-20 20:21:25 +0530 | [diff] [blame] | 3 | xyz/openbmc_project/Network/VLAN/Create/server.hpp \ |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 4 | xyz/openbmc_project/Network/IP/Create/server.hpp \ |
| 5 | xyz/openbmc_project/Network/Neighbor/CreateStatic/server.hpp |
Ratan Gupta | bf9ba40 | 2017-04-14 17:16:04 +0530 | [diff] [blame] | 6 | |
Patrick Venture | 042e472 | 2019-01-07 07:42:11 -0800 | [diff] [blame] | 7 | if HAVE_SYSTEMD |
| 8 | systemdsystemunit_DATA = \ |
| 9 | xyz.openbmc_project.Network.service |
| 10 | |
| 11 | dbuspolicy_DATA = \ |
| 12 | xyz.openbmc_project.Network.conf |
| 13 | endif |
| 14 | |
Patrick Venture | 946d159 | 2019-03-28 11:02:30 -0700 | [diff] [blame] | 15 | bin_PROGRAMS = phosphor-network-manager ncsi-netlink |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 16 | |
| 17 | noinst_HEADERS = \ |
Ratan Gupta | 05eb109 | 2017-04-14 16:33:53 +0530 | [diff] [blame] | 18 | ethernet_interface.hpp \ |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 19 | neighbor.hpp \ |
William A. Kennington III | c920bdb | 2019-04-19 14:23:06 -0700 | [diff] [blame] | 20 | netlink.hpp \ |
Michael Tritz | 29f2fd6 | 2017-05-22 15:27:26 -0500 | [diff] [blame] | 21 | network_config.hpp \ |
Ratan Gupta | 4af3676 | 2017-04-20 19:12:29 +0530 | [diff] [blame] | 22 | network_manager.hpp \ |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 23 | ipaddress.hpp \ |
Ratan Gupta | 8804feb | 2017-05-25 10:49:57 +0530 | [diff] [blame] | 24 | types.hpp \ |
Ratan Gupta | 82e1ef9 | 2017-06-15 08:39:15 +0530 | [diff] [blame] | 25 | util.hpp \ |
| 26 | routing_table.hpp \ |
Ratan Gupta | ed123a3 | 2017-06-15 09:07:31 +0530 | [diff] [blame] | 27 | config_parser.hpp \ |
Ratan Gupta | 935bc33 | 2017-07-11 17:47:14 +0530 | [diff] [blame] | 28 | system_configuration.hpp \ |
Ratan Gupta | 3d3e4fc | 2017-07-25 13:38:19 +0530 | [diff] [blame] | 29 | dhcp_configuration.hpp \ |
Ratan Gupta | 0f9dc1b | 2017-09-03 17:57:50 +0530 | [diff] [blame] | 30 | vlan_interface.hpp \ |
Ratan Gupta | 4f80c1a | 2017-09-03 18:01:22 +0530 | [diff] [blame] | 31 | rtnetlink_server.hpp \ |
Vishwanatha Subbanna | ca4ce1b | 2017-10-16 23:17:18 +0530 | [diff] [blame] | 32 | dns_updater.hpp \ |
Ratan Gupta | b38401b | 2018-03-16 12:44:26 +0530 | [diff] [blame] | 33 | watch.hpp \ |
| 34 | argument.hpp |
| 35 | |
| 36 | ncsi_netlink_SOURCES = \ |
| 37 | argument.cpp \ |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 38 | ncsi_netlink_main.cpp \ |
| 39 | ncsi_util.cpp |
| 40 | |
| 41 | ncsi_netlink_LDFLAGS = \ |
| 42 | $(PHOSPHOR_LOGGING_LIBS) \ |
William A. Kennington III | 01defca | 2019-03-21 16:23:12 -0700 | [diff] [blame] | 43 | $(LIBNL_LIBS) |
Ratan Gupta | bbe4579 | 2018-03-23 00:22:55 +0530 | [diff] [blame] | 44 | |
William A. Kennington III | 01defca | 2019-03-21 16:23:12 -0700 | [diff] [blame] | 45 | ncsi_netlink_CPPFLAGS = $(LIBNL_CFLAGS) |
Andrew Geissler | 1f0648d | 2018-08-27 11:12:06 -0700 | [diff] [blame] | 46 | ncsi_netlink_CXXFLAGS = -flto |
Ratan Gupta | b38401b | 2018-03-16 12:44:26 +0530 | [diff] [blame] | 47 | |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 48 | |
| 49 | phosphor_network_manager_SOURCES = \ |
Ratan Gupta | 91a99cc | 2017-04-14 16:32:09 +0530 | [diff] [blame] | 50 | ethernet_interface.cpp \ |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 51 | neighbor.cpp \ |
Ratan Gupta | 2eff84f | 2017-04-20 19:19:15 +0530 | [diff] [blame] | 52 | ipaddress.cpp \ |
William A. Kennington III | c920bdb | 2019-04-19 14:23:06 -0700 | [diff] [blame] | 53 | netlink.cpp \ |
Michael Tritz | 29f2fd6 | 2017-05-22 15:27:26 -0500 | [diff] [blame] | 54 | network_config.cpp \ |
Ratan Gupta | 6811f82 | 2017-04-14 16:34:56 +0530 | [diff] [blame] | 55 | network_manager.cpp \ |
Ratan Gupta | bf9ba40 | 2017-04-14 17:16:04 +0530 | [diff] [blame] | 56 | network_manager_main.cpp \ |
Ratan Gupta | 82e1ef9 | 2017-06-15 08:39:15 +0530 | [diff] [blame] | 57 | system_configuration.cpp \ |
Ratan Gupta | db81a8a | 2017-04-20 20:21:25 +0530 | [diff] [blame] | 58 | xyz/openbmc_project/Network/VLAN/Create/server.cpp \ |
Ratan Gupta | 8804feb | 2017-05-25 10:49:57 +0530 | [diff] [blame] | 59 | xyz/openbmc_project/Network/IP/Create/server.cpp \ |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 60 | xyz/openbmc_project/Network/Neighbor/CreateStatic/server.cpp \ |
Ratan Gupta | 233524c | 2017-05-27 11:47:31 +0530 | [diff] [blame] | 61 | util.cpp \ |
Ratan Gupta | ed123a3 | 2017-06-15 09:07:31 +0530 | [diff] [blame] | 62 | routing_table.cpp \ |
Ratan Gupta | 935bc33 | 2017-07-11 17:47:14 +0530 | [diff] [blame] | 63 | config_parser.cpp \ |
Ratan Gupta | 3d3e4fc | 2017-07-25 13:38:19 +0530 | [diff] [blame] | 64 | dhcp_configuration.cpp \ |
Gunnar Mills | aed434f | 2018-08-27 15:31:16 -0500 | [diff] [blame] | 65 | vlan_interface.cpp \ |
Ratan Gupta | 4f80c1a | 2017-09-03 18:01:22 +0530 | [diff] [blame] | 66 | rtnetlink_server.cpp \ |
Vishwanatha Subbanna | ca4ce1b | 2017-10-16 23:17:18 +0530 | [diff] [blame] | 67 | dns_updater.cpp \ |
| 68 | watch.cpp |
Ratan Gupta | bf9ba40 | 2017-04-14 17:16:04 +0530 | [diff] [blame] | 69 | |
| 70 | CLEANFILES = \ |
| 71 | xyz/openbmc_project/Network/VLAN/Create/server.cpp \ |
Ratan Gupta | db81a8a | 2017-04-20 20:21:25 +0530 | [diff] [blame] | 72 | xyz/openbmc_project/Network/VLAN/Create/server.hpp \ |
| 73 | xyz/openbmc_project/Network/IP/Create/server.cpp \ |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 74 | 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 Gupta | db81a8a | 2017-04-20 20:21:25 +0530 | [diff] [blame] | 77 | |
Ratan Gupta | bf9ba40 | 2017-04-14 17:16:04 +0530 | [diff] [blame] | 78 | BUILT_SOURCES = \ |
| 79 | xyz/openbmc_project/Network/VLAN/Create/server.cpp \ |
Ratan Gupta | db81a8a | 2017-04-20 20:21:25 +0530 | [diff] [blame] | 80 | xyz/openbmc_project/Network/VLAN/Create/server.hpp \ |
| 81 | xyz/openbmc_project/Network/IP/Create/server.cpp \ |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 82 | 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 Gupta | bf9ba40 | 2017-04-14 17:16:04 +0530 | [diff] [blame] | 85 | |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 86 | phosphor_network_manager_LDFLAGS = \ |
| 87 | $(SYSTEMD_LIBS) \ |
| 88 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | 3a70fa2 | 2018-09-20 18:48:20 -0700 | [diff] [blame] | 89 | $(SDEVENTPLUS_LIBS) \ |
William A. Kennington III | 12beaad | 2020-06-13 19:30:41 -0700 | [diff] [blame] | 90 | $(STDPLUS_LIBS) \ |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 91 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
Ratan Gupta | 11cef80 | 2017-05-29 08:41:48 +0530 | [diff] [blame] | 92 | $(PHOSPHOR_LOGGING_LIBS) \ |
Ratan Gupta | 82549cc | 2017-04-21 08:45:23 +0530 | [diff] [blame] | 93 | -lstdc++fs |
Ratan Gupta | 8c83493 | 2017-04-14 16:30:24 +0530 | [diff] [blame] | 94 | |
| 95 | phosphor_network_manager_CXXFLAGS = \ |
| 96 | $(SYSTEMD_CFLAGS) \ |
| 97 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | 3a70fa2 | 2018-09-20 18:48:20 -0700 | [diff] [blame] | 98 | $(SDEVENTPLUS_CFLAGS) \ |
William A. Kennington III | 12beaad | 2020-06-13 19:30:41 -0700 | [diff] [blame] | 99 | $(STDPLUS_CFLAGS) \ |
Ratan Gupta | 233524c | 2017-05-27 11:47:31 +0530 | [diff] [blame] | 100 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
Andrew Geissler | 1f0648d | 2018-08-27 11:12:06 -0700 | [diff] [blame] | 101 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 102 | -flto |
Ratan Gupta | bf9ba40 | 2017-04-14 17:16:04 +0530 | [diff] [blame] | 103 | |
Johnathan Mantey | ad4bf5c | 2020-01-24 13:30:39 -0800 | [diff] [blame] | 104 | if FEATURE_NIC_ETHTOOL |
| 105 | phosphor_network_manager_CXXFLAGS += -DNIC_SUPPORTS_ETHTOOL |
| 106 | endif |
| 107 | |
Manojkiran Eda | 75e08ea | 2020-06-17 19:03:24 +0530 | [diff] [blame] | 108 | if FEATURE_SYNC_MAC_FROM_INVENTORY |
| 109 | phosphor_network_manager_CXXFLAGS += -DSYNC_MAC_FROM_INVENTORY |
| 110 | endif |
| 111 | |
Ratan Gupta | bf9ba40 | 2017-04-14 17:16:04 +0530 | [diff] [blame] | 112 | xyz/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 | |
| 116 | xyz/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 Gupta | db81a8a | 2017-04-20 20:21:25 +0530 | [diff] [blame] | 119 | |
| 120 | xyz/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 | |
| 124 | xyz/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 Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 127 | |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 128 | xyz/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 | |
| 132 | xyz/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 III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 135 | |
Ratan Gupta | 3529717 | 2018-11-28 18:40:16 +0530 | [diff] [blame] | 136 | SUBDIRS = test |