1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5_spath= ${SRCTOP}/contrib/ofed/libibnetdisc 6.PATH: ${_spath} ${_spath}/man 7 8SHLIBDIR?= /usr/lib 9LIB_CXX= ibnetdisc 10SHLIB_MAJOR= 5 11MK_PROFILE= no 12 13SRCS= \ 14chassis.c \ 15g_hash_table.cpp \ 16ibnetdisc.c \ 17ibnetdisc_cache.c \ 18query_smp.c 19 20MAN= \ 21ibnd_debug.3 \ 22ibnd_destroy_fabric.3 \ 23ibnd_discover_fabric.3 \ 24ibnd_find_node_dr.3 \ 25ibnd_find_node_guid.3 \ 26ibnd_iter_nodes.3 \ 27ibnd_iter_nodes_type.3 \ 28ibnd_show_progress.3 29 30LIBADD= osmcomp ibmad ibumad 31CFLAGS+= -DHAVE_CONFIG_H=1 32CFLAGS+= -I${_spath} 33CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband 34.if ${COMPILER_FEATURES:Mc++11} 35CXXSTD= c++11 36.endif 37VERSION_MAP= ${_spath}/libibnetdisc.map 38 39.include <bsd.lib.mk> 40