Makefile.am revision 219820
1 2SUBDIRS = . 3 4if DEBUG 5DBGFLAGS = -ggdb -D_DEBUG_ 6else 7DBGFLAGS = -g 8endif 9 10INCLUDES = $(OSMV_INCLUDES) 11 12lib_LTLIBRARIES = libosmvendor.la 13 14libosmvendor_la_CFLAGS = -Wall $(DBGFLAGS) 15 16if HAVE_LD_VERSION_SCRIPT 17 libosmvendor_version_script = -Wl,--version-script=$(srcdir)/libosmvendor.map 18else 19 libosmvendor_version_script = 20endif 21 22osmvendor_api_version=$(shell grep LIBVERSION= $(srcdir)/libosmvendor.ver | sed 's/LIBVERSION=//') 23 24COMM_HDRS= $(srcdir)/../include/vendor/osm_vendor_api.h \ 25 $(srcdir)/../include/vendor/osm_vendor.h \ 26 $(srcdir)/../include/vendor/osm_vendor_sa_api.h 27 28if OSMV_OPENIB 29libosmvendor_la_SOURCES = osm_vendor_ibumad.c \ 30 osm_vendor_ibumad_sa.c 31HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_ibumad.h 32endif 33if OSMV_SIM 34libosmvendor_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 \ 42 osm_vendor_mlx_sa.c \ 43 osm_pkt_randomizer.c 44HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_mlx.h \ 45 $(srcdir)/../include/vendor/osm_pkt_randomizer.h 46endif 47if OSMV_GEN1 48libosmvendor_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 \ 55 osm_vendor_mlx_ts.c \ 56 osm_vendor_mlx_txn.c \ 57 osm_vendor_mlx_sa.c 58HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_mlx.h \ 59 $(srcdir)/../include/vendor/osm_pkt_randomizer.h 60endif 61if OSMV_VAPI 62libosmvendor_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 \ 71 osm_vendor_mlx_sa.c 72HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_mlx.h \ 73 $(srcdir)/../include/vendor/osm_pkt_randomizer.h 74endif 75 76libosmvendor_la_LIBADD = -L../complib -losmcomp 77libosmvendor_la_LDFLAGS = -version-info $(osmvendor_api_version) \ 78 -export-dynamic $(libosmvendor_version_script) 79libosmvendor_la_DEPENDENCIES = $(srcdir)/libosmvendor.map 80 81libosmvendorincludedir = $(includedir)/infiniband/vendor 82 83libosmvendorinclude_HEADERS = $(HDRS) 84 85# headers are distributed as part of the include dir 86EXTRA_DIST = $(srcdir)/libosmvendor.map $(srcdir)/libosmvendor.ver 87