Whamcloud - gitweb
b=1792
[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 if LIBLUSTRE
15 SUBDIRS = portals obdclass lov ptlrpc obdecho  osc utils mdc lvfs #liblustre
16 else
17 SUBDIRS = lvfs portals obdclass include $(DIRS24) mds utils obdfilter mdc osc ost 
18 SUBDIRS+= llite obdecho lov cobd tests doc scripts conf ptlrpc
19 endif
20
21 DIST_SUBDIRS = $(SUBDIRS) liblustre
22 EXTRA_DIST = BUGS FDL Rules kernel_patches
23
24 # We get the version from the spec file.
25 CONFIGURE_DEPENDENCIES = scripts/lustre.spec.in
26
27 dist-hook:
28         find $(distdir) -name .deps | xargs rm -rf
29         find $(distdir) -name CVS | xargs rm -rf
30
31 include $(top_srcdir)/Rules
32
33 rpms: dist Makefile
34         rpmbuild -ta $(distdir).tar.gz
35
36 CSTK=/tmp/checkstack
37 CSTKO=/tmp/checkstack.orig
38
39 checkstack:
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}
46
47 checkstack-update:
48         [ -f ${CSTK} ] && mv ${CSTK} ${CSTKO}
49
50 checkstack-clean:
51         rm -f ${CSTK} ${CSTKO}