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
14 # just until things are farther along
18 UTILS_TESTS = utils tests
22 SUBDIRS = portals obdclass lov ptlrpc obdecho osc utils mdc lvfs liblustre lmv
24 SUBDIRS = lvfs portals obdclass include $(DIRS24) mds obdfilter mdc osc ost
25 SUBDIRS+= llite obdecho lov cobd doc scripts conf ptlrpc lmv $(UTILS_TESTS)
36 DIST_SUBDIRS = $(SUBDIRS) liblustre snapfs smfs
37 EXTRA_DIST = BUGS FDL Rules kernel_patches
39 # We get the version from the spec file.
40 CONFIGURE_DEPENDENCIES = scripts/lustre.spec.in
43 find $(distdir) -name .deps | xargs rm -rf
44 find $(distdir) -name CVS | xargs rm -rf
46 include $(top_srcdir)/Rules
49 rpmbuild -ta $(distdir).tar.gz
52 CSTKO=/tmp/checkstack.orig
55 [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv ${CSTK} ${CSTKO} || true
56 for i in ${SUBDIRS} portals/knals/*; do \
57 MOD=$$i/`basename $$i`.o; \
58 [ -f $$MOD ] && objdump -d $$MOD | perl tests/checkstack.pl; \
59 done | sort -nr > ${CSTK}
60 [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
63 [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO}
66 rm -f ${CSTK} ${CSTKO}