1 ## Liblustre excecutables & libraries Makefile
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)
7 LLIB_EXEC = $(top_builddir)/lustre/utils/liblustreapi.a $(top_builddir)/lustre/liblustre/liblustre.a $(CAP_LIBS) $(PTHREAD_LIBS)
10 noinst_LIBRARIES = libtestcommon.a
13 noinst_PROGRAMS = sanity echo_test
16 noinst_PROGRAMS += recovery_small replay_single replay_ost_single
20 noinst_PROGRAMS += test_lock_cancel
23 liblustre_testdir=$(libdir)/lustre/liblustre/tests
24 liblustre_test_PROGRAMS = $(noinst_PROGRAMS)
25 liblustre_test_LIBRARIES = $(noinst_LIBRARIES)
27 endif # LIBLUSTRE_TESTS
30 libtestcommon_a_SOURCES = test_common.c test_common.h
32 echo_test_SOURCES = echo_test.c $(top_srcdir)/lustre/utils/parser.c $(top_srcdir)/lustre/utils/obd.c $(top_srcdir)/lustre/utils/lustre_cfg.c
33 echo_test_CFLAGS = $(LL_CFLAGS)
34 echo_test_LDADD = $(top_builddir)/lustre/liblustre/liblsupport.a $(LIBREADLINE) $(CAP_LIBS) $(PTHREAD_LIBS)
35 echo_test_DEPENDENCIES=$(top_builddir)/lustre/liblustre/liblsupport.a
37 sanity_SOURCES = sanity.c
38 sanity_CFLAGS = $(LL_CFLAGS)
39 sanity_LDADD := libtestcommon.a $(LLIB_EXEC)
40 sanity_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
42 recovery_small_SOURCES = recovery_small.c
43 recovery_small_CFLAGS = $(LL_CFLAGS)
44 recovery_small_LDADD := libtestcommon.a $(LLIB_EXEC)
45 recovery_small_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
47 replay_single_SOURCES = replay_single.c
48 replay_single_CFLAGS = $(LL_CFLAGS)
49 replay_single_LDADD := libtestcommon.a $(LLIB_EXEC)
50 replay_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
52 replay_ost_single_SOURCES = replay_ost_single.c
53 replay_ost_single_CFLAGS = $(LL_CFLAGS)
54 replay_ost_single_LDADD := libtestcommon.a $(LLIB_EXEC)
55 replay_ost_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
58 test_lock_cancel_SOURCES = test_lock_cancel.c
59 test_lock_cancel_CFLAGS = $(LL_CFLAGS) -I/opt/lam/include
60 test_lock_cancel_LDADD := $(LLIB_EXEC) -L/opt/lam/lib -lmpi -llam