1 # Copyright (C) 2001 Cluster File Systems, Inc.
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
6 AUTOMAKE_OPTIONS = foreign
8 ALWAYS_SUBDIRS := include lvfs obdclass ldlm ptlrpc osc lov obdecho \
9 doc utils tests conf scripts autoconf
11 SERVER_SUBDIRS := ldiskfs obdfilter ost mds
13 CLIENT_SUBDIRS := mdc llite
15 LIBLUSTRE_SUBDIRS := liblustre
17 SUBDIRS := $(ALWAYS_SUBDIRS)
20 SUBDIRS += $(SERVER_SUBDIRS)
24 SUBDIRS += $(CLIENT_SUBDIRS)
27 # this needs to be after the client subdirs
30 SUBDIRS += $(CLIENT_SUBDIRS)
32 SUBDIRS += $(LIBLUSTRE_SUBDIRS)
35 DIST_SUBDIRS := $(ALWAYS_SUBDIRS) $(SERVER_SUBDIRS) $(CLIENT_SUBDIRS) $(LIBLUSTRE_SUBDIRS)
37 EXTRA_DIST = BUGS FDL kernel_patches
40 LDISKFS = ldiskfs-sources
42 $(MAKE) sources -C ldiskfs
46 $(MAKE) sources -C lvfs
48 sources: $(LDISKFS) lvfs-sources lustre_build_version
50 all-recursive: lustre_build_version
53 perl $(top_builddir)/lustre/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
54 echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
55 cmp -s $(top_builddir)/lustre/include/linux/lustre_build_version.h tmpver \
58 mv tmpver $(top_builddir)/lustre/include/linux/lustre_build_version.h
61 CSTKO=/tmp/checkstack.orig
64 [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv ${CSTK} ${CSTKO} || true
65 for i in ${SUBDIRS} portals/knals/*; do \
66 MOD=$$i/`basename $$i`.o; \
67 [ -f $$MOD ] && objdump -d $$MOD | perl tests/checkstack.pl; \
68 done | sort -nr > ${CSTK}
69 [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
72 [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO}
75 rm -f ${CSTK} ${CSTKO}