Whamcloud - gitweb
liblustre: b=2862
[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= ../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 bin_PROGRAMS = $(def_tests) test_lock_cancel
15 else
16 bin_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  ../../utils/parser.c ../../utils/obd.c ../../utils/lustre_cfg.c
23 echo_test_CFLAGS = $(LL_CFLAGS)
24 echo_test_LDADD = ../liblsupport.a $(LIBREADLINE) -lcap -lpthread 
25 echo_test_DEPENDENCIES=$(top_builddir)/liblustre/liblsupport.a
26
27 sanity_SOURCES = sanity.c
28 sanity_CFLAGS = $(LL_CFLAGS)
29 sanity_LDADD := ./libtestcommon.a $(LLIB_EXEC)
30 sanity_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a ./libtestcommon.a
31
32 recovery_small_SOURCES = recovery_small.c
33 recovery_small_CFLAGS = $(LL_CFLAGS)
34 recovery_small_LDADD := ./libtestcommon.a $(LLIB_EXEC) 
35 recovery_small_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
36
37 replay_single_SOURCES = replay_single.c
38 replay_single_CFLAGS = $(LL_CFLAGS)
39 replay_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
40 replay_single_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
41
42 replay_ost_single_SOURCES = replay_ost_single.c
43 replay_ost_single_CFLAGS = $(LL_CFLAGS)
44 replay_ost_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
45 replay_ost_single_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
46
47 if MPITESTS
48 test_lock_cancel_SOURCES = test_lock_cancel.c
49 test_lock_cancel_CFLAGS = $(LL_CFLAGS) -I/opt/lam/include -L/opt/lam/lib
50 test_lock_cancel_LDADD :=  $(LLIB_EXEC) -lmpi -llam
51 endif
52
53