-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
26 lines (20 loc) · 885 Bytes
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
AM_CFLAGS = -g -Wall -D_GNU_SOURCE
mlx5_version_script = @MLX5_VERSION_SCRIPT@
MLX5_SOURCES = src/buf.c src/cq.c src/dbrec.c src/mlx5.c src/qp.c src/srq.c src/verbs.c
noinst_HEADERS = src/bitmap.h src/doorbell.h src/list.h src/mlx5-abi.h src/mlx5.h src/wqe.h
if HAVE_IBV_DEVICE_LIBRARY_EXTENSION
lib_LTLIBRARIES = src/libmlx5.la
src_libmlx5_la_SOURCES = $(MLX5_SOURCES)
src_libmlx5_la_LDFLAGS = -avoid-version -release @IBV_DEVICE_LIBRARY_EXTENSION@ \
$(mlx5_version_script)
mlx5confdir = $(sysconfdir)/libibverbs.d
mlx5conf_DATA = mlx5.driver
else
mlx5libdir = $(libdir)/infiniband
mlx5lib_LTLIBRARIES = src/mlx5.la
src_mlx5_la_SOURCES = $(MLX5_SOURCES)
src_mlx5_la_LDFLAGS = -avoid-version -module $(mlx5_version_script)
endif
EXTRA_DIST = src/mlx5.map libmlx5.spec.in mlx5.driver
dist-hook: libmlx5.spec
cp libmlx5.spec $(distdir)