aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/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 /usr.bin/ofed
parent20efcfc602b7a57979da99f0a1f917d9fb4a30e1 (diff)
Notes
Diffstat (limited to 'usr.bin/ofed')
-rw-r--r--usr.bin/ofed/Makefile11
-rw-r--r--usr.bin/ofed/infiniband-diags/Makefile29
-rw-r--r--usr.bin/ofed/infiniband-diags/Makefile.inc12
-rw-r--r--usr.bin/ofed/infiniband-diags/dump_fts/Makefile8
-rw-r--r--usr.bin/ofed/infiniband-diags/ibaddr/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/ibcacheedit/Makefile8
-rw-r--r--usr.bin/ofed/infiniband-diags/ibccconfig/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/ibccquery/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/iblinkinfo/Makefile8
-rw-r--r--usr.bin/ofed/infiniband-diags/ibmirror/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/ibnetdiscover/Makefile8
-rw-r--r--usr.bin/ofed/infiniband-diags/ibping/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/ibportstate/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/ibqueryerrors/Makefile8
-rw-r--r--usr.bin/ofed/infiniband-diags/ibroute/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/ibstat/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/ibsysstat/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/ibtracert/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/perfquery/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/saquery/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/sminfo/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/smpdump/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/smpquery/Makefile7
-rw-r--r--usr.bin/ofed/infiniband-diags/vendstat/Makefile7
-rw-r--r--usr.bin/ofed/libibverbs/Makefile12
-rw-r--r--usr.bin/ofed/libibverbs/Makefile.inc9
-rw-r--r--usr.bin/ofed/libibverbs/asyncwatch/Makefile7
-rw-r--r--usr.bin/ofed/libibverbs/devices/Makefile7
-rw-r--r--usr.bin/ofed/libibverbs/devinfo/Makefile7
-rw-r--r--usr.bin/ofed/libibverbs/rc_pingpong/Makefile7
-rw-r--r--usr.bin/ofed/libibverbs/srq_pingpong/Makefile7
-rw-r--r--usr.bin/ofed/libibverbs/uc_pingpong/Makefile7
-rw-r--r--usr.bin/ofed/libibverbs/ud_pingpong/Makefile7
-rw-r--r--usr.bin/ofed/librdmacm/Makefile7
-rw-r--r--usr.bin/ofed/librdmacm/Makefile.inc8
-rw-r--r--usr.bin/ofed/librdmacm/mckey/Makefile7
-rw-r--r--usr.bin/ofed/librdmacm/rping/Makefile7
-rw-r--r--usr.bin/ofed/librdmacm/ucmatose/Makefile7
-rw-r--r--usr.bin/ofed/librdmacm/udaddy/Makefile7
-rw-r--r--usr.bin/ofed/opensm/Makefile102
40 files changed, 419 insertions, 0 deletions
diff --git a/usr.bin/ofed/Makefile b/usr.bin/ofed/Makefile
new file mode 100644
index 0000000000000..3069676c9e6c8
--- /dev/null
+++ b/usr.bin/ofed/Makefile
@@ -0,0 +1,11 @@
+# $FreeBSD$
+
+SUBDIR= \
+ libibverbs \
+ librdmacm \
+ opensm \
+ infiniband-diags
+
+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 0000000000000..8ad5f3bea7cc6
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/Makefile
@@ -0,0 +1,29 @@
+# $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/usr.bin/ofed/infiniband-diags/Makefile.inc b/usr.bin/ofed/infiniband-diags/Makefile.inc
new file mode 100644
index 0000000000000..76bf879f60960
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/Makefile.inc
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+_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
+
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 0000000000000..93f09e5153d21
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/dump_fts/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+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 0000000000000..7aab4c2e310dc
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibaddr/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..67225afd79cd1
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibcacheedit/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+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 0000000000000..cfee9bf0eab83
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibccconfig/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..7d278b1978da8
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibccquery/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..49a0482bb0c3a
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/iblinkinfo/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+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 0000000000000..4684c2058855a
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibmirror/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..34090be9fae8d
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibnetdiscover/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+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 0000000000000..e573f780153af
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibping/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..98dc34ca5fe72
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibportstate/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..c4be267f4362b
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibqueryerrors/Makefile
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+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 0000000000000..1914fca8abe1e
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibroute/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..812cd03d623b8
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibstat/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..b2f0ab7698e71
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibsysstat/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..ea6d66a5dde5c
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/ibtracert/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..3b4cb536717fb
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/perfquery/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..f330cd3c5046a
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/saquery/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..b83d759668f37
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/sminfo/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..ae1c680e24432
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/smpdump/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..4654ce400d443
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/smpquery/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..b548537bff8d1
--- /dev/null
+++ b/usr.bin/ofed/infiniband-diags/vendstat/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..bd164751c9ce8
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+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 0000000000000..9ed20e6a94b00
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/Makefile.inc
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+_spath=${SRCTOP}/contrib/ofed/libibverbs
+.PATH: ${_spath}/examples ${_spath}/man
+
+BINDIR?= /usr/bin
+CFLAGS+= -I${_spath}
+LIBADD+= ibverbs mlx4 mlx5 cxgb4 pthread
+
diff --git a/usr.bin/ofed/libibverbs/asyncwatch/Makefile b/usr.bin/ofed/libibverbs/asyncwatch/Makefile
new file mode 100644
index 0000000000000..c82c0024d5774
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/asyncwatch/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..c2440ff40a9c3
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/devices/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..83a61318faef7
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/devinfo/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..4145967dd0a3e
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/rc_pingpong/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..ee2a6e07dacae
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/srq_pingpong/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..8740e70629772
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/uc_pingpong/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..7a153f5395a89
--- /dev/null
+++ b/usr.bin/ofed/libibverbs/ud_pingpong/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..c45d40e479f6e
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+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 0000000000000..d407c8ff9681b
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/Makefile.inc
@@ -0,0 +1,8 @@
+# $FreeBSD$
+
+_spath=${SRCTOP}/contrib/ofed/librdmacm
+.PATH: ${_spath}/examples ${_spath}/man
+
+BINDIR?= /usr/bin
+CFLAGS+= -I${SRCTOP}/contrib/ofed
+LIBADD+= ibverbs rdmacm mlx4 mlx5 cxgb4 pthread
diff --git a/usr.bin/ofed/librdmacm/mckey/Makefile b/usr.bin/ofed/librdmacm/mckey/Makefile
new file mode 100644
index 0000000000000..f0dd7f023fed4
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/mckey/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+PROG= mckey
+MAN= mckey.1
+SRCS= mckey.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/librdmacm/rping/Makefile b/usr.bin/ofed/librdmacm/rping/Makefile
new file mode 100644
index 0000000000000..1112357558f89
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/rping/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+PROG= rping
+MAN= rping.1
+SRCS= rping.c common.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/librdmacm/ucmatose/Makefile b/usr.bin/ofed/librdmacm/ucmatose/Makefile
new file mode 100644
index 0000000000000..9f984a8a49a8d
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/ucmatose/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+PROG= ucmatose
+MAN= ucmatose.1
+SRCS= cmatose.c common.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/librdmacm/udaddy/Makefile b/usr.bin/ofed/librdmacm/udaddy/Makefile
new file mode 100644
index 0000000000000..df8f86de428f8
--- /dev/null
+++ b/usr.bin/ofed/librdmacm/udaddy/Makefile
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+PROG= udaddy
+MAN= udaddy.1
+SRCS= udaddy.c common.c
+
+.include <bsd.prog.mk>
diff --git a/usr.bin/ofed/opensm/Makefile b/usr.bin/ofed/opensm/Makefile
new file mode 100644
index 0000000000000..2c1f504dc191f
--- /dev/null
+++ b/usr.bin/ofed/opensm/Makefile
@@ -0,0 +1,102 @@
+# $FreeBSD$
+
+_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
+
+.include <bsd.prog.mk>