blob: 726507e21a4ba25b5e05c6b2e59540ff9599276a [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 \
4 xyz/openbmc_project/Network/IP/Create/server.hpp
Ratan Guptabf9ba402017-04-14 17:16:04 +05305
Patrick Venture042e4722019-01-07 07:42:11 -08006if HAVE_SYSTEMD
7systemdsystemunit_DATA = \
8 xyz.openbmc_project.Network.service
9
10dbuspolicy_DATA = \
11 xyz.openbmc_project.Network.conf
12endif
13
Ratan Guptab38401b2018-03-16 12:44:26 +053014sbin_PROGRAMS = phosphor-network-manager ncsi-netlink
Ratan Gupta8c834932017-04-14 16:30:24 +053015
16noinst_HEADERS = \
Ratan Gupta05eb1092017-04-14 16:33:53 +053017 ethernet_interface.hpp \
Michael Tritz29f2fd62017-05-22 15:27:26 -050018 network_config.hpp \
Ratan Gupta4af36762017-04-20 19:12:29 +053019 network_manager.hpp \
Ratan Gupta82549cc2017-04-21 08:45:23 +053020 ipaddress.hpp \
Ratan Gupta8804feb2017-05-25 10:49:57 +053021 types.hpp \
Ratan Gupta82e1ef92017-06-15 08:39:15 +053022 util.hpp \
23 routing_table.hpp \
Ratan Guptaed123a32017-06-15 09:07:31 +053024 config_parser.hpp \
Ratan Gupta935bc332017-07-11 17:47:14 +053025 system_configuration.hpp \
Ratan Gupta3d3e4fc2017-07-25 13:38:19 +053026 dhcp_configuration.hpp \
Ratan Gupta0f9dc1b2017-09-03 17:57:50 +053027 vlan_interface.hpp \
Ratan Gupta4f80c1a2017-09-03 18:01:22 +053028 rtnetlink_server.hpp \
Vishwanatha Subbannaca4ce1b2017-10-16 23:17:18 +053029 dns_updater.hpp \
Ratan Guptab38401b2018-03-16 12:44:26 +053030 watch.hpp \
31 argument.hpp
32
33ncsi_netlink_SOURCES = \
34 argument.cpp \
Ratan Guptabbe45792018-03-23 00:22:55 +053035 ncsi_netlink_main.cpp \
36 ncsi_util.cpp
37
38ncsi_netlink_LDFLAGS = \
39 $(PHOSPHOR_LOGGING_LIBS) \
William A. Kennington III01defca2019-03-21 16:23:12 -070040 $(LIBNL_LIBS)
Ratan Guptabbe45792018-03-23 00:22:55 +053041
William A. Kennington III01defca2019-03-21 16:23:12 -070042ncsi_netlink_CPPFLAGS = $(LIBNL_CFLAGS)
Andrew Geissler1f0648d2018-08-27 11:12:06 -070043ncsi_netlink_CXXFLAGS = -flto
Ratan Guptab38401b2018-03-16 12:44:26 +053044
Ratan Gupta8c834932017-04-14 16:30:24 +053045
46phosphor_network_manager_SOURCES = \
Ratan Gupta91a99cc2017-04-14 16:32:09 +053047 ethernet_interface.cpp \
Ratan Gupta2eff84f2017-04-20 19:19:15 +053048 ipaddress.cpp \
Michael Tritz29f2fd62017-05-22 15:27:26 -050049 network_config.cpp \
Ratan Gupta6811f822017-04-14 16:34:56 +053050 network_manager.cpp \
Ratan Guptabf9ba402017-04-14 17:16:04 +053051 network_manager_main.cpp \
Ratan Gupta82e1ef92017-06-15 08:39:15 +053052 system_configuration.cpp \
Ratan Guptadb81a8a2017-04-20 20:21:25 +053053 xyz/openbmc_project/Network/VLAN/Create/server.cpp \
Ratan Gupta8804feb2017-05-25 10:49:57 +053054 xyz/openbmc_project/Network/IP/Create/server.cpp \
Ratan Gupta233524c2017-05-27 11:47:31 +053055 util.cpp \
Ratan Guptaed123a32017-06-15 09:07:31 +053056 routing_table.cpp \
Ratan Gupta935bc332017-07-11 17:47:14 +053057 config_parser.cpp \
Ratan Gupta3d3e4fc2017-07-25 13:38:19 +053058 dhcp_configuration.cpp \
Gunnar Millsaed434f2018-08-27 15:31:16 -050059 vlan_interface.cpp \
Ratan Gupta4f80c1a2017-09-03 18:01:22 +053060 rtnetlink_server.cpp \
Vishwanatha Subbannaca4ce1b2017-10-16 23:17:18 +053061 dns_updater.cpp \
62 watch.cpp
Ratan Guptabf9ba402017-04-14 17:16:04 +053063
64CLEANFILES = \
65 xyz/openbmc_project/Network/VLAN/Create/server.cpp \
Ratan Guptadb81a8a2017-04-20 20:21:25 +053066 xyz/openbmc_project/Network/VLAN/Create/server.hpp \
67 xyz/openbmc_project/Network/IP/Create/server.cpp \
68 xyz/openbmc_project/Network/IP/Create/server.hpp
69
Ratan Guptabf9ba402017-04-14 17:16:04 +053070BUILT_SOURCES = \
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 \
74 xyz/openbmc_project/Network/IP/Create/server.hpp
Ratan Guptabf9ba402017-04-14 17:16:04 +053075
Ratan Gupta8c834932017-04-14 16:30:24 +053076phosphor_network_manager_LDFLAGS = \
77 $(SYSTEMD_LIBS) \
78 $(SDBUSPLUS_LIBS) \
William A. Kennington III3a70fa22018-09-20 18:48:20 -070079 $(SDEVENTPLUS_LIBS) \
Ratan Gupta82549cc2017-04-21 08:45:23 +053080 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
Ratan Gupta11cef802017-05-29 08:41:48 +053081 $(PHOSPHOR_LOGGING_LIBS) \
Ratan Gupta82549cc2017-04-21 08:45:23 +053082 -lstdc++fs
Ratan Gupta8c834932017-04-14 16:30:24 +053083
84phosphor_network_manager_CXXFLAGS = \
85 $(SYSTEMD_CFLAGS) \
86 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III3a70fa22018-09-20 18:48:20 -070087 $(SDEVENTPLUS_CFLAGS) \
Ratan Gupta233524c2017-05-27 11:47:31 +053088 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
Andrew Geissler1f0648d2018-08-27 11:12:06 -070089 $(PHOSPHOR_LOGGING_CFLAGS) \
90 -flto
Ratan Guptabf9ba402017-04-14 17:16:04 +053091
92xyz/openbmc_project/Network/VLAN/Create/server.cpp: xyz/openbmc_project/Network/VLAN/Create.interface.yaml xyz/openbmc_project/Network/VLAN/Create/server.hpp
93 @mkdir -p `dirname $@`
94 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.VLAN.Create > $@
95
96xyz/openbmc_project/Network/VLAN/Create/server.hpp: xyz/openbmc_project/Network/VLAN/Create.interface.yaml
97 @mkdir -p `dirname $@`
98 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.VLAN.Create > $@
Ratan Guptadb81a8a2017-04-20 20:21:25 +053099
100xyz/openbmc_project/Network/IP/Create/server.cpp: xyz/openbmc_project/Network/IP/Create.interface.yaml xyz/openbmc_project/Network/IP/Create/server.hpp
101 @mkdir -p `dirname $@`
102 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-cpp xyz.openbmc_project.Network.IP.Create > $@
103
104xyz/openbmc_project/Network/IP/Create/server.hpp: xyz/openbmc_project/Network/IP/Create.interface.yaml
105 @mkdir -p `dirname $@`
106 $(SDBUSPLUSPLUS) -r $(srcdir) interface server-header xyz.openbmc_project.Network.IP.Create > $@
107 sed -i '5i #include \"xyz\/openbmc_project\/Network\/IP\/server.hpp\"' $@
Ratan Gupta594123d2017-05-16 22:48:35 +0530108
Ratan Gupta35297172018-11-28 18:40:16 +0530109SUBDIRS = test