freebsd-dev/lib/ofed/libibnetdisc/Makefile
Enji Cooper 1109b77451 Rework CXXSTD setting via r345708
This change allows the user to once again override the C++ standard, restoring
high-level pre-r345708 behavior.

This also unbreaks building lib/ofed/libibnetdisc/Makefile with a non-C++11
capable compiler, e.g., g++ 4.2.1, as the library supported being built with
older C++ standards.

MFC after:	2 weeks
MFC with:	r345708
Reviewed by:	emaste
Reported by:	jbeich
Differential Revision: https://reviews.freebsd.org/D19895 (as part of a larger change)
2019-04-22 18:38:54 +00:00

40 lines
707 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
_spath= ${SRCTOP}/contrib/ofed/libibnetdisc
.PATH: ${_spath} ${_spath}/man
SHLIBDIR?= /usr/lib
LIB_CXX= ibnetdisc
SHLIB_MAJOR= 5
MK_PROFILE= no
SRCS= \
chassis.c \
g_hash_table.cpp \
ibnetdisc.c \
ibnetdisc_cache.c \
query_smp.c
MAN= \
ibnd_debug.3 \
ibnd_destroy_fabric.3 \
ibnd_discover_fabric.3 \
ibnd_find_node_dr.3 \
ibnd_find_node_guid.3 \
ibnd_iter_nodes.3 \
ibnd_iter_nodes_type.3 \
ibnd_show_progress.3
LIBADD= osmcomp ibmad ibumad
CFLAGS+= -DHAVE_CONFIG_H=1
CFLAGS+= -I${_spath}
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
.if ${COMPILER_FEATURES:Mc++11}
CXXSTD= c++11
.endif
VERSION_MAP= ${_spath}/libibnetdisc.map
.include <bsd.lib.mk>