Whamcloud - gitweb
Don't have D_MALLOC on by default. This slipped in during debugging.
[fs/lustre-release.git] / lustre / Makefile.am
1 # Copyright (C) 2001  Cluster File Systems, Inc.
2 #
3 # This code is issued under the GNU General Public License.
4 # See the file COPYING in this distribution
5
6 AUTOMAKE_OPTIONS = foreign
7
8 if LINUX25
9 DIRS24 = 
10 else
11 DIRS24 = ptlbd
12 endif
13
14 # just until things are farther along
15 if CRAY_PORTALS
16 UTILS_TESTS = 
17 else
18 UTILS_TESTS = utils tests
19 endif
20
21 if LIBLUSTRE
22 SUBDIRS = portals obdclass lov ptlrpc obdecho osc utils mdc lvfs liblustre
23 else
24 SUBDIRS = lvfs portals obdclass include $(DIRS24) mds obdfilter mdc osc ost 
25 SUBDIRS+= llite obdecho lov cobd doc scripts conf ptlrpc $(UTILS_TESTS)
26 endif
27
28
29 if SNAPFS
30 SUBDIRS+= snapfs
31 endif
32
33 if SMFS 
34 SUBDIRS += smfs
35 endif
36 DIST_SUBDIRS = $(SUBDIRS) liblustre snapfs smfs
37 EXTRA_DIST = BUGS FDL Rules kernel_patches
38
39 # We get the version from the spec file.
40 CONFIGURE_DEPENDENCIES = scripts/lustre.spec.in
41
42 dist-hook:
43         find $(distdir) -name .deps | xargs rm -rf
44         find $(distdir) -name CVS | xargs rm -rf
45
46 include $(top_srcdir)/Rules
47
48 rpms: dist Makefile
49         rpmbuild -ta $(distdir).tar.gz
50
51 CSTK=/tmp/checkstack
52 CSTKO=/tmp/checkstack.orig
53
54 checkstack:
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}
61
62 checkstack-update:
63         [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO}
64
65 checkstack-clean:
66         rm -f ${CSTK} ${CSTKO}