1219820SjeffINCLUDES = -I$(srcdir)/include 2219820Sjeff 3219820Sjefflib_LTLIBRARIES = src/libibverbs.la 4219820Sjeff 5219820SjeffAM_CFLAGS = -g -Wall -D_GNU_SOURCE 6219820Sjeff 7219820Sjeffsrc_libibverbs_la_CFLAGS = $(AM_CFLAGS) -DIBV_CONFIG_DIR=\"$(sysconfdir)/libibverbs.d\" 8219820Sjeff 9219820Sjefflibibverbs_version_script = @LIBIBVERBS_VERSION_SCRIPT@ 10219820Sjeff 11219820Sjeffsrc_libibverbs_la_SOURCES = src/cmd.c src/compat-1_0.c src/device.c src/init.c \ 12219820Sjeff src/marshall.c src/memory.c src/sysfs.c src/verbs.c \ 13219820Sjeff src/enum_strs.c 14219820Sjeffsrc_libibverbs_la_LDFLAGS = -version-info 1 -export-dynamic \ 15219820Sjeff $(libibverbs_version_script) 16219820Sjeffsrc_libibverbs_la_DEPENDENCIES = $(srcdir)/src/libibverbs.map 17219820Sjeff 18219820Sjeffbin_PROGRAMS = examples/ibv_devices examples/ibv_devinfo \ 19219820Sjeff examples/ibv_asyncwatch examples/ibv_rc_pingpong examples/ibv_uc_pingpong \ 20219820Sjeff examples/ibv_ud_pingpong examples/ibv_srq_pingpong 21219820Sjeffexamples_ibv_devices_SOURCES = examples/device_list.c 22219820Sjeffexamples_ibv_devices_LDADD = $(top_builddir)/src/libibverbs.la 23219820Sjeffexamples_ibv_devinfo_SOURCES = examples/devinfo.c 24219820Sjeffexamples_ibv_devinfo_LDADD = $(top_builddir)/src/libibverbs.la 25219820Sjeffexamples_ibv_rc_pingpong_SOURCES = examples/rc_pingpong.c examples/pingpong.c 26219820Sjeffexamples_ibv_rc_pingpong_LDADD = $(top_builddir)/src/libibverbs.la 27219820Sjeffexamples_ibv_uc_pingpong_SOURCES = examples/uc_pingpong.c examples/pingpong.c 28219820Sjeffexamples_ibv_uc_pingpong_LDADD = $(top_builddir)/src/libibverbs.la 29219820Sjeffexamples_ibv_ud_pingpong_SOURCES = examples/ud_pingpong.c examples/pingpong.c 30219820Sjeffexamples_ibv_ud_pingpong_LDADD = $(top_builddir)/src/libibverbs.la 31219820Sjeffexamples_ibv_srq_pingpong_SOURCES = examples/srq_pingpong.c examples/pingpong.c 32219820Sjeffexamples_ibv_srq_pingpong_LDADD = $(top_builddir)/src/libibverbs.la 33219820Sjeffexamples_ibv_asyncwatch_SOURCES = examples/asyncwatch.c 34219820Sjeffexamples_ibv_asyncwatch_LDADD = $(top_builddir)/src/libibverbs.la 35219820Sjeff 36219820Sjefflibibverbsincludedir = $(includedir)/infiniband 37219820Sjeff 38219820Sjefflibibverbsinclude_HEADERS = include/infiniband/arch.h include/infiniband/driver.h \ 39219820Sjeff include/infiniband/kern-abi.h include/infiniband/opcode.h include/infiniband/verbs.h \ 40219820Sjeff include/infiniband/sa-kern-abi.h include/infiniband/sa.h include/infiniband/marshall.h 41219820Sjeff 42219820Sjeffman_MANS = man/ibv_asyncwatch.1 man/ibv_devices.1 man/ibv_devinfo.1 \ 43219820Sjeff man/ibv_rc_pingpong.1 man/ibv_uc_pingpong.1 man/ibv_ud_pingpong.1 \ 44219820Sjeff man/ibv_srq_pingpong.1 man/ibv_alloc_pd.3 man/ibv_attach_mcast.3 \ 45219820Sjeff man/ibv_create_ah.3 man/ibv_create_ah_from_wc.3 \ 46219820Sjeff man/ibv_create_comp_channel.3 man/ibv_create_cq.3 \ 47219820Sjeff man/ibv_create_qp.3 man/ibv_create_srq.3 \ 48219820Sjeff man/ibv_create_xrc_rcv_qp.3 man/ibv_event_type_str.3 \ 49219820Sjeff man/ibv_fork_init.3 man/ibv_get_async_event.3 \ 50219820Sjeff man/ibv_get_cq_event.3 man/ibv_get_device_guid.3 \ 51219820Sjeff man/ibv_get_device_list.3 man/ibv_get_device_name.3 \ 52219820Sjeff man/ibv_modify_qp.3 man/ibv_modify_srq.3 man/ibv_modify_xrc_rcv_qp.3 \ 53219820Sjeff man/ibv_open_device.3 man/ibv_open_xrc_domain.3 \ 54219820Sjeff man/ibv_poll_cq.3 man/ibv_post_recv.3 man/ibv_post_send.3 \ 55219820Sjeff man/ibv_post_srq_recv.3 man/ibv_query_device.3 man/ibv_query_gid.3 \ 56219820Sjeff man/ibv_query_pkey.3 man/ibv_query_port.3 man/ibv_query_qp.3 \ 57219820Sjeff man/ibv_query_srq.3 man/ibv_query_xrc_rcv_qp.3 \ 58219820Sjeff man/ibv_rate_to_mult.3 man/ibv_reg_mr.3 man/ibv_reg_xrc_rcv_qp.3 \ 59219820Sjeff man/ibv_req_notify_cq.3 man/ibv_resize_cq.3 man/verbs.7 60219820Sjeff 61219820SjeffDEBIAN = debian/changelog debian/compat debian/control debian/copyright \ 62219820Sjeff debian/ibverbs-utils.install debian/libibverbs1.install \ 63219820Sjeff debian/libibverbs1.postinst debian/libibverbs-dev.install \ 64219820Sjeff debian/rules 65219820Sjeff 66219820SjeffEXTRA_DIST = include/infiniband/driver.h include/infiniband/kern-abi.h \ 67219820Sjeff include/infiniband/opcode.h include/infiniband/verbs.h include/infiniband/marshall.h \ 68219820Sjeff include/infiniband/sa-kern-abi.h include/infiniband/sa.h \ 69219820Sjeff src/ibverbs.h examples/pingpong.h \ 70219820Sjeff src/libibverbs.map libibverbs.spec.in $(man_MANS) 71219820Sjeff 72219820Sjeffdist-hook: libibverbs.spec 73219820Sjeff cp libibverbs.spec $(distdir) 74219820Sjeff 75219820Sjeffinstall-data-hook: 76219820Sjeff cd $(DESTDIR)$(mandir)/man3 && \ 77219820Sjeff $(RM) ibv_ack_async_event.3 && \ 78219820Sjeff $(RM) ibv_ack_cq_events.3 && \ 79219820Sjeff $(RM) ibv_close_device.3 && \ 80219820Sjeff $(RM) ibv_close_xrc_domain.3 && \ 81219820Sjeff $(RM) ibv_create_xrc_srq.3 && \ 82219820Sjeff $(RM) ibv_dealloc_pd.3 && \ 83219820Sjeff $(RM) ibv_dereg_mr.3 && \ 84219820Sjeff $(RM) ibv_destroy_ah.3 && \ 85219820Sjeff $(RM) ibv_destroy_comp_channel.3 && \ 86219820Sjeff $(RM) ibv_destroy_cq.3 && \ 87219820Sjeff $(RM) ibv_destroy_qp.3 && \ 88219820Sjeff $(RM) ibv_destroy_srq.3 && \ 89219820Sjeff $(RM) ibv_detach_mcast.3 && \ 90219820Sjeff $(RM) ibv_free_device_list.3 && \ 91219820Sjeff $(RM) ibv_init_ah_from_wc.3 && \ 92219820Sjeff $(RM) ibv_unreg_xrc_rcv_qp.3 && \ 93219820Sjeff $(RM) mult_to_ibv_rate.3 && \ 94219820Sjeff $(RM) ibv_node_type_str.3 && \ 95219820Sjeff $(RM) ibv_port_state_str.3 && \ 96219820Sjeff $(LN_S) ibv_get_async_event.3 ibv_ack_async_event.3 && \ 97219820Sjeff $(LN_S) ibv_get_cq_event.3 ibv_ack_cq_events.3 && \ 98219820Sjeff $(LN_S) ibv_open_device.3 ibv_close_device.3 && \ 99219820Sjeff $(LN_S) ibv_open_xrc_domain.3 ibv_close_xrc_domain.3 && \ 100219820Sjeff $(LN_S) ibv_create_srq.3 ibv_create_xrc_srq.3 && \ 101219820Sjeff $(LN_S) ibv_alloc_pd.3 ibv_dealloc_pd.3 && \ 102219820Sjeff $(LN_S) ibv_reg_mr.3 ibv_dereg_mr.3 && \ 103219820Sjeff $(LN_S) ibv_create_ah.3 ibv_destroy_ah.3 && \ 104219820Sjeff $(LN_S) ibv_create_comp_channel.3 ibv_destroy_comp_channel.3 && \ 105219820Sjeff $(LN_S) ibv_create_cq.3 ibv_destroy_cq.3 && \ 106219820Sjeff $(LN_S) ibv_create_qp.3 ibv_destroy_qp.3 && \ 107219820Sjeff $(LN_S) ibv_create_srq.3 ibv_destroy_srq.3 && \ 108219820Sjeff $(LN_S) ibv_attach_mcast.3 ibv_detach_mcast.3 && \ 109219820Sjeff $(LN_S) ibv_get_device_list.3 ibv_free_device_list.3 && \ 110219820Sjeff $(LN_S) ibv_create_ah_from_wc.3 ibv_init_ah_from_wc.3 && \ 111219820Sjeff $(LN_S) ibv_reg_xrc_rcv_qp.3 ibv_unreg_xrc_rcv_qp.3 && \ 112219820Sjeff $(LN_S) ibv_rate_to_mult.3 mult_to_ibv_rate.3 && \ 113219820Sjeff $(LN_S) ibv_event_type_str.3 ibv_node_type_str.3 && \ 114219820Sjeff $(LN_S) ibv_event_type_str.3 ibv_port_state_str.3 115