mirror of
https://github.com/opnsense/src.git
synced 2026-04-20 21:59:20 -04:00
This should fix ofed/libibnetdisc compilation with C-compilers different from clang and GCC v4.2.1. Submitted by: kib Sponsored by: Mellanox Technologies
38 lines
674 B
Makefile
38 lines
674 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.PATH: ${.CURDIR} ${.CURDIR}/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${.CURDIR}
|
|
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
|
|
.if ${COMPILER_FEATURES:Mc++11}
|
|
CXXFLAGS+= -std=c++11
|
|
.endif
|
|
VERSION_MAP= ${.CURDIR}/libibnetdisc.map
|
|
|
|
.include <bsd.lib.mk>
|