1 ## Liblustre excecutables & libraries Makefile
3 # FIXME: we disable building any executables for this moment.
6 AM_CPPFLAGS = $(HAVE_EFENCE) -I$(SYSIO)/include -D_LARGEFILE64_SOURCE=1 \
7 $(LLCPPFLAGS) -I$(top_srcdir)/portals/unals
8 AM_CFLAGS = $(LLCFLAGS)
12 LUSTRE_LIBS = liblutils.a 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/mdc/libmdc.a \
17 $(top_builddir)/lustre/ptlrpc/libptlrpc.a \
18 $(top_builddir)/lustre/sec/libptlrpcs.a \
19 $(top_builddir)/lustre/obdclass/liblustreclass.a \
20 $(top_builddir)/lustre/lvfs/liblvfs.a
23 PTL_LIBS = $(top_builddir)/portals/utils/libuptlctl.a \
24 $(top_builddir)/portals/unals/libtcpnal.a \
25 $(top_builddir)/portals/portals/libportals.a
27 PTL_LIBS = $(top_builddir)/portals/utils/libuptlctl.a \
28 $(CRAY_PORTALS_PATH)/lib_TV/snos64/libportals.a
31 SYSIO_LIBS = $(SYSIO)/lib/libsysio.a
34 lib_LIBRARIES = liblustre.a
35 noinst_LIBRARIES = liblutils.a libllite.a
37 install-exec-hook: liblustre.so
39 $(mkinstalldirs) $(DESTDIR)$(libdir)
40 @list=$< ; for p in $$list; do \
41 if test -f $$p; then \
42 f="`echo $$p | sed -e 's|^.*/||'`"; \
43 echo " $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f"; \
44 $(libLIBRARIES_INSTALL) $$p $(DESTDIR)$(libdir)/$$f; \
51 liblutils_a_SOURCES = lutil.c lutil.h
53 libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c \
56 # for make rpms -- need cleanup
57 liblustre_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c
59 liblustre.a : $(LUSTRE_LIBS) $(PTL_LIBS) $(SYSIO_LIBS)
60 sh $(srcdir)/genlib.sh $(SYSIO) $(CRAY_PORTALS_PATH)
62 EXTRA_DIST = genlib.sh
64 CLEANFILES := liblsupport.a liblustre.so