freebsd-dev/lib/ofed/libopensm/Makefile
Konstantin Belousov f39bffc62c 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
2018-06-16 15:05:05 +00:00

22 lines
381 B
Makefile

# $FreeBSD$
_spath= ${SRCTOP}/contrib/ofed/opensm/opensm
.PATH: ${_spath}
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${_spath} -I${_spath}/.. -DHAVE_CONFIG_H=1
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
VERSION_MAP= ${_spath}/libopensm.map
.include <bsd.lib.mk>