Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-5541 build: build static and dynamic liblustreapi
[fs/lustre-release.git]
/
lustre
/
tests
/
mpi
/
Makefile.am
diff --git
a/lustre/tests/mpi/Makefile.am
b/lustre/tests/mpi/Makefile.am
index
bf0c1cb
..
a1a4246
100644
(file)
--- a/
lustre/tests/mpi/Makefile.am
+++ b/
lustre/tests/mpi/Makefile.am
@@
-1,17
+1,31
@@
# Lustre MPI test Makefile
# Lustre MPI test Makefile
-AM_CPPFLAGS = $(LLCPPFLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS
-AM_CFLAGS = $(LLCFLAGS)
+AM_CFLAGS := -fPIC \
+ -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -DLUSTRE_UTILS=1
+
+LIBCFS := $(top_builddir)/libcfs/libcfs/libcfs.a
+LIBLUSTREAPI = $(top_builddir)/lustre/utils/liblustreapi.la
CC = @MPICC_WRAPPER@
CC = @MPICC_WRAPPER@
-noinst_PROGRAMS = parallel_grouplock write_append_truncate createmany_mpi
-noinst_PROGRAMS += mdsrate write_disjoint
+THETESTS = parallel_grouplock write_append_truncate createmany_mpi \
+ mdsrate write_disjoint cascading_rw
+
+if TESTS
+if MPITESTS
testdir = $(libdir)/lustre/tests
testdir = $(libdir)/lustre/tests
-test_SCRIPTS = $(noinst_PROGRAMS)
+test_PROGRAMS = $(THETESTS)
+else
+noinst_PROGRAMS = $(THETESTS)
+endif
+else
+noinst_PROGRAMS = $(THETESTS)
+endif
-write_append_truncate_SOURCES=write_append_truncate.c
-write_disjoint_SOURCES=write_disjoint.c
createmany_mpi_SOURCES=createmany-mpi.c
parallel_grouplock_SOURCES=parallel_grouplock.c lp_utils.c lp_utils.h
createmany_mpi_SOURCES=createmany-mpi.c
parallel_grouplock_SOURCES=parallel_grouplock.c lp_utils.c lp_utils.h
+
+cascading_rw_SOURCES=cascading_rw.c lp_utils.c lp_utils.h
+cascading_rw_LDADD=$(LIBLUSTREAPI) $(LIBCFS)
+
mdsrate_SOURCES=mdsrate.c
mdsrate_SOURCES=mdsrate.c
-mdsrate_LDADD=
-L$(top_builddir)/lustre/utils -llustreapi
+mdsrate_LDADD=
$(LIBLUSTREAPI) $(LIBCFS)