opnsense-src/contrib/ofed/opensm/libopensm/Makefile
Hans Petter Selasky be28698cf2 Correctly prefix the infiniband include directory for buildworld. This fixes
the OFED buildworld target, WITH_OFED=YES, when the include files are not
already installed locally, but only in the temporary object directory.

Found by:	kib
Sponsored by:	Mellanox Technologies
2017-12-05 08:25:17 +00:00

20 lines
347 B
Makefile

# $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>