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