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 portals ldiskfs lvfs obdclass lov ldlm ptlrpc \
9 obdecho osc mdc mds obdfilter ost llite cobd ptlbd snapfs smfs \
10 liblustre doc utils tests conf scripts
12 EXTRA_DIST = BUGS FDL Rules.in kernel_patches kernel-tests/Makefile \
23 $(MAKE) $(ARCH_UM) -C $(LINUX) -f $(PWD)/kernel-tests/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) -o scripts -o include/config/MARKER _sfdep_$(PWD) _FASTDEP_ALL_SUB_DIRS="$(PWD)"
27 LDISKFS = ldiskfs-sources
29 $(MAKE) sources -C ldiskfs
33 $(MAKE) sources -C lvfs
35 modules: lustre_build_version $(DEP) $(LDISKFS) lvfs-sources
36 $(MAKE) $(ARCH_UM) -C $(LINUX) -f $(PWD)/kernel-tests/Makefile LUSTRE_LINUX_CONFIG=$(LINUX_CONFIG) SUBDIRS=$(PWD) -o tmp_include_depends -o scripts -o include/config/MARKER $@
39 perl $(top_builddir)/scripts/version_tag.pl $(top_srcdir) $(top_builddir) > tmpver
40 echo "#define LUSTRE_RELEASE @RELEASE@" >> tmpver
41 cmp -s $(top_builddir)/include/linux/lustre_build_version.h tmpver \
44 mv tmpver $(top_builddir)/include/linux/lustre_build_version.h
49 find $(distdir) -name .deps | xargs rm -rf
50 find $(distdir) -name CVS | xargs rm -rf
53 rpmbuild -ta $(distdir).tar.gz
56 CSTKO=/tmp/checkstack.orig
59 [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv ${CSTK} ${CSTKO} || true
60 for i in ${SUBDIRS} portals/knals/*; do \
61 MOD=$$i/`basename $$i`.o; \
62 [ -f $$MOD ] && objdump -d $$MOD | perl tests/checkstack.pl; \
63 done | sort -nr > ${CSTK}
64 [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
67 [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO}
70 rm -f ${CSTK} ${CSTKO}