1 ## Liblustre excecutables & libraries Makefile
4 AM_CPPFLAGS = $(HAVE_EFENCE) -I$(SYSIO)/include -D_LARGEFILE64_SOURCE=1 \
5 $(LLCPPFLAGS) -I$(top_srcdir)/lnet/ulnds
6 AM_CFLAGS = $(LLCFLAGS)
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
26 QUOTA_LIBS = $(top_builddir)/lustre/quota/libquota.a
31 LND_LIBS += $(top_builddir)/lnet/ulnds/socklnd/libsocklnd.a
34 LND_LIBS += $(top_builddir)/lnet/ulnds/ptllnd/libptllnd.a
37 LNET_LIBS = $(top_builddir)/lnet/utils/libuptlctl.a \
38 $(top_builddir)/lnet/lnet/liblnet.a \
39 $(top_builddir)/libcfs/libcfs/libcfsutil.a
41 SYSIO_LIBS = $(SYSIO)/lib/libsysio.a
44 lib_LIBRARIES = liblustre.a
45 noinst_LIBRARIES = libllite.a
47 install-exec-hook: liblustre.so
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; \
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
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
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)"
72 EXTRA_DIST = genlib.sh
74 CLEANFILES := liblsupport.a liblustre.so