1219820Sjeff# $FreeBSD$
2219820Sjeff
3219820SjeffSHLIBDIR?=	/usr/lib
4219820Sjeff
5219820Sjeff.include <bsd.own.mk>
6219820Sjeff.include "../Makefile.inc"
7219820Sjeff
8219820SjeffIBSRCDIR=	${IBVERBSDIR}/src
9219820SjeffIBMANDIR=	${IBVERBSDIR}/man
10219820Sjeff
11219820Sjeff.PATH: ${IBSRCDIR} ${IBMANDIR}
12219820Sjeff
13219820SjeffLIB=		ibverbs
14219820SjeffSHLIB_MAJOR=	1
15219820SjeffNO_PROFILE=
16219820Sjeff
17219820SjeffSRCS=	device.c init.c marshall.c verbs.c cmd.c enum_strs.c kern_abi.h \
18219820Sjeff	memory.c compat-1_0.c sysfs.c
19219820Sjeff
20219820SjeffMAN=	ibv_alloc_pd.3 ibv_asyncwatch.1 ibv_attach_mcast.3 ibv_create_ah.3 \
21219820Sjeff	ibv_create_ah_from_wc.3 ibv_create_comp_channel.3 ibv_create_cq.3 \
22219820Sjeff	ibv_create_qp.3 ibv_create_srq.3 ibv_devices.1 ibv_devinfo.1 \
23219820Sjeff	ibv_event_type_str.3 ibv_fork_init.3 ibv_get_async_event.3 \
24219820Sjeff	ibv_get_cq_event.3 ibv_get_device_guid.3 ibv_get_device_list.3 \
25219820Sjeff	ibv_get_device_name.3 ibv_modify_qp.3 ibv_modify_srq.3 \
26219820Sjeff	ibv_open_device.3 ibv_poll_cq.3 ibv_post_recv.3 ibv_post_send.3 \
27219820Sjeff	ibv_post_srq_recv.3 ibv_query_device.3 ibv_query_gid.3 \
28219820Sjeff	ibv_query_pkey.3 ibv_query_port.3 ibv_query_qp.3 ibv_query_srq.3 \
29219820Sjeff	ibv_rate_to_mult.3 ibv_rc_pingpong.1 ibv_reg_mr.3 ibv_req_notify_cq.3 \
30219820Sjeff	ibv_resize_cq.3 ibv_srq_pingpong.1 ibv_uc_pingpong.1 ibv_ud_pingpong.1 \
31219820Sjeff	ibv_query_xrc_rcv_qp.3 ibv_reg_xrc_rcv_qp.3 ibv_modify_xrc_rcv_qp.3 \
32219820Sjeff	verbs.7 ibv_create_xrc_rcv_qp.3 ibv_open_xrc_domain.3
33219820Sjeff
34219820Sjeff
35219820SjeffCFLAGS+= -DHAVE_CONFIG_H -DIBV_CONFIG_DIR=\"/etc/ibverbs/\"
36219820Sjeff
37219820SjeffVERSION_MAP= ${IBSRCDIR}/libibverbs.map
38219820Sjeff
39219820Sjeff.include <bsd.lib.mk>
40