1 ## Liblustre excecutables & libraries Makefile
3 AM_CPPFLAGS = -I$(SYSIO)/include -I/opt/lam/include $(LLCPPFLAGS) -I$(top_srcdir)/portals/unals
4 AM_CFLAGS = $(LLCFLAGS)
5 LIBS = $(LIBEFENCE) $(LIBREADLINE)
7 LLIB_EXEC= $(top_builddir)/lustre/liblustre/liblustre.a -lcap -lpthread
10 noinst_LIBRARIES = libtestcommon.a
11 def_tests = echo_test sanity recovery_small replay_single replay_ost_single
14 noinst_PROGRAMS = $(def_tests) test_lock_cancel
16 noinst_PROGRAMS = $(def_tests)
20 libtestcommon_a_SOURCES = test_common.c test_common.h
22 echo_test_SOURCES = echo_test.c $(top_srcdir)/lustre/utils/parser.c \
23 $(top_srcdir)/lustre/utils/obd.c \
24 $(top_srcdir)/lustre/utils/lustre_cfg.c
26 echo_test_CFLAGS = $(LL_CFLAGS)
27 echo_test_LDADD = $(top_builddir)/lustre/liblustre/liblsupport.a $(LIBREADLINE) -lcap -lpthread
28 echo_test_DEPENDENCIES=$(top_builddir)/lustre/liblustre/liblsupport.a
30 sanity_SOURCES = sanity.c
31 sanity_CFLAGS = $(LL_CFLAGS)
32 sanity_LDADD := libtestcommon.a $(LLIB_EXEC)
33 sanity_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
35 recovery_small_SOURCES = recovery_small.c
36 recovery_small_CFLAGS = $(LL_CFLAGS)
37 recovery_small_LDADD := libtestcommon.a $(LLIB_EXEC)
38 recovery_small_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
40 replay_single_SOURCES = replay_single.c
41 replay_single_CFLAGS = $(LL_CFLAGS)
42 replay_single_LDADD := libtestcommon.a $(LLIB_EXEC)
43 replay_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
45 replay_ost_single_SOURCES = replay_ost_single.c
46 replay_ost_single_CFLAGS = $(LL_CFLAGS)
47 replay_ost_single_LDADD := libtestcommon.a $(LLIB_EXEC)
48 replay_ost_single_DEPENDENCIES = $(top_builddir)/lustre/liblustre/liblustre.a libtestcommon.a
51 test_lock_cancel_SOURCES = test_lock_cancel.c
52 test_lock_cancel_CFLAGS = $(LL_CFLAGS) -I/opt/lam/include
53 test_lock_cancel_LDADD := $(LLIB_EXEC) -L/opt/lam/lib -lmpi -llam