Whamcloud - gitweb
land b_smallfix 20040407_1414:
[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 -lpthread
8
9 noinst_LIBRARIES = libtestcommon.a
10 libtestcommon_a_SOURCES = test_common.c test_common.h
11
12 def_tests = echo_test sanity recovery_small replay_single replay_ost_single
13
14 if MPITESTS
15 bin_PROGRAMS = $(def_tests) test_lock_cancel
16 else
17 bin_PROGRAMS = $(def_tests)
18 endif
19
20 echo_test_SOURCES = echo_test.c  ../../utils/parser.c ../../utils/obd.c ../../utils/lustre_cfg.c
21 echo_test_CFLAGS = $(LL_CFLAGS)
22 echo_test_LDADD = ../liblsupport.a $(LIBREADLINE) -lpthread 
23 echo_test_DEPENDENCIES=$(top_builddir)/liblustre/liblsupport.a
24
25 sanity_SOURCES = sanity.c
26 sanity_CFLAGS = $(LL_CFLAGS)
27 sanity_LDADD := ./libtestcommon.a $(LLIB_EXEC)
28 sanity_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a ./libtestcommon.a
29
30 recovery_small_SOURCES = recovery_small.c
31 recovery_small_CFLAGS = $(LL_CFLAGS)
32 recovery_small_LDADD := ./libtestcommon.a $(LLIB_EXEC) 
33 recovery_small_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
34
35 replay_single_SOURCES = replay_single.c
36 replay_single_CFLAGS = $(LL_CFLAGS)
37 replay_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
38 replay_single_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
39
40 replay_ost_single_SOURCES = replay_ost_single.c
41 replay_ost_single_CFLAGS = $(LL_CFLAGS)
42 replay_ost_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
43 replay_ost_single_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
44
45 if MPITESTS
46 test_lock_cancel_SOURCES = test_lock_cancel.c
47 test_lock_cancel_CFLAGS = $(LL_CFLAGS) -I/opt/lam/include -L/opt/lam/lib
48 test_lock_cancel_LDADD :=  $(LLIB_EXEC) -lmpi -llam
49 endif
50
51