Whamcloud - gitweb
land v0.9.1 on HEAD, in preparation for a 1.0.x branch
[fs/lustre-release.git] / lustre / liblustre / Makefile.am
1 ## Liblustre excecutables & libraries Makefile
2 DEFS=
3
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
7
8 KFLAGS:=
9 CPPFLAGS = $(HAVE_EFENCE) -D_LARGEFILE64_SOURCE=1
10 LIBS = $(LIBEFENCE)
11
12 ## lustre components libs
13 LLIBS := ./libllite.a \
14          ../lov/liblov.a \
15          ../obdecho/libobdecho.a \
16          ../osc/libosc.a \
17          ../mdc/libmdc.a \
18          ../ldlm/libldlm.a \
19          ../ptlrpc/libptlrpc.a \
20          ../obdclass/liblustreclass.a \
21          ../lvfs/liblvfs.a
22
23 ## portals components libs
24 PTLLIBS := ../portals/utils/libptlctl.a \
25            ../portals/unals/libtcpnal.a \
26            ../portals/portals/libportals.a
27
28 ## sysio components libs
29 SYSIOLIBS := $(SYSIO)/drivers/native/libsysio_native.a \
30              $(SYSIO)/drivers/sockets/libsysio_sockets.a \
31              $(SYSIO)/src/libsysio.a \
32              $(SYSIO)/dev/stdfd/libsysio_stdfd.a
33
34 LLIB_EXEC= $(PTLLIBS) $(SYSIOLIBS) -lpthread
35
36 lib_LIBRARIES = 
37 noinst_LIBRARIES = libllite.a libtestcommon.a
38 libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c
39 libtestcommon_a_SOURCES = test_common.c
40
41 bin_PROGRAMS = libtest lltest recovery_small replay_single #test_lock_cancel
42
43 libtest_SOURCES = libtest.c  ../utils/parser.c ../utils/obd.c ../utils/lustre_cfg.c
44 libtest_LDADD := $(LLIBS) $(PTLLIBS) \
45                  $(LIBREADLINE) -lpthread 
46
47 liblustre.a : libllite.a
48         $(shell ./genlib.sh $(SYSIO) $(AR) $(LINK))
49
50 lltest_SOURCES = lltest.c
51 lltest_LDADD := ./libtestcommon.a $(LLIBS) $(LLIB_EXEC) $(LIBREADLINE)
52
53 recovery_small_SOURCES = recovery_small.c
54 recovery_small_LDADD := ./libtestcommon.a $(LLIBS) $(LLIB_EXEC) $(LIBREADLINE)
55
56 replay_single_SOURCES = replay_single.c
57 replay_single_LDADD := ./libtestcommon.a $(LLIBS) $(LLIB_EXEC) $(LIBREADLINE)
58
59 #test_lock_cancel_SOURCES = test_lock_cancel.c
60 #test_lock_cancel_LDADD :=  $(LLIBS) $(LLIB_EXEC) -lmpi -llam
61
62 include $(top_srcdir)/Rules
63