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