Whamcloud - gitweb
liblustre:
[fs/lustre-release.git] / lustre / liblustre / tests / Makefile.am
1 ## Liblustre excecutables & libraries Makefile
2 DEFS=
3
4 LL_CFLAGS = -I$(SYSIO)/include
5
6 LLIB_EXEC= ../liblustre.a -lpthread
7
8 noinst_LIBRARIES = libtestcommon.a
9 libtestcommon_a_SOURCES = test_common.c
10
11 def_tests = echo_test sanity recovery_small replay_single replay_ost_single
12
13 if MPITESTS
14 bin_PROGRAMS = $(def_tests) test_lock_cancel
15 else
16 bin_PROGRAMS = $(def_tests)
17 endif
18
19 echo_test_SOURCES = echo_test.c  ../../utils/parser.c ../../utils/obd.c ../../utils/lustre_cfg.c
20 echo_test_CFLAGS = $(LL_CFLAGS)
21 echo_test_LDADD = ../liblsupport.a $(LIBREADLINE) -lpthread 
22 echo_test_DEPENDENCIES=$(top_builddir)/liblustre/liblsupport.a
23
24 sanity_SOURCES = sanity.c
25 sanity_CFLAGS = $(LL_CFLAGS)
26 sanity_LDADD := ./libtestcommon.a $(LLIB_EXEC)
27 sanity_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a ./libtestcommon.a
28
29 recovery_small_SOURCES = recovery_small.c
30 recovery_small_CFLAGS = $(LL_CFLAGS)
31 recovery_small_LDADD := ./libtestcommon.a $(LLIB_EXEC) 
32 recovery_small_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
33
34 replay_single_SOURCES = replay_single.c
35 replay_single_CFLAGS = $(LL_CFLAGS)
36 replay_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
37 replay_single_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
38
39 replay_ost_single_SOURCES = replay_ost_single.c
40 replay_ost_single_CFLAGS = $(LL_CFLAGS)
41 replay_ost_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
42 replay_ost_single_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
43
44 if MPITESTS
45 test_lock_cancel_SOURCES = test_lock_cancel.c
46 test_lock_cancel_CFLAGS = $(LL_CFLAGS) -I/opt/lam/include -L/opt/lam/lib
47 test_lock_cancel_LDADD :=  $(LLIB_EXEC) -lmpi -llam
48 endif
49
50 include $(top_srcdir)/Rules
51