summaryrefslogtreecommitdiff
path: root/contrib/ofed
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2018-06-16 15:05:05 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2018-06-16 15:05:05 +0000
commitf39bffc62c1395bde25d152c7f68fdf7cbaab414 (patch)
tree332b0ed14aadb5e616872aec9afaddf3dd19ca7f /contrib/ofed
parent20efcfc602b7a57979da99f0a1f917d9fb4a30e1 (diff)
downloadsrc-test2-f39bffc62c1395bde25d152c7f68fdf7cbaab414.tar.gz
src-test2-f39bffc62c1395bde25d152c7f68fdf7cbaab414.zip
Rework ofed build.
Aligns the build with the FreeBSD traditional approach to not build in contrib/, and to track inter-dependencies between libraries. With help from: bdrewery Reviewed by: bdrewery, hselasky Sponsored by: Mellanox Technologies MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D15648
Notes
Notes: svn path=/head/; revision=335253
Diffstat (limited to 'contrib/ofed')
-rw-r--r--contrib/ofed/Makefile10
-rw-r--r--contrib/ofed/include/Makefile191
-rw-r--r--contrib/ofed/infiniband-diags/build/Makefile29
-rw-r--r--contrib/ofed/infiniband-diags/build/Makefile.inc12
-rw-r--r--contrib/ofed/infiniband-diags/build/dump_fts/Makefile8
-rw-r--r--contrib/ofed/infiniband-diags/build/ibaddr/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/ibcacheedit/Makefile8
-rw-r--r--contrib/ofed/infiniband-diags/build/ibccconfig/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/ibccquery/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/iblinkinfo/Makefile8
-rw-r--r--contrib/ofed/infiniband-diags/build/ibmirror/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/ibnetdiscover/Makefile8
-rw-r--r--contrib/ofed/infiniband-diags/build/ibping/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/ibportstate/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/ibqueryerrors/Makefile8
-rw-r--r--contrib/ofed/infiniband-diags/build/ibroute/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/ibstat/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/ibsysstat/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/ibtracert/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/perfquery/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/saquery/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/sminfo/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/smpdump/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/smpquery/Makefile7
-rw-r--r--contrib/ofed/infiniband-diags/build/vendstat/Makefile7
-rw-r--r--contrib/ofed/libcxgb4/Makefile19
-rw-r--r--contrib/ofed/libibcm/Makefile15
-rw-r--r--contrib/ofed/libibmad/Makefile32
-rw-r--r--contrib/ofed/libibnetdisc/Makefile38
-rw-r--r--contrib/ofed/libibumad/Makefile16
-rw-r--r--contrib/ofed/libibverbs/Makefile75
-rw-r--r--contrib/ofed/libibverbs/examples/build/Makefile10
-rw-r--r--contrib/ofed/libibverbs/examples/build/Makefile.inc4
-rw-r--r--contrib/ofed/libibverbs/examples/build/asyncwatch/Makefile8
-rw-r--r--contrib/ofed/libibverbs/examples/build/devices/Makefile8
-rw-r--r--contrib/ofed/libibverbs/examples/build/devinfo/Makefile8
-rw-r--r--contrib/ofed/libibverbs/examples/build/rc_pingpong/Makefile8
-rw-r--r--contrib/ofed/libibverbs/examples/build/srq_pingpong/Makefile8
-rw-r--r--contrib/ofed/libibverbs/examples/build/uc_pingpong/Makefile8
-rw-r--r--contrib/ofed/libibverbs/examples/build/ud_pingpong/Makefile8
-rw-r--r--contrib/ofed/libmlx4/Makefile22
-rw-r--r--contrib/ofed/libmlx5/Makefile24
-rw-r--r--contrib/ofed/librdmacm/Makefile71
-rw-r--r--contrib/ofed/librdmacm/examples/build/Makefile7
-rw-r--r--contrib/ofed/librdmacm/examples/build/Makefile.inc3
-rw-r--r--contrib/ofed/librdmacm/examples/build/mckey/Makefile9
-rw-r--r--contrib/ofed/librdmacm/examples/build/rping/Makefile9
-rw-r--r--contrib/ofed/librdmacm/examples/build/ucmatose/Makefile9
-rw-r--r--contrib/ofed/librdmacm/examples/build/udaddy/Makefile9
-rw-r--r--contrib/ofed/opensm/complib/Makefile34
-rw-r--r--contrib/ofed/opensm/libopensm/Makefile20
-rw-r--r--contrib/ofed/opensm/libvendor/Makefile19
-rw-r--r--contrib/ofed/opensm/opensm/Makefile101
-rw-r--r--contrib/ofed/usr.bin/Makefile11
-rw-r--r--contrib/ofed/usr.lib/0/Makefile8
-rw-r--r--contrib/ofed/usr.lib/1/Makefile9
-rw-r--r--contrib/ofed/usr.lib/2/Makefile14
-rw-r--r--contrib/ofed/usr.lib/3/Makefile10
-rw-r--r--contrib/ofed/usr.lib/Makefile8
59 files changed, 0 insertions, 1056 deletions
diff --git a/contrib/ofed/Makefile b/contrib/ofed/Makefile
deleted file mode 100644
index f7a1d5508718..000000000000
--- a/contrib/ofed/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-# $FreeBSD$
-
-# NOTE: Make sure WITH_OFED=YES is set when building this top-level directory.
-
-SUBDIR= \
-include \
-usr.lib \
-usr.bin
-
-.include <bsd.subdir.mk>
diff --git a/contrib/ofed/include/Makefile b/contrib/ofed/include/Makefile
deleted file mode 100644
index 2941a11829bf..000000000000
--- a/contrib/ofed/include/Makefile
+++ /dev/null
@@ -1,191 +0,0 @@
-# $FreeBSD$
-
-IBVERBS= ${.CURDIR}/../libibverbs
-IBMAD= ${.CURDIR}/../libibmad
-IBUMAD= ${.CURDIR}/../libibumad
-IBCM= ${.CURDIR}/../libibcm
-IBND= ${.CURDIR}/../libibnetdisc
-RDMACM= ${.CURDIR}/../librdmacm
-RDMA= ${.CURDIR}/../../../sys/ofed/include/uapi/rdma
-OSM= ${.CURDIR}/../opensm/include
-
-IBINCS= \
-byteorder.h \
-byteswap.h \
-endian.h \
-types.h \
-udma_barrier.h \
-${IBVERBS}/arch.h \
-${IBVERBS}/driver.h \
-${IBVERBS}/kern-abi.h \
-${IBVERBS}/marshall.h \
-${IBVERBS}/opcode.h \
-${IBVERBS}/sa-kern-abi.h \
-${IBVERBS}/sa.h \
-${IBVERBS}/verbs.h \
-${IBUMAD}/umad.h \
-${IBUMAD}/umad_cm.h \
-${IBUMAD}/umad_sa.h \
-${IBUMAD}/umad_sm.h \
-${IBUMAD}/umad_str.h \
-${IBUMAD}/umad_types.h \
-${IBMAD}/mad.h \
-${IBMAD}/mad_osd.h \
-${IBCM}/cm.h \
-${IBCM}/cm_abi.h \
-${IBND}/ibnetdisc.h \
-${IBND}/ibnetdisc_osd.h \
-${RDMACM}/ib.h
-IBINCSDIR= ${INCLUDEDIR}/infiniband
-
-RDMAINCS= \
-${RDMACM}/rdma_cma.h \
-${RDMACM}/rdma_cma_abi.h \
-${RDMACM}/rdma_verbs.h \
-${RDMACM}/rsocket.h \
-${RDMA}/ib_user_cm.h \
-${RDMA}/ib_user_sa.h \
-${RDMA}/ib_user_verbs.h \
-${RDMA}/rdma_user_cm.h \
-${RDMA}/mlx4-abi.h \
-${RDMA}/mlx5-abi.h
-RDMAINCSDIR= ${INCLUDEDIR}/rdma
-
-COMPINCS= \
-${OSM}/complib/cl_atomic.h \
-${OSM}/complib/cl_atomic_osd.h \
-${OSM}/complib/cl_byteswap.h \
-${OSM}/complib/cl_byteswap_osd.h \
-${OSM}/complib/cl_comppool.h \
-${OSM}/complib/cl_debug.h \
-${OSM}/complib/cl_debug_osd.h \
-${OSM}/complib/cl_dispatcher.h \
-${OSM}/complib/cl_event.h \
-${OSM}/complib/cl_event_osd.h \
-${OSM}/complib/cl_event_wheel.h \
-${OSM}/complib/cl_fleximap.h \
-${OSM}/complib/cl_list.h \
-${OSM}/complib/cl_log.h \
-${OSM}/complib/cl_map.h \
-${OSM}/complib/cl_math.h \
-${OSM}/complib/cl_nodenamemap.h \
-${OSM}/complib/cl_packoff.h \
-${OSM}/complib/cl_packon.h \
-${OSM}/complib/cl_passivelock.h \
-${OSM}/complib/cl_pool.h \
-${OSM}/complib/cl_ptr_vector.h \
-${OSM}/complib/cl_qcomppool.h \
-${OSM}/complib/cl_qlist.h \
-${OSM}/complib/cl_qmap.h \
-${OSM}/complib/cl_qpool.h \
-${OSM}/complib/cl_spinlock.h \
-${OSM}/complib/cl_spinlock_osd.h \
-${OSM}/complib/cl_thread.h \
-${OSM}/complib/cl_thread_osd.h \
-${OSM}/complib/cl_threadpool.h \
-${OSM}/complib/cl_timer.h \
-${OSM}/complib/cl_timer_osd.h \
-${OSM}/complib/cl_types.h \
-${OSM}/complib/cl_types_osd.h \
-${OSM}/complib/cl_vector.h
-COMPINCSDIR= ${INCLUDEDIR}/infiniband/complib
-
-OSMINCS= \
-${OSM}/opensm/osm_attrib_req.h \
-${OSM}/opensm/osm_base.h \
-${OSM}/opensm/osm_config.h \
-${OSM}/opensm/osm_congestion_control.h \
-${OSM}/opensm/osm_console.h \
-${OSM}/opensm/osm_console_io.h \
-${OSM}/opensm/osm_db.h \
-${OSM}/opensm/osm_db_pack.h \
-${OSM}/opensm/osm_errors.h \
-${OSM}/opensm/osm_event_plugin.h \
-${OSM}/opensm/osm_file_ids.h \
-${OSM}/opensm/osm_guid.h \
-${OSM}/opensm/osm_helper.h \
-${OSM}/opensm/osm_inform.h \
-${OSM}/opensm/osm_lid_mgr.h \
-${OSM}/opensm/osm_log.h \
-${OSM}/opensm/osm_mad_pool.h \
-${OSM}/opensm/osm_madw.h \
-${OSM}/opensm/osm_mcast_mgr.h \
-${OSM}/opensm/osm_mcast_tbl.h \
-${OSM}/opensm/osm_mcm_port.h \
-${OSM}/opensm/osm_mesh.h \
-${OSM}/opensm/osm_msgdef.h \
-${OSM}/opensm/osm_mtree.h \
-${OSM}/opensm/osm_multicast.h \
-${OSM}/opensm/osm_node.h \
-${OSM}/opensm/osm_opensm.h \
-${OSM}/opensm/osm_partition.h \
-${OSM}/opensm/osm_path.h \
-${OSM}/opensm/osm_perfmgr.h \
-${OSM}/opensm/osm_perfmgr_db.h \
-${OSM}/opensm/osm_pkey.h \
-${OSM}/opensm/osm_port.h \
-${OSM}/opensm/osm_port_profile.h \
-${OSM}/opensm/osm_prefix_route.h \
-${OSM}/opensm/osm_qos_policy.h \
-${OSM}/opensm/osm_remote_sm.h \
-${OSM}/opensm/osm_router.h \
-${OSM}/opensm/osm_sa.h \
-${OSM}/opensm/osm_sa_mad_ctrl.h \
-${OSM}/opensm/osm_service.h \
-${OSM}/opensm/osm_sm.h \
-${OSM}/opensm/osm_sm_mad_ctrl.h \
-${OSM}/opensm/osm_stats.h \
-${OSM}/opensm/osm_subnet.h \
-${OSM}/opensm/osm_switch.h \
-${OSM}/opensm/osm_ucast_cache.h \
-${OSM}/opensm/osm_ucast_lash.h \
-${OSM}/opensm/osm_ucast_mgr.h \
-${OSM}/opensm/osm_version.h \
-${OSM}/opensm/osm_vl15intf.h \
-${OSM}/opensm/st.h
-OSMINCSDIR= ${INCLUDEDIR}/infiniband/opensm
-
-IBAINCS= \
-${OSM}/iba/ib_cm_types.h \
-${OSM}/iba/ib_types.h
-IBAINCSDIR= ${INCLUDEDIR}/infiniband/iba
-
-VENDORINCS= \
-${OSM}/vendor/osm_mtl_bind.h \
-${OSM}/vendor/osm_pkt_randomizer.h \
-${OSM}/vendor/osm_ts_useraccess.h \
-${OSM}/vendor/osm_umadt.h \
-${OSM}/vendor/osm_vendor.h \
-${OSM}/vendor/osm_vendor_al.h \
-${OSM}/vendor/osm_vendor_api.h \
-${OSM}/vendor/osm_vendor_ibumad.h \
-${OSM}/vendor/osm_vendor_mlx.h \
-${OSM}/vendor/osm_vendor_mlx_defs.h \
-${OSM}/vendor/osm_vendor_mlx_dispatcher.h \
-${OSM}/vendor/osm_vendor_mlx_hca.h \
-${OSM}/vendor/osm_vendor_mlx_inout.h \
-${OSM}/vendor/osm_vendor_mlx_rmpp_ctx.h \
-${OSM}/vendor/osm_vendor_mlx_sar.h \
-${OSM}/vendor/osm_vendor_mlx_sender.h \
-${OSM}/vendor/osm_vendor_mlx_svc.h \
-${OSM}/vendor/osm_vendor_mlx_transport.h \
-${OSM}/vendor/osm_vendor_mlx_transport_anafa.h \
-${OSM}/vendor/osm_vendor_mlx_txn.h \
-${OSM}/vendor/osm_vendor_mtl.h \
-${OSM}/vendor/osm_vendor_mtl_hca_guid.h \
-${OSM}/vendor/osm_vendor_mtl_transaction_mgr.h \
-${OSM}/vendor/osm_vendor_sa_api.h \
-${OSM}/vendor/osm_vendor_test.h \
-${OSM}/vendor/osm_vendor_ts.h \
-${OSM}/vendor/osm_vendor_umadt.h
-VENDORINCSDIR= ${INCLUDEDIR}/infiniband/vendor
-
-INCSGROUPS= \
-IBINCS \
-RDMAINCS \
-COMPINCS \
-OSMINCS \
-IBAINCS \
-VENDORINCS
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/Makefile b/contrib/ofed/infiniband-diags/build/Makefile
deleted file mode 100644
index 8ad5f3bea7cc..000000000000
--- a/contrib/ofed/infiniband-diags/build/Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
-# $FreeBSD$
-
-SUBDIR= \
-dump_fts \
-ibaddr \
-ibcacheedit \
-ibccconfig \
-ibccquery \
-iblinkinfo \
-ibmirror \
-ibnetdiscover \
-ibping \
-ibportstate \
-ibqueryerrors \
-ibroute \
-ibstat \
-ibsysstat \
-ibtracert \
-perfquery \
-saquery \
-sminfo \
-smpdump \
-smpquery \
-vendstat
-
-SUBDIR_PARALLEL=
-
-.include <bsd.subdir.mk>
-
diff --git a/contrib/ofed/infiniband-diags/build/Makefile.inc b/contrib/ofed/infiniband-diags/build/Makefile.inc
deleted file mode 100644
index 54b6d80cb637..000000000000
--- a/contrib/ofed/infiniband-diags/build/Makefile.inc
+++ /dev/null
@@ -1,12 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}/../../src ${.CURDIR}/../../man
-
-BINDIR?= /usr/bin
-SRCS+= ibdiag_common.c ibdiag_sa.c
-CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
-CFLAGS+= -DHAVE_CONFIG_H=1
-CFLAGS+= -I${.CURDIR}/../../
-CFLAGS+= -I${.CURDIR}/../../src
-LIBADD+= osmcomp ibmad ibumad
-
diff --git a/contrib/ofed/infiniband-diags/build/dump_fts/Makefile b/contrib/ofed/infiniband-diags/build/dump_fts/Makefile
deleted file mode 100644
index 93f09e5153d2..000000000000
--- a/contrib/ofed/infiniband-diags/build/dump_fts/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-
-PROG= dump_fts
-SRCS= dump_fts.c
-LIBADD= ibnetdisc
-MAN= dump_fts.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibaddr/Makefile b/contrib/ofed/infiniband-diags/build/ibaddr/Makefile
deleted file mode 100644
index 7aab4c2e310d..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibaddr/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibaddr
-SRCS= ibaddr.c
-MAN= ibaddr.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibcacheedit/Makefile b/contrib/ofed/infiniband-diags/build/ibcacheedit/Makefile
deleted file mode 100644
index 67225afd79cd..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibcacheedit/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-
-PROG= ibcacheedit
-SRCS= ibcacheedit.c
-LIBADD= ibnetdisc
-MAN= ibcacheedit.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibccconfig/Makefile b/contrib/ofed/infiniband-diags/build/ibccconfig/Makefile
deleted file mode 100644
index cfee9bf0eab8..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibccconfig/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibccconfig
-SRCS= ibccconfig.c
-MAN= ibccconfig.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibccquery/Makefile b/contrib/ofed/infiniband-diags/build/ibccquery/Makefile
deleted file mode 100644
index 7d278b1978da..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibccquery/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibccquery
-SRCS= ibccquery.c
-MAN= ibccquery.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/iblinkinfo/Makefile b/contrib/ofed/infiniband-diags/build/iblinkinfo/Makefile
deleted file mode 100644
index 49a0482bb0c3..000000000000
--- a/contrib/ofed/infiniband-diags/build/iblinkinfo/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-
-PROG= iblinkinfo
-SRCS= iblinkinfo.c
-LIBADD= ibnetdisc
-MAN= iblinkinfo.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibmirror/Makefile b/contrib/ofed/infiniband-diags/build/ibmirror/Makefile
deleted file mode 100644
index 4684c2058855..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibmirror/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibmirror
-SRCS= ibmirror.c
-MAN=
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibnetdiscover/Makefile b/contrib/ofed/infiniband-diags/build/ibnetdiscover/Makefile
deleted file mode 100644
index 34090be9fae8..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibnetdiscover/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-
-PROG= ibnetdiscover
-SRCS= ibnetdiscover.c
-LIBADD= ibnetdisc
-MAN= ibnetdiscover.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibping/Makefile b/contrib/ofed/infiniband-diags/build/ibping/Makefile
deleted file mode 100644
index e573f780153a..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibping/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibping
-SRCS= ibping.c
-MAN= ibping.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibportstate/Makefile b/contrib/ofed/infiniband-diags/build/ibportstate/Makefile
deleted file mode 100644
index 98dc34ca5fe7..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibportstate/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibportstate
-SRCS= ibportstate.c
-MAN= ibportstate.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibqueryerrors/Makefile b/contrib/ofed/infiniband-diags/build/ibqueryerrors/Makefile
deleted file mode 100644
index c4be267f4362..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibqueryerrors/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-
-PROG= ibqueryerrors
-SRCS= ibqueryerrors.c
-LIBADD= ibnetdisc
-MAN= ibqueryerrors.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibroute/Makefile b/contrib/ofed/infiniband-diags/build/ibroute/Makefile
deleted file mode 100644
index 1914fca8abe1..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibroute/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibroute
-SRCS= ibroute.c
-MAN= ibroute.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibstat/Makefile b/contrib/ofed/infiniband-diags/build/ibstat/Makefile
deleted file mode 100644
index 812cd03d623b..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibstat/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibstat
-SRCS= ibstat.c
-MAN= ibstat.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibsysstat/Makefile b/contrib/ofed/infiniband-diags/build/ibsysstat/Makefile
deleted file mode 100644
index b2f0ab7698e7..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibsysstat/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibsysstat
-SRCS= ibsysstat.c
-MAN= ibsysstat.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/ibtracert/Makefile b/contrib/ofed/infiniband-diags/build/ibtracert/Makefile
deleted file mode 100644
index ea6d66a5dde5..000000000000
--- a/contrib/ofed/infiniband-diags/build/ibtracert/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= ibtracert
-SRCS= ibtracert.c
-MAN= ibtracert.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/perfquery/Makefile b/contrib/ofed/infiniband-diags/build/perfquery/Makefile
deleted file mode 100644
index 3b4cb536717f..000000000000
--- a/contrib/ofed/infiniband-diags/build/perfquery/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= perfquery
-SRCS= perfquery.c
-MAN= perfquery.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/saquery/Makefile b/contrib/ofed/infiniband-diags/build/saquery/Makefile
deleted file mode 100644
index f330cd3c5046..000000000000
--- a/contrib/ofed/infiniband-diags/build/saquery/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= saquery
-SRCS= saquery.c
-MAN= saquery.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/sminfo/Makefile b/contrib/ofed/infiniband-diags/build/sminfo/Makefile
deleted file mode 100644
index b83d759668f3..000000000000
--- a/contrib/ofed/infiniband-diags/build/sminfo/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= sminfo
-SRCS= sminfo.c
-MAN= sminfo.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/smpdump/Makefile b/contrib/ofed/infiniband-diags/build/smpdump/Makefile
deleted file mode 100644
index ae1c680e2443..000000000000
--- a/contrib/ofed/infiniband-diags/build/smpdump/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= smpdump
-SRCS= smpdump.c
-MAN= smpdump.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/smpquery/Makefile b/contrib/ofed/infiniband-diags/build/smpquery/Makefile
deleted file mode 100644
index 4654ce400d44..000000000000
--- a/contrib/ofed/infiniband-diags/build/smpquery/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= smpquery
-SRCS= smpquery.c
-MAN= smpquery.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/infiniband-diags/build/vendstat/Makefile b/contrib/ofed/infiniband-diags/build/vendstat/Makefile
deleted file mode 100644
index b548537bff8d..000000000000
--- a/contrib/ofed/infiniband-diags/build/vendstat/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-PROG= vendstat
-SRCS= vendstat.c
-MAN= vendstat.8
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/libcxgb4/Makefile b/contrib/ofed/libcxgb4/Makefile
deleted file mode 100644
index 98196ea3a4ba..000000000000
--- a/contrib/ofed/libcxgb4/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}
-
-SHLIBDIR?= /usr/lib
-LIB= cxgb4
-SHLIB_MAJOR= 1
-MK_PROFILE= no
-
-SRCS= \
-cq.c \
-dev.c \
-qp.c \
-verbs.c
-
-LIBADD= ibverbs pthread
-CFLAGS+= -I${.CURDIR}
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/libibcm/Makefile b/contrib/ofed/libibcm/Makefile
deleted file mode 100644
index c40e8202987a..000000000000
--- a/contrib/ofed/libibcm/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}
-
-SHLIBDIR?= /usr/lib
-LIB= ibcm
-SHLIB_MAJOR= 1
-MK_PROFILE= no
-SRCS= cm.c
-LIBADD= ibverbs
-CFLAGS+= -I${.CURDIR}
-MAN=
-VERSION_MAP= ${.CURDIR}/libibcm.map
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/libibmad/Makefile b/contrib/ofed/libibmad/Makefile
deleted file mode 100644
index ceef5ebc207b..000000000000
--- a/contrib/ofed/libibmad/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}
-
-SHLIBDIR?= /usr/lib
-LIB= ibmad
-SHLIB_MAJOR= 5
-MK_PROFILE= no
-
-SRCS= \
-bm.c \
-cc.c \
-dump.c \
-fields.c \
-gs.c \
-mad.c \
-portid.c \
-register.c \
-resolve.c \
-rpc.c \
-sa.c \
-serv.c \
-smp.c \
-vendor.c
-
-LIBADD= ibumad
-CFLAGS+= -DHAVE_CONFIG_H=1
-CFLAGS+= -I${.CURDIR}
-VERSION_MAP= ${.CURDIR}/libibmad.map
-
-.include <bsd.lib.mk>
-
diff --git a/contrib/ofed/libibnetdisc/Makefile b/contrib/ofed/libibnetdisc/Makefile
deleted file mode 100644
index 5bd622de3394..000000000000
--- a/contrib/ofed/libibnetdisc/Makefile
+++ /dev/null
@@ -1,38 +0,0 @@
-# $FreeBSD$
-
-.include <src.opts.mk>
-
-.PATH: ${.CURDIR} ${.CURDIR}/man
-
-SHLIBDIR?= /usr/lib
-LIB_CXX= ibnetdisc
-SHLIB_MAJOR= 5
-MK_PROFILE= no
-
-SRCS= \
-chassis.c \
-g_hash_table.cpp \
-ibnetdisc.c \
-ibnetdisc_cache.c \
-query_smp.c
-
-MAN= \
-ibnd_debug.3 \
-ibnd_destroy_fabric.3 \
-ibnd_discover_fabric.3 \
-ibnd_find_node_dr.3 \
-ibnd_find_node_guid.3 \
-ibnd_iter_nodes.3 \
-ibnd_iter_nodes_type.3 \
-ibnd_show_progress.3
-
-LIBADD= osmcomp ibmad ibumad
-CFLAGS+= -DHAVE_CONFIG_H=1
-CFLAGS+= -I${.CURDIR}
-CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
-.if ${COMPILER_FEATURES:Mc++11}
-CXXFLAGS+= -std=c++11
-.endif
-VERSION_MAP= ${.CURDIR}/libibnetdisc.map
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/libibumad/Makefile b/contrib/ofed/libibumad/Makefile
deleted file mode 100644
index af7ac3f97557..000000000000
--- a/contrib/ofed/libibumad/Makefile
+++ /dev/null
@@ -1,16 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}
-
-SHLIBDIR?= /usr/lib
-LIB= ibumad
-SHLIB_MAJOR= 1
-MK_PROFILE= no
-SRCS= \
-umad.c \
-umad_str.c \
-sysfs.c
-CFLAGS+= -I${.CURDIR}
-VERSION_MAP= ${.CURDIR}/libibumad.map
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/libibverbs/Makefile b/contrib/ofed/libibverbs/Makefile
deleted file mode 100644
index 846bad02fbfc..000000000000
--- a/contrib/ofed/libibverbs/Makefile
+++ /dev/null
@@ -1,75 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR} ${.CURDIR}/man
-
-LIB= ibverbs
-SHLIB_MAJOR= 1
-SHLIBDIR?= /usr/lib
-MK_PROFILE= no
-VERSION_MAP= ${.CURDIR}/libibverbs.map
-
-CFLAGS+= -I${.CURDIR}
-
-SRCS= \
-cmd.c \
-compat-1_0.c \
-device.c \
-enum_strs.c \
-init.c \
-marshall.c \
-memory.c \
-sysfs.c \
-verbs.c
-
-MAN= \
-ibv_alloc_mw.3 \
-ibv_alloc_pd.3 \
-ibv_attach_mcast.3 \
-ibv_bind_mw.3 \
-ibv_create_ah.3 \
-ibv_create_ah_from_wc.3 \
-ibv_create_comp_channel.3 \
-ibv_create_cq.3 \
-ibv_create_cq_ex.3 \
-ibv_create_flow.3 \
-ibv_create_qp.3 \
-ibv_create_qp_ex.3 \
-ibv_create_rwq_ind_table.3 \
-ibv_create_srq.3 \
-ibv_create_srq_ex.3 \
-ibv_create_wq.3 \
-ibv_event_type_str.3 \
-ibv_fork_init.3 \
-ibv_get_async_event.3 \
-ibv_get_cq_event.3 \
-ibv_get_device_guid.3 \
-ibv_get_device_list.3 \
-ibv_get_device_name.3 \
-ibv_get_srq_num.3 \
-ibv_inc_rkey.3 \
-ibv_modify_qp.3 \
-ibv_modify_srq.3 \
-ibv_modify_wq.3 \
-ibv_open_device.3 \
-ibv_open_qp.3 \
-ibv_open_xrcd.3 \
-ibv_poll_cq.3 \
-ibv_post_recv.3 \
-ibv_post_send.3 \
-ibv_post_srq_recv.3 \
-ibv_query_device.3 \
-ibv_query_device_ex.3 \
-ibv_query_gid.3 \
-ibv_query_pkey.3 \
-ibv_query_port.3 \
-ibv_query_qp.3 \
-ibv_query_rt_values_ex.3 \
-ibv_query_srq.3 \
-ibv_rate_to_mbps.3 \
-ibv_rate_to_mult.3 \
-ibv_reg_mr.3 \
-ibv_req_notify_cq.3 \
-ibv_rereg_mr.3 \
-ibv_resize_cq.3
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/libibverbs/examples/build/Makefile b/contrib/ofed/libibverbs/examples/build/Makefile
deleted file mode 100644
index b2b8ebe54d20..000000000000
--- a/contrib/ofed/libibverbs/examples/build/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-SUBDIR= \
-asyncwatch \
-devinfo \
-devices \
-rc_pingpong \
-srq_pingpong \
-uc_pingpong \
-ud_pingpong
-
-.include <bsd.subdir.mk>
diff --git a/contrib/ofed/libibverbs/examples/build/Makefile.inc b/contrib/ofed/libibverbs/examples/build/Makefile.inc
deleted file mode 100644
index 6c285e06aca9..000000000000
--- a/contrib/ofed/libibverbs/examples/build/Makefile.inc
+++ /dev/null
@@ -1,4 +0,0 @@
-BINDIR?= /usr/bin
-CFLAGS+= -I${.CURDIR}/../../..
-LDFLAGS+= -libverbs -lmlx4 -lmlx5 -lcxgb4 -lpthread
-
diff --git a/contrib/ofed/libibverbs/examples/build/asyncwatch/Makefile b/contrib/ofed/libibverbs/examples/build/asyncwatch/Makefile
deleted file mode 100644
index cf3eb15bde1f..000000000000
--- a/contrib/ofed/libibverbs/examples/build/asyncwatch/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= ibv_asyncwatch
-MAN= ibv_asyncwatch.1
-SRCS= asyncwatch.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/libibverbs/examples/build/devices/Makefile b/contrib/ofed/libibverbs/examples/build/devices/Makefile
deleted file mode 100644
index 9c981d33a546..000000000000
--- a/contrib/ofed/libibverbs/examples/build/devices/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= ibv_devices
-MAN= ibv_devices.1
-SRCS= device_list.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/libibverbs/examples/build/devinfo/Makefile b/contrib/ofed/libibverbs/examples/build/devinfo/Makefile
deleted file mode 100644
index 8ecd9c745a26..000000000000
--- a/contrib/ofed/libibverbs/examples/build/devinfo/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= ibv_devinfo
-MAN= ibv_devinfo.1
-SRCS= devinfo.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/libibverbs/examples/build/rc_pingpong/Makefile b/contrib/ofed/libibverbs/examples/build/rc_pingpong/Makefile
deleted file mode 100644
index 2abc22bdf94f..000000000000
--- a/contrib/ofed/libibverbs/examples/build/rc_pingpong/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= ibv_rc_pingpong
-MAN= ibv_rc_pingpong.1
-SRCS= rc_pingpong.c pingpong.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/libibverbs/examples/build/srq_pingpong/Makefile b/contrib/ofed/libibverbs/examples/build/srq_pingpong/Makefile
deleted file mode 100644
index 460ec9a6cd20..000000000000
--- a/contrib/ofed/libibverbs/examples/build/srq_pingpong/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= ibv_srq_pingpong
-MAN= ibv_srq_pingpong.1
-SRCS= srq_pingpong.c pingpong.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/libibverbs/examples/build/uc_pingpong/Makefile b/contrib/ofed/libibverbs/examples/build/uc_pingpong/Makefile
deleted file mode 100644
index 8e4b61758db8..000000000000
--- a/contrib/ofed/libibverbs/examples/build/uc_pingpong/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= ibv_uc_pingpong
-MAN= ibv_uc_pingpong.1
-SRCS= uc_pingpong.c pingpong.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/libibverbs/examples/build/ud_pingpong/Makefile b/contrib/ofed/libibverbs/examples/build/ud_pingpong/Makefile
deleted file mode 100644
index f2f967acecf0..000000000000
--- a/contrib/ofed/libibverbs/examples/build/ud_pingpong/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= ibv_ud_pingpong
-MAN= ibv_ud_pingpong.1
-SRCS= ud_pingpong.c pingpong.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/libmlx4/Makefile b/contrib/ofed/libmlx4/Makefile
deleted file mode 100644
index d460cc2b6709..000000000000
--- a/contrib/ofed/libmlx4/Makefile
+++ /dev/null
@@ -1,22 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}
-
-SHLIBDIR?= /usr/lib
-LIB= mlx4
-SHLIB_MAJOR= 1
-MK_PROFILE= no
-
-SRCS= \
-buf.c \
-cq.c \
-dbrec.c \
-mlx4.c \
-qp.c \
-srq.c \
-verbs.c
-
-LIBADD= ibverbs pthread
-CFLAGS+= -I${.CURDIR}
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/libmlx5/Makefile b/contrib/ofed/libmlx5/Makefile
deleted file mode 100644
index 5e54172ca49b..000000000000
--- a/contrib/ofed/libmlx5/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}
-
-SHLIBDIR?= /usr/lib
-LIB= mlx5
-SHLIB_MAJOR= 1
-MK_PROFILE= no
-
-SRCS= \
-buf.c \
-cq.c \
-dbrec.c \
-mlx5.c \
-qp.c \
-srq.c \
-verbs.c
-
-LIBADD= ibverbs pthread
-CFLAGS+= -I${.CURDIR}
-VERSION_MAP= ${.CURDIR}/libmlx5.map
-
-.include <bsd.lib.mk>
-
diff --git a/contrib/ofed/librdmacm/Makefile b/contrib/ofed/librdmacm/Makefile
deleted file mode 100644
index 593315dd6118..000000000000
--- a/contrib/ofed/librdmacm/Makefile
+++ /dev/null
@@ -1,71 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR} ${.CURDIR}/man
-
-SHLIBDIR?= /usr/lib
-LIB= rdmacm
-SHLIB_MAJOR= 1
-MK_PROFILE= no
-CFLAGS+= -I${.CURDIR}
-
-SRCS= \
-acm.c \
-addrinfo.c \
-cma.c \
-indexer.c
-
-MAN= \
-rdma_accept.3 \
-rdma_ack_cm_event.3 \
-rdma_bind_addr.3 \
-rdma_connect.3 \
-rdma_create_ep.3 \
-rdma_create_event_channel.3 \
-rdma_create_id.3 \
-rdma_create_qp.3 \
-rdma_create_srq.3 \
-rdma_dereg_mr.3 \
-rdma_destroy_ep.3 \
-rdma_destroy_event_channel.3 \
-rdma_destroy_id.3 \
-rdma_destroy_qp.3 \
-rdma_destroy_srq.3 \
-rdma_disconnect.3 \
-rdma_event_str.3 \
-rdma_free_devices.3 \
-rdma_get_cm_event.3 \
-rdma_get_devices.3 \
-rdma_get_dst_port.3 \
-rdma_get_local_addr.3 \
-rdma_get_peer_addr.3 \
-rdma_get_recv_comp.3 \
-rdma_get_request.3 \
-rdma_get_send_comp.3 \
-rdma_get_src_port.3 \
-rdma_getaddrinfo.3 \
-rdma_join_multicast.3 \
-rdma_leave_multicast.3 \
-rdma_listen.3 \
-rdma_migrate_id.3 \
-rdma_notify.3 \
-rdma_post_read.3 \
-rdma_post_readv.3 \
-rdma_post_recv.3 \
-rdma_post_recvv.3 \
-rdma_post_send.3 \
-rdma_post_sendv.3 \
-rdma_post_ud_send.3 \
-rdma_post_write.3 \
-rdma_post_writev.3 \
-rdma_reg_msgs.3 \
-rdma_reg_read.3 \
-rdma_reg_write.3 \
-rdma_reject.3 \
-rdma_resolve_addr.3 \
-rdma_resolve_route.3 \
-rdma_set_option.3
-
-LIBADD= ibverbs
-VERSION_MAP= ${.CURDIR}/librdmacm.map
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/librdmacm/examples/build/Makefile b/contrib/ofed/librdmacm/examples/build/Makefile
deleted file mode 100644
index c45d40e479f6..000000000000
--- a/contrib/ofed/librdmacm/examples/build/Makefile
+++ /dev/null
@@ -1,7 +0,0 @@
-# $FreeBSD$
-
-SUBDIR= ucmatose mckey rping udaddy
-
-SUBDIR_PARALLEL=
-
-.include <bsd.subdir.mk>
diff --git a/contrib/ofed/librdmacm/examples/build/Makefile.inc b/contrib/ofed/librdmacm/examples/build/Makefile.inc
deleted file mode 100644
index 43b972b8f93c..000000000000
--- a/contrib/ofed/librdmacm/examples/build/Makefile.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-BINDIR?= /usr/bin
-CFLAGS+= -I${.CURDIR}/../../..
-LDFLAGS+= -libverbs -lrdmacm -lmlx4 -lmlx5 -lcxgb4 -lpthread
diff --git a/contrib/ofed/librdmacm/examples/build/mckey/Makefile b/contrib/ofed/librdmacm/examples/build/mckey/Makefile
deleted file mode 100644
index 17f3b5739912..000000000000
--- a/contrib/ofed/librdmacm/examples/build/mckey/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= mckey
-MAN= mckey.1
-SRCS= mckey.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/librdmacm/examples/build/rping/Makefile b/contrib/ofed/librdmacm/examples/build/rping/Makefile
deleted file mode 100644
index 93f608ca7428..000000000000
--- a/contrib/ofed/librdmacm/examples/build/rping/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= rping
-MAN= rping.1
-SRCS= rping.c common.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/librdmacm/examples/build/ucmatose/Makefile b/contrib/ofed/librdmacm/examples/build/ucmatose/Makefile
deleted file mode 100644
index 22a88fac61e9..000000000000
--- a/contrib/ofed/librdmacm/examples/build/ucmatose/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= ucmatose
-MAN= ucmatose.1
-SRCS= cmatose.c common.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/librdmacm/examples/build/udaddy/Makefile b/contrib/ofed/librdmacm/examples/build/udaddy/Makefile
deleted file mode 100644
index 8bb39c16ddf2..000000000000
--- a/contrib/ofed/librdmacm/examples/build/udaddy/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}/../.. ${.CURDIR}/../../../man
-
-PROG= udaddy
-MAN= udaddy.1
-SRCS= udaddy.c common.c
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/opensm/complib/Makefile b/contrib/ofed/opensm/complib/Makefile
deleted file mode 100644
index f3005ff928a4..000000000000
--- a/contrib/ofed/opensm/complib/Makefile
+++ /dev/null
@@ -1,34 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}
-
-SHLIBDIR?= /usr/lib
-LIB= osmcomp
-SHLIB_MAJOR= 3
-MK_PROFILE= no
-
-SRCS= \
-cl_complib.c \
-cl_dispatcher.c \
-cl_event.c \
-cl_event_wheel.c \
-cl_list.c \
-cl_log.c \
-cl_map.c \
-cl_nodenamemap.c \
-cl_pool.c \
-cl_ptr_vector.c \
-cl_spinlock.c \
-cl_statustext.c \
-cl_thread.c \
-cl_threadpool.c \
-cl_timer.c \
-cl_vector.c \
-ib_statustext.c
-
-CFLAGS+= -I${.CURDIR}/.. -DHAVE_CONFIG_H=1
-CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
-LIBADD= pthread
-VERSION_MAP= ${.CURDIR}/libosmcomp.map
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/opensm/libopensm/Makefile b/contrib/ofed/opensm/libopensm/Makefile
deleted file mode 100644
index 6e6b688b39b0..000000000000
--- a/contrib/ofed/opensm/libopensm/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}/../opensm
-
-SHLIBDIR?= /usr/lib
-LIB= opensm
-SHLIB_MAJOR= 5
-MK_PROFILE= no
-
-SRCS= \
-osm_log.c \
-osm_mad_pool.c \
-osm_helper.c
-
-LIBADD= pthread
-CFLAGS+= -I${.CURDIR}/.. -DHAVE_CONFIG_H=1
-CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
-VERSION_MAP= ${.CURDIR}/../opensm/libopensm.map
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/opensm/libvendor/Makefile b/contrib/ofed/opensm/libvendor/Makefile
deleted file mode 100644
index 9a90fac1428e..000000000000
--- a/contrib/ofed/opensm/libvendor/Makefile
+++ /dev/null
@@ -1,19 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR}
-
-SHLIBDIR?= /usr/lib
-LIB= osmvendor
-SHLIB_MAJOR= 4
-MK_PROFILE= no
-
-SRCS= \
-osm_vendor_ibumad.c \
-osm_vendor_ibumad_sa.c
-
-LIBADD= ibumad pthread
-CFLAGS+= -I${.CURDIR}/.. -DHAVE_CONFIG_H=1
-CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
-VERSION_MAP= ${.CURDIR}/libosmvendor.map
-
-.include <bsd.lib.mk>
diff --git a/contrib/ofed/opensm/opensm/Makefile b/contrib/ofed/opensm/opensm/Makefile
deleted file mode 100644
index a22d2fb65734..000000000000
--- a/contrib/ofed/opensm/opensm/Makefile
+++ /dev/null
@@ -1,101 +0,0 @@
-# $FreeBSD$
-
-.PATH: ${.CURDIR} ${.CURDIR}/../man
-
-BINDIR?= /usr/bin
-PROG= opensm
-
-SRCS= \
-main.c \
-osm_congestion_control.c \
-osm_console.c \
-osm_console_io.c \
-osm_db_files.c \
-osm_db_pack.c \
-osm_drop_mgr.c \
-osm_dump.c \
-osm_event_plugin.c \
-osm_guid_info_rcv.c \
-osm_guid_mgr.c \
-osm_inform.c \
-osm_lid_mgr.c \
-osm_lin_fwd_rcv.c \
-osm_link_mgr.c \
-osm_mcast_fwd_rcv.c \
-osm_mcast_mgr.c \
-osm_mcast_tbl.c \
-osm_mcm_port.c \
-osm_mesh.c \
-osm_mlnx_ext_port_info_rcv.c \
-osm_mtree.c \
-osm_multicast.c \
-osm_node.c \
-osm_node_desc_rcv.c \
-osm_node_info_rcv.c \
-osm_opensm.c \
-osm_perfmgr.c \
-osm_perfmgr_db.c \
-osm_pkey.c \
-osm_pkey_mgr.c \
-osm_pkey_rcv.c \
-osm_port.c \
-osm_port_info_rcv.c \
-osm_prtn.c \
-osm_prtn_config.c \
-osm_qos.c \
-osm_qos_parser_l.l \
-osm_qos_parser_y.y \
-osm_qos_policy.c \
-osm_remote_sm.c \
-osm_req.c \
-osm_resp.c \
-osm_router.c \
-osm_sa.c \
-osm_sa_class_port_info.c \
-osm_sa_guidinfo_record.c \
-osm_sa_informinfo.c \
-osm_sa_lft_record.c \
-osm_sa_link_record.c \
-osm_sa_mad_ctrl.c \
-osm_sa_mcmember_record.c \
-osm_sa_mft_record.c \
-osm_sa_multipath_record.c \
-osm_sa_node_record.c \
-osm_sa_path_record.c \
-osm_sa_pkey_record.c \
-osm_sa_portinfo_record.c \
-osm_sa_service_record.c \
-osm_sa_slvl_record.c \
-osm_sa_sminfo_record.c \
-osm_sa_sw_info_record.c \
-osm_sa_vlarb_record.c \
-osm_service.c \
-osm_slvl_map_rcv.c \
-osm_sm.c \
-osm_sm_mad_ctrl.c \
-osm_sm_state_mgr.c \
-osm_sminfo_rcv.c \
-osm_state_mgr.c \
-osm_subnet.c \
-osm_sw_info_rcv.c \
-osm_switch.c \
-osm_torus.c \
-osm_trap_rcv.c \
-osm_ucast_cache.c \
-osm_ucast_dfsssp.c \
-osm_ucast_dnup.c \
-osm_ucast_file.c \
-osm_ucast_ftree.c \
-osm_ucast_lash.c \
-osm_ucast_mgr.c \
-osm_ucast_updn.c \
-osm_vl15intf.c \
-osm_vl_arb_rcv.c \
-st.c
-
-MAN= opensm.8
-CFLAGS+= -I${.CURDIR}/.. -DHAVE_CONFIG_H=1
-CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
-LIBADD= opensm osmvendor osmcomp wrap pthread
-
-.include <bsd.prog.mk>
diff --git a/contrib/ofed/usr.bin/Makefile b/contrib/ofed/usr.bin/Makefile
deleted file mode 100644
index 105ad8213644..000000000000
--- a/contrib/ofed/usr.bin/Makefile
+++ /dev/null
@@ -1,11 +0,0 @@
-# $FreeBSD$
-
-SUBDIR= \
-../libibverbs/examples/build \
-../librdmacm/examples/build \
-../opensm/opensm \
-../infiniband-diags/build
-
-SUBDIR_PARALLEL=
-
-.include <bsd.subdir.mk>
diff --git a/contrib/ofed/usr.lib/0/Makefile b/contrib/ofed/usr.lib/0/Makefile
deleted file mode 100644
index 2f7360a32f30..000000000000
--- a/contrib/ofed/usr.lib/0/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-
-SUBDIR= \
-../../libibverbs
-
-SUBDIR_PARALLEL=
-
-.include <bsd.subdir.mk>
diff --git a/contrib/ofed/usr.lib/1/Makefile b/contrib/ofed/usr.lib/1/Makefile
deleted file mode 100644
index 3203cc96f9ba..000000000000
--- a/contrib/ofed/usr.lib/1/Makefile
+++ /dev/null
@@ -1,9 +0,0 @@
-# $FreeBSD$
-
-SUBDIR= \
-../../libibcm \
-../../libibumad
-
-SUBDIR_PARALLEL=
-
-.include <bsd.subdir.mk>
diff --git a/contrib/ofed/usr.lib/2/Makefile b/contrib/ofed/usr.lib/2/Makefile
deleted file mode 100644
index bc865b1a4991..000000000000
--- a/contrib/ofed/usr.lib/2/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-# $FreeBSD$
-
-SUBDIR= \
-../../librdmacm \
-../../libibmad \
-../../opensm/complib \
-../../opensm/libvendor \
-../../libcxgb4 \
-../../libmlx4 \
-../../libmlx5
-
-SUBDIR_PARALLEL=
-
-.include <bsd.subdir.mk>
diff --git a/contrib/ofed/usr.lib/3/Makefile b/contrib/ofed/usr.lib/3/Makefile
deleted file mode 100644
index 3356591594ae..000000000000
--- a/contrib/ofed/usr.lib/3/Makefile
+++ /dev/null
@@ -1,10 +0,0 @@
-# $FreeBSD$
-
-SUBDIR= \
-../../libibnetdisc \
-../../opensm/libopensm \
-../../../../lib/libpcap
-
-SUBDIR_PARALLEL=
-
-.include <bsd.subdir.mk>
diff --git a/contrib/ofed/usr.lib/Makefile b/contrib/ofed/usr.lib/Makefile
deleted file mode 100644
index 6481b405e323..000000000000
--- a/contrib/ofed/usr.lib/Makefile
+++ /dev/null
@@ -1,8 +0,0 @@
-# $FreeBSD$
-
-# NOTE: If building outside the buildworld target, install each subdirectory
-# before building the next one.
-
-SUBDIR=0 1 2 3
-
-.include <bsd.subdir.mk>