1 ## Liblustre excecutables & libraries Makefile
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
9 CPPFLAGS = $(HAVE_EFENCE) -D_LARGEFILE64_SOURCE=1
13 LLIB_EXEC= ../liblustre.a -lpthread
15 noinst_LIBRARIES = libtestcommon.a
16 libtestcommon_a_SOURCES = test_common.c
18 def_tests = echo_test sanity recovery_small replay_single replay_ost_single
21 bin_PROGRAMS = $(def_tests) test_lock_cancel
23 bin_PROGRAMS = $(def_tests)
26 echo_test_SOURCES = echo_test.c ../../utils/parser.c ../../utils/obd.c ../../utils/lustre_cfg.c
27 echo_test_LDADD = ../liblsupport.a $(LIBREADLINE) -lpthread
28 echo_test_DEPENDENCIES=$(top_srcdir)/liblustre/liblsupport.a
30 sanity_SOURCES = sanity.c
31 sanity_LDADD := ./libtestcommon.a $(LLIB_EXEC)
32 sanity_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a ./libtestcommon.a
34 recovery_small_SOURCES = recovery_small.c
35 recovery_small_LDADD := ./libtestcommon.a $(LLIB_EXEC)
36 recovery_small_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a
38 replay_single_SOURCES = replay_single.c
39 replay_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
40 replay_single_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a
42 replay_ost_single_SOURCES = replay_ost_single.c
43 replay_ost_single_LDADD := ./libtestcommon.a $(LLIB_EXEC)
44 replay_ost_single_DEPENDENCIES = $(top_srcdir)/liblustre/liblustre.a
47 test_lock_cancel_SOURCES = test_lock_cancel.c
48 test_lock_cancel_LDADD := $(LLIB_EXEC) -lmpi -llam
51 include $(top_srcdir)/Rules