Whamcloud - gitweb
a99a4bbcfefb2dc501aa519f1ba56753304eefb5
[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 bin_PROGRAMS = echo_test sanity recovery_small replay_single test_lock_cancel \
19     replay_ost_single
20
21 echo_test_SOURCES = echo_test.c  ../../utils/parser.c ../../utils/obd.c ../../utils/lustre_cfg.c
22 echo_test_LDADD = ../liblsupport.a $(LIBREADLINE) -lpthread 
23 echo_test_DEPENDENCIES=$(top_srcdir)/liblustre/liblsupport.a
24
25 sanity_SOURCES = sanity.c
26 sanity_LDADD := ./libtestcommon.a $(LLIB_EXEC)
27 sanity_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a ./libtestcommon.a
28
29 recovery_small_SOURCES = recovery_small.c
30 recovery_small_LDADD := ./libtestcommon.a $(LLIB_EXEC) 
31 recovery_small_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a
32
33 replay_single_SOURCES = replay_single.c
34 replay_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
35 replay_single_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a
36
37 test_lock_cancel_SOURCES = test_lock_cancel.c
38 test_lock_cancel_LDADD :=  $(LLIB_EXEC) -lmpi -llam
39
40 replay_ost_single_SOURCES = replay_ost_single.c
41 replay_ost_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
42 replay_ost_single_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a
43
44 include $(top_srcdir)/Rules
45