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
9 SUBDIRS = include portals conf scripts ldlm
11 # ldiskfs creates headers that the ldiskfs fsfilt will need
16 DIST_SUBDIRS += ldiskfs
19 DIST_SUBDIRS += ldiskfs
22 # directories shared by the liblustre and modules builds
23 CORE_SUBDIRS = lvfs obdclass lov ptlrpc obdecho osc mdc
25 SUBDIRS += $(CORE_SUBDIRS)
28 SUBDIRS += $(CORE_SUBDIRS)
30 DIST_SUBDIRS += $(CORE_SUBDIRS)
34 # directories only built in the modules build
35 MODULES_SUBDIRS = mds obdfilter ost llite cobd
36 MODULES_DIST_SUBDIRS =
39 MODULES_DIST_SUBDIRS += ptlbd
41 MODULES_SUBDIRS += ptlbd
45 MODULES_SUBDIRS += snapfs
47 MODULES_DIST_SUBDIRS += snapfs
51 MODULES_SUBDIRS += smfs
53 MODULES_DIST_SUBDIRS += smfs
57 SUBDIRS += $(MODULES_SUBDIRS)
58 DIST_SUBDIRS += $(MODULES_DIST_SUBDIRS)
60 DIST_SUBDIRS += $(MODULES_SUBDIRS) $(MODULES_DIST_SUBDIRS)
66 DIST_SUBDIRS += liblustre
87 DIST_SUBDIRS += $(SUBDIRS)
89 EXTRA_DIST = BUGS FDL Rules.in kernel_patches kernel-tests/Makefile
92 find $(distdir) -name .deps | xargs rm -rf
93 find $(distdir) -name CVS | xargs rm -rf
96 rpmbuild -ta $(distdir).tar.gz
99 CSTKO=/tmp/checkstack.orig
102 [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv ${CSTK} ${CSTKO} || true
103 for i in ${SUBDIRS} portals/knals/*; do \
104 MOD=$$i/`basename $$i`.o; \
105 [ -f $$MOD ] && objdump -d $$MOD | perl tests/checkstack.pl; \
106 done | sort -nr > ${CSTK}
107 [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
110 [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO}
113 rm -f ${CSTK} ${CSTKO}