Whamcloud - gitweb
b=20355 formalize support for pthreads
[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)/lnet/ulnds
4 AM_CFLAGS = $(LLCFLAGS)
5 AM_LIBS = $(LIBEFENCE) $(LIBREADLINE)
6
7 LLIB_EXEC = $(top_builddir)/lustre/utils/liblustreapi.a $(top_builddir)/lustre/liblustre/liblustre.a $(CAP_LIBS) $(PTHREAD_LIBS) $(ZLIB)
8
9 CC = $(PTHREAD_CC)
10 LD = $(PTHREAD_CC)
11
12 if LIBLUSTRE
13 noinst_LIBRARIES = libtestcommon.a
14
15 if LIBLUSTRE_TESTS
16 if MPITESTS
17 SUBDIRS = mpi
18 endif # MPITESTS
19
20 noinst_PROGRAMS = sanity
21
22 if !CRAY_XT3
23 noinst_PROGRAMS += recovery_small replay_single replay_ost_single
24 endif # !CRAY_XT3
25
26 liblustre_testdir=$(libdir)/lustre/liblustre/tests
27 liblustre_test_PROGRAMS = $(noinst_PROGRAMS)
28 liblustre_test_LIBRARIES = $(noinst_LIBRARIES)
29
30 endif # LIBLUSTRE_TESTS
31 endif # LIBLUSTRE
32
33 DIST_SUBDIRS := mpi
34
35 libtestcommon_a_SOURCES = test_common.c test_common.h
36
37 sanity_SOURCES = sanity.c
38 sanity_CFLAGS = $(LL_CFLAGS) $(PTHREAD_CFLAGS)
39 sanity_LDFLAGS := $(PTHREAD_CFLAGS)
40 sanity_LDADD := libtestcommon.a $(LLIB_EXEC)
41 sanity_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
42
43 recovery_small_SOURCES = recovery_small.c
44 recovery_small_CFLAGS = $(LL_CFLAGS) $(PTHREAD_CFLAGS)
45 recovery_small_LDFLAGS := $(PTHREAD_CFLAGS)
46 recovery_small_LDADD := libtestcommon.a $(LLIB_EXEC) 
47 recovery_small_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
48
49 replay_single_SOURCES = replay_single.c
50 replay_single_CFLAGS = $(LL_CFLAGS) $(PTHREAD_CFLAGS)
51 replay_single_LDFLAGS := $(PTHREAD_CFLAGS)
52 replay_single_LDADD := libtestcommon.a $(LLIB_EXEC)
53 replay_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
54
55 replay_ost_single_SOURCES = replay_ost_single.c
56 replay_ost_single_CFLAGS = $(LL_CFLAGS) $(PTHREAD_CFLAGS)
57 replay_ost_single_LDFLAGS := $(PTHREAD_CFLAGS)
58 replay_ost_single_LDADD := libtestcommon.a $(LLIB_EXEC)
59 replay_ost_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a