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
21 DIST_SUBDIRS = $(SUBDIRS) liblustre
22 EXTRA_DIST = BUGS FDL Rules kernel_patches
24 # We get the version from the spec file.
25 CONFIGURE_DEPENDENCIES = scripts/lustre.spec.in
28 find $(distdir) -name .deps | xargs rm -rf
29 find $(distdir) -name CVS | xargs rm -rf
31 include $(top_srcdir)/Rules
34 rpmbuild -ta $(distdir).tar.gz
37 CSTKO=/tmp/checkstack.orig
40 [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv ${CSTK} ${CSTKO} || true
41 for i in ${SUBDIRS} portals/knals/*; do \
42 MOD=$$i/`basename $$i`.o; \
43 [ -f $$MOD ] && objdump -d $$MOD | perl tests/checkstack.pl; \
44 done | sort -nr > ${CSTK}
45 [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
48 [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO}
51 rm -f ${CSTK} ${CSTKO}