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)
10 AM_LIBS = $(LIBEFENCE)
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/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_LIBS)/libportals.a
31 SYSIO_LIBS = $(SYSIO)/lib/libsysio.a
34 lib_LIBRARIES = liblustre.a
35 noinst_LIBRARIES = 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 libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c \
52 lutil.c lutil.h llite_lib.h
54 # for make rpms -- need cleanup
55 liblustre_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c
57 liblustre.a : $(LUSTRE_LIBS) $(PTL_LIBS) $(SYSIO_LIBS)
58 sh $(srcdir)/genlib.sh "$(SYSIO)" "$(CRAY_PORTALS_LIBS)" "$(LIBS)"
60 EXTRA_DIST = genlib.sh
62 CLEANFILES := liblsupport.a liblustre.so