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
15 SUBDIRS = portals obdclass lov ptlrpc obdecho osc utils mdc lvfs liblustre
17 SUBDIRS = lvfs portals obdclass include $(DIRS24) mds utils obdfilter mdc osc ost
18 SUBDIRS+= llite obdecho lov cobd tests doc scripts conf ptlrpc
28 DIST_SUBDIRS = $(SUBDIRS) liblustre snapfs smfs
29 EXTRA_DIST = BUGS FDL Rules kernel_patches
31 # We get the version from the spec file.
32 CONFIGURE_DEPENDENCIES = scripts/lustre.spec.in
35 find $(distdir) -name .deps | xargs rm -rf
36 find $(distdir) -name CVS | xargs rm -rf
38 include $(top_srcdir)/Rules
41 rpmbuild -ta $(distdir).tar.gz
44 CSTKO=/tmp/checkstack.orig
47 [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv ${CSTK} ${CSTKO} || true
48 for i in ${SUBDIRS} portals/knals/*; do \
49 MOD=$$i/`basename $$i`.o; \
50 [ -f $$MOD ] && objdump -d $$MOD | perl tests/checkstack.pl; \
51 done | sort -nr > ${CSTK}
52 [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
55 [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO}
58 rm -f ${CSTK} ${CSTKO}