aboutsummaryrefslogtreecommitdiff
path: root/lib/ofed/libmlx5
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 /lib/ofed/libmlx5
parent20efcfc602b7a57979da99f0a1f917d9fb4a30e1 (diff)
downloadsrc-f39bffc62c1395bde25d152c7f68fdf7cbaab414.tar.gz
src-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 'lib/ofed/libmlx5')
-rw-r--r--lib/ofed/libmlx5/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/ofed/libmlx5/Makefile b/lib/ofed/libmlx5/Makefile
new file mode 100644
index 000000000000..5d31f1428ca3
--- /dev/null
+++ b/lib/ofed/libmlx5/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+_spath= ${SRCTOP}/contrib/ofed/libmlx5
+.PATH: ${_spath}
+
+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${_spath}
+VERSION_MAP= ${_spath}/libmlx5.map
+
+.include <bsd.lib.mk>
+