Whamcloud - gitweb
75943ff548c98607a53c1daafecaf7f095a1e6a1
[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)
8
9 if LIBLUSTRE
10 noinst_LIBRARIES = libtestcommon.a
11
12 if LIBLUSTRE_TESTS
13 noinst_PROGRAMS = sanity echo_test
14
15 if !CRAY_XT3
16 noinst_PROGRAMS += recovery_small replay_single replay_ost_single
17 endif # !CRAY_XT3
18
19 if MPITESTS
20 noinst_PROGRAMS += test_lock_cancel
21 endif # MPITESTS
22
23 endif # LIBLUSTRE_TESTS
24 endif # LIBLUSTRE
25
26 libtestcommon_a_SOURCES = test_common.c test_common.h
27
28 echo_test_SOURCES = echo_test.c  $(top_srcdir)/lustre/utils/parser.c $(top_srcdir)/lustre/utils/obd.c $(top_srcdir)/lustre/utils/lustre_cfg.c
29 echo_test_CFLAGS = $(LL_CFLAGS)
30 echo_test_LDADD = $(top_builddir)/lustre/liblustre/liblsupport.a $(LIBREADLINE) $(CAP_LIBS) $(PTHREAD_LIBS) 
31 echo_test_DEPENDENCIES=$(top_builddir)/lustre/liblustre/liblsupport.a
32
33 sanity_SOURCES = sanity.c
34 sanity_CFLAGS = $(LL_CFLAGS)
35 sanity_LDADD := libtestcommon.a $(LLIB_EXEC)
36 sanity_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
37
38 recovery_small_SOURCES = recovery_small.c
39 recovery_small_CFLAGS = $(LL_CFLAGS)
40 recovery_small_LDADD := libtestcommon.a $(LLIB_EXEC) 
41 recovery_small_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
42
43 replay_single_SOURCES = replay_single.c
44 replay_single_CFLAGS = $(LL_CFLAGS)
45 replay_single_LDADD := libtestcommon.a $(LLIB_EXEC)
46 replay_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
47
48 replay_ost_single_SOURCES = replay_ost_single.c
49 replay_ost_single_CFLAGS = $(LL_CFLAGS)
50 replay_ost_single_LDADD := libtestcommon.a $(LLIB_EXEC)
51 replay_ost_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
52
53 if MPITESTS
54 test_lock_cancel_SOURCES = test_lock_cancel.c
55 test_lock_cancel_CFLAGS = $(LL_CFLAGS) -I/opt/lam/include
56 test_lock_cancel_LDADD :=  $(LLIB_EXEC)  -L/opt/lam/lib -lmpi -llam
57 endif
58
59