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