freebsd-skq/lib/ofed/complib/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

36 lines
594 B
Makefile

# $FreeBSD$
_spath= ${SRCTOP}/contrib/ofed/opensm/complib
.PATH: ${_spath}
SHLIBDIR?= /usr/lib
LIB= osmcomp
SHLIB_MAJOR= 3
MK_PROFILE= no
SRCS= \
cl_complib.c \
cl_dispatcher.c \
cl_event.c \
cl_event_wheel.c \
cl_list.c \
cl_log.c \
cl_map.c \
cl_nodenamemap.c \
cl_pool.c \
cl_ptr_vector.c \
cl_spinlock.c \
cl_statustext.c \
cl_thread.c \
cl_threadpool.c \
cl_timer.c \
cl_vector.c \
ib_statustext.c
CFLAGS+= -I${_spath}/.. -DHAVE_CONFIG_H=1
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
LIBADD= pthread
VERSION_MAP= ${_spath}/libosmcomp.map
.include <bsd.lib.mk>