Whamcloud - gitweb
land lustre part of b_hd_sec on HEAD.
[fs/lustre-release.git] / lustre / liblustre / Makefile.am
1 ## Liblustre excecutables & libraries Makefile
2
3 # FIXME: we disable building any executables for this moment.
4 #SUBDIRS = . tests
5
6 AM_CPPFLAGS = $(HAVE_EFENCE) -I$(SYSIO)/include -D_LARGEFILE64_SOURCE=1 \
7               $(LLCPPFLAGS) -I$(top_srcdir)/portals/unals
8 AM_CFLAGS = $(LLCFLAGS)
9
10 LIBS = $(LIBEFENCE)
11
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
21
22 if !CRAY_PORTALS
23 PTL_LIBS =    $(top_builddir)/portals/utils/libuptlctl.a \
24               $(top_builddir)/portals/unals/libtcpnal.a \
25               $(top_builddir)/portals/portals/libportals.a
26 else
27 PTL_LIBS =    $(top_builddir)/portals/utils/libuptlctl.a \
28               $(CRAY_PORTALS_PATH)/lib_TV/snos64/libportals.a
29 endif
30
31 SYSIO_LIBS =  $(SYSIO)/lib/libsysio.a
32
33 if LIBLUSTRE
34 lib_LIBRARIES = liblustre.a
35 noinst_LIBRARIES = liblutils.a libllite.a
36
37 install-exec-hook: liblustre.so
38         @$(NORMAL_INSTALL)
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; \
45           else :; fi; \
46         done
47 else
48 install-exec-hook:
49 endif
50
51 liblutils_a_SOURCES = lutil.c lutil.h
52
53 libllite_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c \
54                      llite_lib.h
55
56 # for make rpms -- need cleanup
57 liblustre_a_SOURCES = llite_lib.c super.c namei.c rw.c file.c dir.c
58
59 liblustre.a : $(LUSTRE_LIBS) $(PTL_LIBS) $(SYSIO_LIBS)
60         sh $(srcdir)/genlib.sh $(SYSIO) $(CRAY_PORTALS_PATH)
61
62 EXTRA_DIST = genlib.sh
63
64 CLEANFILES := liblsupport.a liblustre.so