Whamcloud - gitweb
LU-1422 lnet: eliminate obsolete Cray Catamount support
[fs/lustre-release.git] / lustre / liblustre / tests / Makefile.am
1 ## Liblustre excecutables & libraries Makefile
2
3 AM_CPPFLAGS = -I$(SYSIO)/include -I/opt/lam/include $(LLCPPFLAGS) -I$(top_srcdir)/lnet/ulnds
4 AM_CFLAGS = $(LLCFLAGS)
5 AM_LIBS = $(LIBEFENCE) $(LIBREADLINE)
6
7 LLIB_EXEC = $(top_builddir)/lustre/utils/liblustreapi.a $(top_builddir)/lustre/liblustre/liblustre.a $(CAP_LIBS) $(PTHREAD_LIBS) $(ZLIB)
8
9 if LIBLUSTRE
10 noinst_LIBRARIES = libtestcommon.a
11
12 if LIBLUSTRE_TESTS
13 if MPITESTS
14 SUBDIRS = mpi
15 endif # MPITESTS
16
17 noinst_PROGRAMS = sanity
18
19 noinst_PROGRAMS += recovery_small replay_single replay_ost_single
20
21 liblustre_testdir=$(libdir)/lustre/liblustre/tests
22 liblustre_test_PROGRAMS = $(noinst_PROGRAMS)
23 liblustre_test_LIBRARIES = $(noinst_LIBRARIES)
24
25 endif # LIBLUSTRE_TESTS
26 endif # LIBLUSTRE
27
28 DIST_SUBDIRS := mpi
29
30 libtestcommon_a_SOURCES = test_common.c test_common.h
31
32 sanity_SOURCES = sanity.c
33 sanity_CFLAGS = $(LL_CFLAGS)
34 sanity_LDADD := libtestcommon.a $(LLIB_EXEC)
35 sanity_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
36
37 recovery_small_SOURCES = recovery_small.c
38 recovery_small_CFLAGS = $(LL_CFLAGS)
39 recovery_small_LDADD := libtestcommon.a $(LLIB_EXEC) 
40 recovery_small_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
41
42 replay_single_SOURCES = replay_single.c
43 replay_single_CFLAGS = $(LL_CFLAGS)
44 replay_single_LDADD := libtestcommon.a $(LLIB_EXEC)
45 replay_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
46
47 replay_ost_single_SOURCES = replay_ost_single.c
48 replay_ost_single_CFLAGS = $(LL_CFLAGS)
49 replay_ost_single_LDADD := libtestcommon.a $(LLIB_EXEC)
50 replay_ost_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a