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 SUBDIRS = include ldiskfs lvfs obdclass lov ldlm sec ptlrpc \
9 obdecho osc mdc lmv mds obdfilter ost llite cobd ptlbd smfs snapfs \
10 cmobd liblustre doc utils tests conf scripts autoconf
12 EXTRA_DIST = BUGS FDL Rules.in kernel_patches
15 LDISKFS = ldiskfs-sources
17 $(MAKE) sources -C ldiskfs
21 $(MAKE) sources -C lvfs
23 sources: $(LDISKFS) lvfs-sources lustre_build_version
25 all-recursive: lustre_build_version
28 perl $(top_builddir)/lustre/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
29 echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
30 cmp -s $(top_builddir)/lustre/include/linux/lustre_build_version.h tmpver \
33 mv tmpver $(top_builddir)/lustre/include/linux/lustre_build_version.h
36 CSTKO=/tmp/checkstack.orig
39 [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv ${CSTK} ${CSTKO} || true
40 for i in ${SUBDIRS} portals/knals/*; do \
41 MOD=$$i/`basename $$i`.o; \
42 [ -f $$MOD ] && objdump -d $$MOD | perl tests/checkstack.pl; \
43 done | sort -nr > ${CSTK}
44 [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
47 [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO}
50 rm -f ${CSTK} ${CSTKO}