Whamcloud - gitweb
b=20101 lfs getstripe -d test for sanity 27w
[fs/lustre-release.git] / lustre / liblustre / Makefile.am
1 ## Liblustre excecutables & libraries Makefile
2 SUBDIRS = . tests
3
4 AM_CPPFLAGS = $(HAVE_EFENCE) -I$(SYSIO)/include -D_LARGEFILE64_SOURCE=1 \
5               $(LLCPPFLAGS) -I$(top_srcdir)/lnet/ulnds
6 AM_CFLAGS = $(LLCFLAGS)
7
8 AM_LIBS = $(LIBEFENCE)
9
10
11
12 LUSTRE_LIBS = libllite.a \
13               $(top_builddir)/lustre/lov/liblov.a \
14               $(top_builddir)/lustre/obdecho/libobdecho.a \
15               $(top_builddir)/lustre/osc/libosc.a \
16               $(top_builddir)/lustre/fid/libfid.a \
17               $(top_builddir)/lustre/fld/libfld.a \
18               $(top_builddir)/lustre/lmv/liblmv.a \
19               $(top_builddir)/lustre/mdc/libmdc.a \
20               $(top_builddir)/lustre/mgc/libmgc.a \
21               $(top_builddir)/lustre/ptlrpc/libptlrpc.a \
22               $(top_builddir)/lustre/obdclass/liblustreclass.a \
23               $(top_builddir)/lustre/lvfs/liblvfs.a
24
25 if LIBLUSTRE
26 QUOTA_LIBS = $(top_builddir)/lustre/quota/libquota.a
27 endif
28
29 LND_LIBS =
30 if BUILD_USOCKLND
31 LND_LIBS +=    $(top_builddir)/lnet/ulnds/socklnd/libsocklnd.a
32 endif
33 if BUILD_UPTLLND
34 LND_LIBS +=   $(top_builddir)/lnet/ulnds/ptllnd/libptllnd.a
35 endif
36
37 LNET_LIBS =   $(top_builddir)/lnet/utils/libuptlctl.a \
38               $(top_builddir)/lnet/lnet/liblnet.a \
39               $(top_builddir)/libcfs/libcfs/libcfsutil.a
40
41 SYSIO_LIBS =  $(SYSIO)/lib/libsysio.a
42
43 if LIBLUSTRE
44 lib_LIBRARIES = liblustre.a
45 noinst_LIBRARIES = libllite.a
46
47 install-exec-hook: liblustre.so
48         @$(NORMAL_INSTALL)
49         $(mkinstalldirs) $(DESTDIR)$(libdir)
50         @list=$< ; for p in $$list; do \
51           if test -f $$p; then \
52             f="`echo $$p | sed -e 's|^.*/||'`"; \
53             echo " $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f"; \
54             $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f; \
55           else :; fi; \
56         done
57 else
58 install-exec-hook:
59 endif
60
61 libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c \
62                      lutil.c lutil.h llite_lib.h llite_cl.c \
63                      ../lclient/lcommon_cl.c ../lclient/glimpse.c ../lclient/lcommon_misc.c
64
65 # for make rpms -- need cleanup
66 liblustre_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c \
67                      llite_lib.h llite_cl.c
68
69 liblustre.a : $(LUSTRE_LIBS) $(LND_LIBS) $(LNET_LIBS) $(SYSIO_LIBS) $(QUOTA_LIBS)
70         sh $(srcdir)/genlib.sh "$(SYSIO)" "$(LIBS)" "$(LND_LIBS)" "$(PTHREAD_LIBS)" "$(QUOTA_LIBS)" "$(CAP_LIBS)" "$(ZLIB)"
71
72 EXTRA_DIST = genlib.sh
73
74 CLEANFILES := liblsupport.a liblustre.so