1 ## Liblustre excecutables & libraries Makefile
4 LL_CFLAGS = -I$(SYSIO)/include
6 LLIB_EXEC= ../liblustre.a -lpthread
8 noinst_LIBRARIES = libtestcommon.a
9 libtestcommon_a_SOURCES = test_common.c
11 def_tests = echo_test sanity recovery_small replay_single replay_ost_single
14 bin_PROGRAMS = $(def_tests) test_lock_cancel
16 bin_PROGRAMS = $(def_tests)
19 echo_test_SOURCES = echo_test.c ../../utils/parser.c ../../utils/obd.c ../../utils/lustre_cfg.c
20 echo_test_CFLAGS = $(LL_CFLAGS)
21 echo_test_LDADD = ../liblsupport.a $(LIBREADLINE) -lpthread
22 echo_test_DEPENDENCIES=$(top_builddir)/liblustre/liblsupport.a
24 sanity_SOURCES = sanity.c
25 sanity_CFLAGS = $(LL_CFLAGS)
26 sanity_LDADD := ./libtestcommon.a $(LLIB_EXEC)
27 sanity_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a ./libtestcommon.a
29 recovery_small_SOURCES = recovery_small.c
30 recovery_small_CFLAGS = $(LL_CFLAGS)
31 recovery_small_LDADD := ./libtestcommon.a $(LLIB_EXEC)
32 recovery_small_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
34 replay_single_SOURCES = replay_single.c
35 replay_single_CFLAGS = $(LL_CFLAGS)
36 replay_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
37 replay_single_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
39 replay_ost_single_SOURCES = replay_ost_single.c
40 replay_ost_single_CFLAGS = $(LL_CFLAGS)
41 replay_ost_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
42 replay_ost_single_DEPENDENCIES = $(top_builddir)/liblustre/liblustre.a
45 test_lock_cancel_SOURCES = test_lock_cancel.c
46 test_lock_cancel_CFLAGS = $(LL_CFLAGS) -I/opt/lam/include -L/opt/lam/lib
47 test_lock_cancel_LDADD := $(LLIB_EXEC) -lmpi -llam
50 include $(top_srcdir)/Rules