xref: /freebsd-13.1/lib/ofed/complib/Makefile (revision f39bffc6)
1# $FreeBSD$
2
3_spath=	${SRCTOP}/contrib/ofed/opensm/complib
4.PATH: ${_spath}
5
6SHLIBDIR?=	/usr/lib
7LIB=		osmcomp
8SHLIB_MAJOR=    3
9MK_PROFILE=     no
10
11SRCS= \
12cl_complib.c \
13cl_dispatcher.c \
14cl_event.c \
15cl_event_wheel.c \
16cl_list.c \
17cl_log.c \
18cl_map.c \
19cl_nodenamemap.c \
20cl_pool.c \
21cl_ptr_vector.c \
22cl_spinlock.c \
23cl_statustext.c \
24cl_thread.c \
25cl_threadpool.c \
26cl_timer.c \
27cl_vector.c \
28ib_statustext.c
29
30CFLAGS+=	-I${_spath}/.. -DHAVE_CONFIG_H=1
31CFLAGS+=	-I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/infiniband
32LIBADD=		pthread
33VERSION_MAP=	${_spath}/libosmcomp.map
34
35.include <bsd.lib.mk>
36