]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ofed/management/opensm/osmeventplugin/Makefile.am
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ofed / management / opensm / osmeventplugin / Makefile.am
1
2 INCLUDES = -I$(srcdir)/../include \
3            -I$(includedir)/infiniband
4
5 lib_LTLIBRARIES = libosmeventplugin.la
6
7 if DEBUG
8 DBGFLAGS = -ggdb -D_DEBUG_
9 else
10 DBGFLAGS = -g
11 endif
12
13 libosmeventplugin_la_CFLAGS = -Wall $(DBGFLAGS) -D_XOPEN_SOURCE=600 -D_BSD_SOURCE=1
14
15 if HAVE_LD_VERSION_SCRIPT
16     libosmeventplugin_version_script = -Wl,--version-script=$(srcdir)/libosmeventplugin.map
17 else
18     libosmeventplugin_version_script =
19 endif
20
21 osmeventplugin_api_version=$(shell grep LIBVERSION= $(srcdir)/libosmeventplugin.ver | sed 's/LIBVERSION=//')
22
23 libosmeventplugin_la_SOURCES = src/osmeventplugin.c
24 libosmeventplugin_la_LDFLAGS = -version-info $(osmeventplugin_api_version) \
25          -export-dynamic $(libosmeventplugin_version_script)
26 libosmeventplugin_la_LIBADD = -L../complib $(OSMV_LDADD) -losmcomp
27 libosmeventplugin_la_DEPENDENCIES = $(srcdir)/libosmeventplugin.map
28
29 libosmeventpluginincludedir = $(includedir)/infiniband/complib
30
31 libosmeventplugininclude_HEADERS =
32
33 # headers are distributed as part of the include dir
34 EXTRA_DIST = $(srcdir)/libosmeventplugin.map $(srcdir)/libosmeventplugin.ver