aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ofed
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/ofed')
-rw-r--r--usr.bin/ofed/Makefile12
-rw-r--r--usr.bin/ofed/infiniband-diags/Makefile33
-rw-r--r--usr.bin/ofed/infiniband-diags/Makefile.inc11
-rw-r--r--usr.bin/ofed/infiniband-diags/dump_fts/Makefile6
-rw-r--r--usr.bin/ofed/infiniband-diags/ibaddr/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/ibcacheedit/Makefile6
-rw-r--r--usr.bin/ofed/infiniband-diags/ibccconfig/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/ibccquery/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/iblinkinfo/Makefile6
-rw-r--r--usr.bin/ofed/infiniband-diags/ibmirror/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/ibnetdiscover/Makefile6
-rw-r--r--usr.bin/ofed/infiniband-diags/ibping/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/ibportstate/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/ibqueryerrors/Makefile6
-rw-r--r--usr.bin/ofed/infiniband-diags/ibroute/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/ibstat/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/ibsysstat/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/ibtracert/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/perfquery/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/saquery/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/sminfo/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/smpdump/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/smpquery/Makefile5
-rw-r--r--usr.bin/ofed/infiniband-diags/vendstat/Makefile5
-rw-r--r--usr.bin/ofed/libibverbs/Makefile12
-rw-r--r--usr.bin/ofed/libibverbs/Makefile.inc8
-rw-r--r--usr.bin/ofed/libibverbs/asyncwatch/Makefile6
-rw-r--r--usr.bin/ofed/libibverbs/devices/Makefile6
-rw-r--r--usr.bin/ofed/libibverbs/devinfo/Makefile6
-rw-r--r--usr.bin/ofed/libibverbs/rc_pingpong/Makefile6
-rw-r--r--usr.bin/ofed/libibverbs/srq_pingpong/Makefile6
-rw-r--r--usr.bin/ofed/libibverbs/uc_pingpong/Makefile6
-rw-r--r--usr.bin/ofed/libibverbs/ud_pingpong/Makefile6
-rw-r--r--usr.bin/ofed/librdmacm/Makefile5
-rw-r--r--usr.bin/ofed/librdmacm/Makefile.inc8
-rw-r--r--usr.bin/ofed/librdmacm/mckey/Makefile6
-rw-r--r--usr.bin/ofed/librdmacm/mckey/Makefile.depend24
-rw-r--r--usr.bin/ofed/librdmacm/rping/Makefile6
-rw-r--r--usr.bin/ofed/librdmacm/rping/Makefile.depend23
-rw-r--r--usr.bin/ofed/librdmacm/ucmatose/Makefile6
-rw-r--r--usr.bin/ofed/librdmacm/ucmatose/Makefile.depend23
-rw-r--r--usr.bin/ofed/librdmacm/udaddy/Makefile6
-rw-r--r--usr.bin/ofed/librdmacm/udaddy/Makefile.depend23
-rw-r--r--usr.bin/ofed/opensm/Makefile102
44 files changed, 460 insertions, 0 deletions
diff --git a/usr.bin/ofed/Makefile b/usr.bin/ofed/Makefile
new file mode 100644
index 000000000000..59637dbe4760
--- /dev/null
+++ b/usr.bin/ofed/Makefile
@@ -0,0 +1,12 @@
+.include <src.opts.mk>
+
+SUBDIR= \
+ libibverbs \
+ librdmacm \
+ infiniband-diags
+
+SUBDIR.${MK_OFED_EXTRA}+= opensm
+
+SUBDIR_PARALLEL=
+
+.include <bsd.subdir.mk>
diff --git a/usr.bin/ofed/infiniband-diags/Makefile b/usr.bin/ofed/infiniband-diags/Makefile
new file mode 100644
index 000000000000..c25b24d5af52
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/Makefile
@@ -0,0 +1,33 @@
+.include <src.opts.mk>
+
+SUBDIR= \
+ ibstat
+
+.if ${MK_OFED_EXTRA} != "no"
+SUBDIR+= \
+ dump_fts \
+ ibaddr \
+ ibcacheedit \
+ ibccconfig \
+ ibccquery \
+ iblinkinfo \
+ ibmirror \
+ ibnetdiscover \
+ ibping \
+ ibportstate \
+ ibqueryerrors \
+ ibroute \
+ ibsysstat \
+ ibtracert \
+ perfquery \
+ saquery \
+ sminfo \
+ smpdump \
+ smpquery \
+ vendstat
+.endif
+
+SUBDIR_PARALLEL=
+
+.include <bsd.subdir.mk>
+
diff --git a/usr.bin/ofed/infiniband-diags/Makefile.inc b/usr.bin/ofed/infiniband-diags/Makefile.inc
new file mode 100644
index 000000000000..162fdade24ca
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/Makefile.inc
@@ -0,0 +1,11 @@
+_spath= ${SRCTOP}/contrib/ofed/infiniband-diags
+.PATH: ${_spath}/src ${_spath}/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${_spath} -I${_spath}/src
+LIBADD+= osmcomp ibmad ibumad
+
+WARNS?= 0
diff --git a/usr.bin/ofed/infiniband-diags/dump_fts/Makefile b/usr.bin/ofed/infiniband-diags/dump_fts/Makefile
new file mode 100644
index 000000000000..a08caaa10319
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/dump_fts/Makefile
@@ -0,0 +1,6 @@
+PROG= dump_fts
+SRCS= dump_fts.c
+LIBADD= ibnetdisc
+MAN= dump_fts.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibaddr/Makefile b/usr.bin/ofed/infiniband-diags/ibaddr/Makefile
new file mode 100644
index 000000000000..5e797f4c0d68
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibaddr/Makefile
@@ -0,0 +1,5 @@
+PROG= ibaddr
+SRCS= ibaddr.c
+MAN= ibaddr.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibcacheedit/Makefile b/usr.bin/ofed/infiniband-diags/ibcacheedit/Makefile
new file mode 100644
index 000000000000..87fc509f71aa
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibcacheedit/Makefile
@@ -0,0 +1,6 @@
+PROG= ibcacheedit
+SRCS= ibcacheedit.c
+LIBADD= ibnetdisc
+MAN= ibcacheedit.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibccconfig/Makefile b/usr.bin/ofed/infiniband-diags/ibccconfig/Makefile
new file mode 100644
index 000000000000..0b53a27583fb
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibccconfig/Makefile
@@ -0,0 +1,5 @@
+PROG= ibccconfig
+SRCS= ibccconfig.c
+MAN= ibccconfig.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibccquery/Makefile b/usr.bin/ofed/infiniband-diags/ibccquery/Makefile
new file mode 100644
index 000000000000..90ab8bc77777
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibccquery/Makefile
@@ -0,0 +1,5 @@
+PROG= ibccquery
+SRCS= ibccquery.c
+MAN= ibccquery.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/iblinkinfo/Makefile b/usr.bin/ofed/infiniband-diags/iblinkinfo/Makefile
new file mode 100644
index 000000000000..1075e6ae37ce
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/iblinkinfo/Makefile
@@ -0,0 +1,6 @@
+PROG= iblinkinfo
+SRCS= iblinkinfo.c
+LIBADD= ibnetdisc
+MAN= iblinkinfo.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibmirror/Makefile b/usr.bin/ofed/infiniband-diags/ibmirror/Makefile
new file mode 100644
index 000000000000..bf960827c56f
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibmirror/Makefile
@@ -0,0 +1,5 @@
+PROG= ibmirror
+SRCS= ibmirror.c
+MAN=
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibnetdiscover/Makefile b/usr.bin/ofed/infiniband-diags/ibnetdiscover/Makefile
new file mode 100644
index 000000000000..cbb515883c27
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibnetdiscover/Makefile
@@ -0,0 +1,6 @@
+PROG= ibnetdiscover
+SRCS= ibnetdiscover.c
+LIBADD= ibnetdisc
+MAN= ibnetdiscover.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibping/Makefile b/usr.bin/ofed/infiniband-diags/ibping/Makefile
new file mode 100644
index 000000000000..15a645ad0752
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibping/Makefile
@@ -0,0 +1,5 @@
+PROG= ibping
+SRCS= ibping.c
+MAN= ibping.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibportstate/Makefile b/usr.bin/ofed/infiniband-diags/ibportstate/Makefile
new file mode 100644
index 000000000000..65a67dfd4880
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibportstate/Makefile
@@ -0,0 +1,5 @@
+PROG= ibportstate
+SRCS= ibportstate.c
+MAN= ibportstate.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibqueryerrors/Makefile b/usr.bin/ofed/infiniband-diags/ibqueryerrors/Makefile
new file mode 100644
index 000000000000..a0526b46e8f5
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibqueryerrors/Makefile
@@ -0,0 +1,6 @@
+PROG= ibqueryerrors
+SRCS= ibqueryerrors.c
+LIBADD= ibnetdisc
+MAN= ibqueryerrors.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibroute/Makefile b/usr.bin/ofed/infiniband-diags/ibroute/Makefile
new file mode 100644
index 000000000000..03cea57b8e5e
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibroute/Makefile
@@ -0,0 +1,5 @@
+PROG= ibroute
+SRCS= ibroute.c
+MAN= ibroute.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibstat/Makefile b/usr.bin/ofed/infiniband-diags/ibstat/Makefile
new file mode 100644
index 000000000000..2298970e42b9
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibstat/Makefile
@@ -0,0 +1,5 @@
+PROG= ibstat
+SRCS= ibstat.c
+MAN= ibstat.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibsysstat/Makefile b/usr.bin/ofed/infiniband-diags/ibsysstat/Makefile
new file mode 100644
index 000000000000..a8a72420e9c1
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibsysstat/Makefile
@@ -0,0 +1,5 @@
+PROG= ibsysstat
+SRCS= ibsysstat.c
+MAN= ibsysstat.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/ibtracert/Makefile b/usr.bin/ofed/infiniband-diags/ibtracert/Makefile
new file mode 100644
index 000000000000..8bcd5192ade3
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibtracert/Makefile
@@ -0,0 +1,5 @@
+PROG= ibtracert
+SRCS= ibtracert.c
+MAN= ibtracert.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/perfquery/Makefile b/usr.bin/ofed/infiniband-diags/perfquery/Makefile
new file mode 100644
index 000000000000..291cf168218d
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/perfquery/Makefile
@@ -0,0 +1,5 @@
+PROG= perfquery
+SRCS= perfquery.c
+MAN= perfquery.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/saquery/Makefile b/usr.bin/ofed/infiniband-diags/saquery/Makefile
new file mode 100644
index 000000000000..739964215bdc
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/saquery/Makefile
@@ -0,0 +1,5 @@
+PROG= saquery
+SRCS= saquery.c
+MAN= saquery.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/sminfo/Makefile b/usr.bin/ofed/infiniband-diags/sminfo/Makefile
new file mode 100644
index 000000000000..be63fb69fe5c
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/sminfo/Makefile
@@ -0,0 +1,5 @@
+PROG= sminfo
+SRCS= sminfo.c
+MAN= sminfo.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/smpdump/Makefile b/usr.bin/ofed/infiniband-diags/smpdump/Makefile
new file mode 100644
index 000000000000..70fe61c05448
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/smpdump/Makefile
@@ -0,0 +1,5 @@
+PROG= smpdump
+SRCS= smpdump.c
+MAN= smpdump.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/smpquery/Makefile b/usr.bin/ofed/infiniband-diags/smpquery/Makefile
new file mode 100644
index 000000000000..4c716f58387a
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/smpquery/Makefile
@@ -0,0 +1,5 @@
+PROG= smpquery
+SRCS= smpquery.c
+MAN= smpquery.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/infiniband-diags/vendstat/Makefile b/usr.bin/ofed/infiniband-diags/vendstat/Makefile
new file mode 100644
index 000000000000..9fea6878a25f
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/vendstat/Makefile
@@ -0,0 +1,5 @@
+PROG= vendstat
+SRCS= vendstat.c
+MAN= vendstat.8
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/libibverbs/Makefile b/usr.bin/ofed/libibverbs/Makefile
new file mode 100644
index 000000000000..f9aff0070f36
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/Makefile
@@ -0,0 +1,12 @@
+PACKAGE= FreeBSD-rdma
+
+SUBDIR= \
+asyncwatch \
+devinfo \
+devices \
+rc_pingpong \
+srq_pingpong \
+uc_pingpong \
+ud_pingpong
+
+.include <bsd.subdir.mk>
diff --git a/usr.bin/ofed/libibverbs/Makefile.inc b/usr.bin/ofed/libibverbs/Makefile.inc
new file mode 100644
index 000000000000..616c9bd54707
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/Makefile.inc
@@ -0,0 +1,8 @@
+_spath=${SRCTOP}/contrib/ofed/libibverbs
+.PATH: ${_spath}/examples ${_spath}/man
+
+BINDIR?= /usr/bin
+CFLAGS+= -I${_spath}
+LIBADD+= ibverbs mlx4 mlx5 cxgb4 irdma pthread
+
+WARNS?= 2
diff --git a/usr.bin/ofed/libibverbs/asyncwatch/Makefile b/usr.bin/ofed/libibverbs/asyncwatch/Makefile
new file mode 100644
index 000000000000..d7a910bf0944
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/asyncwatch/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= ibv_asyncwatch
+MAN= ibv_asyncwatch.1
+SRCS= asyncwatch.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/libibverbs/devices/Makefile b/usr.bin/ofed/libibverbs/devices/Makefile
new file mode 100644
index 000000000000..977d903d80fe
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/devices/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= ibv_devices
+MAN= ibv_devices.1
+SRCS= device_list.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/libibverbs/devinfo/Makefile b/usr.bin/ofed/libibverbs/devinfo/Makefile
new file mode 100644
index 000000000000..ef62919d2279
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/devinfo/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= ibv_devinfo
+MAN= ibv_devinfo.1
+SRCS= devinfo.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/libibverbs/rc_pingpong/Makefile b/usr.bin/ofed/libibverbs/rc_pingpong/Makefile
new file mode 100644
index 000000000000..2ab8a1419b39
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/rc_pingpong/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= ibv_rc_pingpong
+MAN= ibv_rc_pingpong.1
+SRCS= rc_pingpong.c pingpong.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/libibverbs/srq_pingpong/Makefile b/usr.bin/ofed/libibverbs/srq_pingpong/Makefile
new file mode 100644
index 000000000000..f15b021bc6e4
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/srq_pingpong/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= ibv_srq_pingpong
+MAN= ibv_srq_pingpong.1
+SRCS= srq_pingpong.c pingpong.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/libibverbs/uc_pingpong/Makefile b/usr.bin/ofed/libibverbs/uc_pingpong/Makefile
new file mode 100644
index 000000000000..69a0e5f72808
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/uc_pingpong/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= ibv_uc_pingpong
+MAN= ibv_uc_pingpong.1
+SRCS= uc_pingpong.c pingpong.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/libibverbs/ud_pingpong/Makefile b/usr.bin/ofed/libibverbs/ud_pingpong/Makefile
new file mode 100644
index 000000000000..932658508735
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/ud_pingpong/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= ibv_ud_pingpong
+MAN= ibv_ud_pingpong.1
+SRCS= ud_pingpong.c pingpong.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/librdmacm/Makefile b/usr.bin/ofed/librdmacm/Makefile
new file mode 100644
index 000000000000..da14df38fbf2
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/Makefile
@@ -0,0 +1,5 @@
+SUBDIR= ucmatose mckey rping udaddy
+
+SUBDIR_PARALLEL=
+
+.include <bsd.subdir.mk>
diff --git a/usr.bin/ofed/librdmacm/Makefile.inc b/usr.bin/ofed/librdmacm/Makefile.inc
new file mode 100644
index 000000000000..74f32fe08b42
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/Makefile.inc
@@ -0,0 +1,8 @@
+_spath=${SRCTOP}/contrib/ofed/librdmacm
+.PATH: ${_spath}/examples ${_spath}/man
+
+BINDIR?= /usr/bin
+CFLAGS+= -I${SRCTOP}/contrib/ofed
+LIBADD+= ibverbs rdmacm irdma mlx4 mlx5 cxgb4 pthread
+
+WARNS?= 0
diff --git a/usr.bin/ofed/librdmacm/mckey/Makefile b/usr.bin/ofed/librdmacm/mckey/Makefile
new file mode 100644
index 000000000000..bdae45765b3f
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/mckey/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= mckey
+MAN= mckey.1
+SRCS= mckey.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/librdmacm/mckey/Makefile.depend b/usr.bin/ofed/librdmacm/mckey/Makefile.depend
new file mode 100644
index 000000000000..fe221dcdedab
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/mckey/Makefile.depend
@@ -0,0 +1,24 @@
+# Autogenerated - do NOT edit!
+
+DIRDEPS = \
+ include \
+ include/arpa \
+ include/xlocale \
+ lib/${CSU_DIR} \
+ lib/libc \
+ lib/libcompiler_rt \
+ lib/libthr \
+ lib/ofed/include \
+ lib/ofed/libcxgb4 \
+ lib/ofed/libibverbs \
+ lib/ofed/libirdma \
+ lib/ofed/libmlx4 \
+ lib/ofed/libmlx5 \
+ lib/ofed/librdmacm \
+
+
+.include <dirdeps.mk>
+
+.if ${DEP_RELDIR} == ${_DEP_RELDIR}
+# local dependencies - needed for -jN in clean tree
+.endif
diff --git a/usr.bin/ofed/librdmacm/rping/Makefile b/usr.bin/ofed/librdmacm/rping/Makefile
new file mode 100644
index 000000000000..3406c6c576f5
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/rping/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= rping
+MAN= rping.1
+SRCS= rping.c common.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/librdmacm/rping/Makefile.depend b/usr.bin/ofed/librdmacm/rping/Makefile.depend
new file mode 100644
index 000000000000..f89053d7c943
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/rping/Makefile.depend
@@ -0,0 +1,23 @@
+# Autogenerated - do NOT edit!
+
+DIRDEPS = \
+ include \
+ include/xlocale \
+ lib/${CSU_DIR} \
+ lib/libc \
+ lib/libcompiler_rt \
+ lib/libthr \
+ lib/ofed/include \
+ lib/ofed/libcxgb4 \
+ lib/ofed/libibverbs \
+ lib/ofed/libirdma \
+ lib/ofed/libmlx4 \
+ lib/ofed/libmlx5 \
+ lib/ofed/librdmacm \
+
+
+.include <dirdeps.mk>
+
+.if ${DEP_RELDIR} == ${_DEP_RELDIR}
+# local dependencies - needed for -jN in clean tree
+.endif
diff --git a/usr.bin/ofed/librdmacm/ucmatose/Makefile b/usr.bin/ofed/librdmacm/ucmatose/Makefile
new file mode 100644
index 000000000000..0b4791c5404a
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/ucmatose/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= ucmatose
+MAN= ucmatose.1
+SRCS= cmatose.c common.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/librdmacm/ucmatose/Makefile.depend b/usr.bin/ofed/librdmacm/ucmatose/Makefile.depend
new file mode 100644
index 000000000000..f89053d7c943
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/ucmatose/Makefile.depend
@@ -0,0 +1,23 @@
+# Autogenerated - do NOT edit!
+
+DIRDEPS = \
+ include \
+ include/xlocale \
+ lib/${CSU_DIR} \
+ lib/libc \
+ lib/libcompiler_rt \
+ lib/libthr \
+ lib/ofed/include \
+ lib/ofed/libcxgb4 \
+ lib/ofed/libibverbs \
+ lib/ofed/libirdma \
+ lib/ofed/libmlx4 \
+ lib/ofed/libmlx5 \
+ lib/ofed/librdmacm \
+
+
+.include <dirdeps.mk>
+
+.if ${DEP_RELDIR} == ${_DEP_RELDIR}
+# local dependencies - needed for -jN in clean tree
+.endif
diff --git a/usr.bin/ofed/librdmacm/udaddy/Makefile b/usr.bin/ofed/librdmacm/udaddy/Makefile
new file mode 100644
index 000000000000..dc4105881d4a
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/udaddy/Makefile
@@ -0,0 +1,6 @@
+PACKAGE= rdma
+PROG= udaddy
+MAN= udaddy.1
+SRCS= udaddy.c common.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/librdmacm/udaddy/Makefile.depend b/usr.bin/ofed/librdmacm/udaddy/Makefile.depend
new file mode 100644
index 000000000000..f89053d7c943
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/udaddy/Makefile.depend
@@ -0,0 +1,23 @@
+# Autogenerated - do NOT edit!
+
+DIRDEPS = \
+ include \
+ include/xlocale \
+ lib/${CSU_DIR} \
+ lib/libc \
+ lib/libcompiler_rt \
+ lib/libthr \
+ lib/ofed/include \
+ lib/ofed/libcxgb4 \
+ lib/ofed/libibverbs \
+ lib/ofed/libirdma \
+ lib/ofed/libmlx4 \
+ lib/ofed/libmlx5 \
+ lib/ofed/librdmacm \
+
+
+.include <dirdeps.mk>
+
+.if ${DEP_RELDIR} == ${_DEP_RELDIR}
+# local dependencies - needed for -jN in clean tree
+.endif
diff --git a/usr.bin/ofed/opensm/Makefile b/usr.bin/ofed/opensm/Makefile
new file mode 100644
index 000000000000..442a47bb160d
--- /dev/null
+++ b/usr.bin/ofed/opensm/Makefile
@@ -0,0 +1,102 @@
+_spath= ${SRCTOP}/contrib/ofed/opensm/opensm
+.PATH: ${_spath} ${_spath:H}/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${_spath:H} -DHAVE_CONFIG_H=1
+CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
+LIBADD= opensm osmvendor osmcomp wrap pthread
+
+WARNS?= 2
+
+.include <bsd.prog.mk>