X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fliblustre%2FMakefile.am;h=e0d75b161278277653b06fd60e27e1050997c41c;hb=ffc62b1d8a51f53d51fc4e77375e0400accfdde5;hp=b831bd8b1e09c2b3bfb936af8480a3a8ed5c3c27;hpb=2dc9c16e770415d56839e1996015fec5fab93f29;p=fs%2Flustre-release.git diff --git a/lustre/liblustre/Makefile.am b/lustre/liblustre/Makefile.am index b831bd8..e0d75b1 100644 --- a/lustre/liblustre/Makefile.am +++ b/lustre/liblustre/Makefile.am @@ -1,40 +1,70 @@ ## Liblustre excecutables & libraries Makefile SUBDIRS = . tests -AM_CPPFLAGS = $(HAVE_EFENCE) -I$(SYSIO)/include -D_LARGEFILE64_SOURCE=1 $(LLCPPFLAGS) -I$(top_srcdir)/portals/unals +AM_CPPFLAGS = $(HAVE_EFENCE) -I$(SYSIO)/include -D_LARGEFILE64_SOURCE=1 \ + $(LLCPPFLAGS) -I$(top_srcdir)/lnet/ulnds AM_CFLAGS = $(LLCFLAGS) -LIBS = $(LIBEFENCE) +AM_LIBS = $(LIBEFENCE) + + LUSTRE_LIBS = libllite.a \ - $(top_builddir)/lov/liblov.a \ - $(top_builddir)/obdecho/libobdecho.a \ - $(top_builddir)/osc/libosc.a \ - $(top_builddir)/mdc/libmdc.a \ - $(top_builddir)/ptlrpc/libptlrpc.a \ - $(top_builddir)/obdclass/liblustreclass.a \ - $(top_builddir)/lvfs/liblvfs.a - -PTL_LIBS = $(top_builddir)/portals/utils/libuptlctl.a \ - $(top_builddir)/portals/unals/libtcpnal.a \ - $(top_builddir)/portals/portals/libportals.a - -SYSIO_LIBS = $(SYSIO)/drivers/native/libsysio_native.a \ - $(SYSIO)/drivers/sockets/libsysio_sockets.a \ - $(SYSIO)/src/libsysio.a \ - $(SYSIO)/dev/stdfd/libsysio_stdfd.a + $(top_builddir)/lustre/lov/liblov.a \ + $(top_builddir)/lustre/obdecho/libobdecho.a \ + $(top_builddir)/lustre/osc/libosc.a \ + $(top_builddir)/lustre/fid/libfid.a \ + $(top_builddir)/lustre/fld/libfld.a \ + $(top_builddir)/lustre/lmv/liblmv.a \ + $(top_builddir)/lustre/mdc/libmdc.a \ + $(top_builddir)/lustre/mgc/libmgc.a \ + $(top_builddir)/lustre/ptlrpc/libptlrpc.a \ + $(top_builddir)/lustre/obdclass/liblustreclass.a + +LND_LIBS = +if BUILD_USOCKLND +LND_LIBS += $(top_builddir)/lnet/ulnds/socklnd/libsocklnd.a +endif + +LNET_LIBS = $(top_builddir)/lnet/utils/libuptlctl.a \ + $(top_builddir)/lnet/lnet/liblnet.a + +SYSIO_LIBS = $(SYSIO)/lib/libsysio.a if LIBLUSTRE lib_LIBRARIES = liblustre.a noinst_LIBRARIES = libllite.a + +install-exec-hook: liblustre.so + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(libdir) + @list=$< ; for p in $$list; do \ + if test -f $$p; then \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$f"; \ + $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$f; \ + else :; fi; \ + done +else +install-exec-hook: endif -libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c llite_lib.h +libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c \ + lutil.c lutil.h llite_lib.h llite_cl.c \ + ../lclient/lcommon_cl.c ../lclient/glimpse.c ../lclient/lcommon_misc.c # for make rpms -- need cleanup -liblustre_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c +liblustre_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c \ + llite_lib.h llite_cl.c -liblustre.a : $(LUSTRE_LIBS) $(PTL_LIBS) $(SYSIO_LIBS) - $(srcdir)/genlib.sh $(SYSIO) $(AR) $(LINK) || ( rm -f $@; exit 1 ) +export CC +export LDFLAGS +export AR +export RANLIB + +liblustre.a : $(LUSTRE_LIBS) $(LND_LIBS) $(LNET_LIBS) $(SYSIO_LIBS) + sh $(srcdir)/genlib.sh "$(SYSIO)" "$(LIBS)" "$(LND_LIBS)" "$(PTHREAD_LIBS)" "$(CAP_LIBS)" "$(ZLIB)" EXTRA_DIST = genlib.sh + +CLEANFILES = liblsupport.a liblustre.so