5 DBGFLAGS = -ggdb -D_DEBUG_
10 INCLUDES = $(OSMV_INCLUDES)
12 lib_LTLIBRARIES = libosmvendor.la
14 libosmvendor_la_CFLAGS = -Wall $(DBGFLAGS)
16 if HAVE_LD_VERSION_SCRIPT
17 libosmvendor_version_script = -Wl,--version-script=$(srcdir)/libosmvendor.map
19 libosmvendor_version_script =
22 osmvendor_api_version=$(shell grep LIBVERSION= $(srcdir)/libosmvendor.ver | sed 's/LIBVERSION=//')
24 COMM_HDRS= $(srcdir)/../include/vendor/osm_vendor_api.h \
25 $(srcdir)/../include/vendor/osm_vendor.h \
26 $(srcdir)/../include/vendor/osm_vendor_sa_api.h
29 libosmvendor_la_SOURCES = osm_vendor_ibumad.c \
30 osm_vendor_ibumad_sa.c
31 HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_ibumad.h
34 libosmvendor_la_SOURCES = osm_vendor_mlx.c \
35 osm_vendor_mlx_sim.c \
36 osm_vendor_mlx_hca_sim.c \
37 osm_vendor_mlx_dispatcher.c \
38 osm_vendor_mlx_rmpp_ctx.c \
39 osm_vendor_mlx_sar.c \
40 osm_vendor_mlx_sender.c \
41 osm_vendor_mlx_txn.c \
44 HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_mlx.h \
45 $(srcdir)/../include/vendor/osm_pkt_randomizer.h
48 libosmvendor_la_SOURCES = osm_vendor_mlx.c \
49 osm_pkt_randomizer.c \
50 osm_vendor_mlx_hca.c \
51 osm_vendor_mlx_dispatcher.c \
52 osm_vendor_mlx_rmpp_ctx.c \
53 osm_vendor_mlx_sar.c \
54 osm_vendor_mlx_sender.c \
56 osm_vendor_mlx_txn.c \
58 HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_mlx.h \
59 $(srcdir)/../include/vendor/osm_pkt_randomizer.h
62 libosmvendor_la_SOURCES = osm_vendor_mlx.c \
63 osm_pkt_randomizer.c \
64 osm_vendor_mlx_hca.c \
65 osm_vendor_mlx_dispatcher.c \
66 osm_vendor_mlx_rmpp_ctx.c \
67 osm_vendor_mlx_sar.c \
68 osm_vendor_mlx_sender.c \
69 osm_vendor_mlx_ibmgt.c \
70 osm_vendor_mlx_txn.c \
72 HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_mlx.h \
73 $(srcdir)/../include/vendor/osm_pkt_randomizer.h
76 libosmvendor_la_LIBADD = -L../complib -losmcomp
77 libosmvendor_la_LDFLAGS = -version-info $(osmvendor_api_version) \
78 -export-dynamic $(libosmvendor_version_script)
79 libosmvendor_la_DEPENDENCIES = $(srcdir)/libosmvendor.map
81 libosmvendorincludedir = $(includedir)/infiniband/vendor
83 libosmvendorinclude_HEADERS = $(HDRS)
85 # headers are distributed as part of the include dir
86 EXTRA_DIST = $(srcdir)/libosmvendor.map $(srcdir)/libosmvendor.ver