]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ofed/management/opensm/libvendor/Makefile.am
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ofed / management / opensm / libvendor / Makefile.am
1
2 SUBDIRS = .
3
4 if DEBUG
5 DBGFLAGS = -ggdb -D_DEBUG_
6 else
7 DBGFLAGS = -g
8 endif
9
10 INCLUDES = $(OSMV_INCLUDES)
11
12 lib_LTLIBRARIES = libosmvendor.la
13
14 libosmvendor_la_CFLAGS = -Wall $(DBGFLAGS)
15
16 if HAVE_LD_VERSION_SCRIPT
17     libosmvendor_version_script = -Wl,--version-script=$(srcdir)/libosmvendor.map
18 else
19     libosmvendor_version_script =
20 endif
21
22 osmvendor_api_version=$(shell grep LIBVERSION= $(srcdir)/libosmvendor.ver | sed 's/LIBVERSION=//')
23
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
27
28 if OSMV_OPENIB
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
32 endif
33 if OSMV_SIM
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 \
42                 osm_vendor_mlx_sa.c \
43                 osm_pkt_randomizer.c
44 HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_mlx.h \
45         $(srcdir)/../include/vendor/osm_pkt_randomizer.h
46 endif
47 if OSMV_GEN1
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 \
55                 osm_vendor_mlx_ts.c \
56                 osm_vendor_mlx_txn.c \
57                 osm_vendor_mlx_sa.c
58 HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_mlx.h \
59         $(srcdir)/../include/vendor/osm_pkt_randomizer.h
60 endif
61 if OSMV_VAPI
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 \
71                 osm_vendor_mlx_sa.c
72 HDRS =$(COMM_HDRS) $(srcdir)/../include/vendor/osm_vendor_mlx.h \
73         $(srcdir)/../include/vendor/osm_pkt_randomizer.h
74 endif
75
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
80
81 libosmvendorincludedir = $(includedir)/infiniband/vendor
82
83 libosmvendorinclude_HEADERS = $(HDRS)
84
85 # headers are distributed as part of the include dir
86 EXTRA_DIST = $(srcdir)/libosmvendor.map $(srcdir)/libosmvendor.ver