Whamcloud - gitweb
- landed b_hd_cray_merge3
[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)/portals/unals
4 AM_CFLAGS = $(LLCFLAGS)
5 AM_LIBS = $(LIBEFENCE) $(LIBREADLINE)
6
7 LLIB_EXEC= $(top_builddir)/lustre/liblustre/liblustre.a -lcap -lpthread
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
14
15 if TESTS
16 noinst_PROGRAMS += echo_test
17 endif # TESTS
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     \
29         $(top_srcdir)/lustre/utils/obd.c                                \
30         $(top_srcdir)/lustre/utils/lustre_cfg.c
31
32 echo_test_CFLAGS = $(LL_CFLAGS)
33 echo_test_LDADD = $(top_builddir)/lustre/liblustre/liblsupport.a $(LIBREADLINE) -lcap -lpthread 
34 echo_test_DEPENDENCIES=$(top_builddir)/lustre/liblustre/liblsupport.a
35
36 sanity_SOURCES = sanity.c
37 sanity_CFLAGS = $(LL_CFLAGS)
38 sanity_LDADD := libtestcommon.a $(LLIB_EXEC)
39 sanity_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
40
41 recovery_small_SOURCES = recovery_small.c
42 recovery_small_CFLAGS = $(LL_CFLAGS)
43 recovery_small_LDADD := libtestcommon.a $(LLIB_EXEC) 
44 recovery_small_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
45
46 replay_single_SOURCES = replay_single.c
47 replay_single_CFLAGS = $(LL_CFLAGS)
48 replay_single_LDADD := libtestcommon.a $(LLIB_EXEC)
49 replay_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
50
51 replay_ost_single_SOURCES = replay_ost_single.c
52 replay_ost_single_CFLAGS = $(LL_CFLAGS)
53 replay_ost_single_LDADD := libtestcommon.a $(LLIB_EXEC)
54 replay_ost_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
55
56 if MPITESTS
57 test_lock_cancel_SOURCES = test_lock_cancel.c
58 test_lock_cancel_CFLAGS = $(LL_CFLAGS) -I/opt/lam/include
59 test_lock_cancel_LDADD :=  $(LLIB_EXEC)  -L/opt/lam/lib -lmpi -llam
60 endif
61
62