Whamcloud - gitweb
b=10778,i=eeb:
[fs/lustre-release.git] / autoMakefile.am
1 SUBDIRS := @LDISKFS_SUBDIR@ . @LIBSYSIO_SUBDIR@ @SNMP_SUBDIR@ lnet lustre
2 DIST_SUBDIRS := @SNMP_DIST_SUBDIR@ libsysio ldiskfs lnet lustre
3 SOURCES_SUBDIRS := @LDISKFS_SUBDIR@ lnet lustre
4 RPM_SUBDIRS := @LDISKFS_SUBDIR@
5
6 include build/autoMakefile.am.toplevel
7
8 EXTRA_DIST += config.h.in
9
10 CSTK=/tmp/checkstack
11 CSTKO=/tmp/checkstack.orig
12
13 checkstack:
14         [ -f ${CSTK} -a ! -s ${CSTKO} ] && mv -f ${CSTK} ${CSTKO} || true
15         { for i in lustre/* lnet/* ; do                                      \
16                 MOD=$$i/`basename $$i`;                                      \
17                 if [ $$i = "lustre/llite" ]; then MOD=$$i/lustre; fi;        \
18                 [ -f $$MOD.ko ] && MOD=$$MOD.ko || MOD=$$MOD.o;              \
19                 [ -f $$MOD ] && objdump -d $$MOD | perl build/checkstack.pl; \
20           done;                                                              \
21           for i in lnet/klnds/*; do                                          \
22                 MOD=$$i/k`basename $$i`;                                     \
23                 [ -f $$MOD.ko ] && MOD=$$MOD.ko || MOD=$$MOD.o;              \
24                 [ -f $$MOD ] && objdump -d $$MOD | perl build/checkstack.pl; \
25           done } | sort -nr > ${CSTK}
26         [ -f ${CSTKO} ] && ! diff -u ${CSTKO} ${CSTK} || head -30 ${CSTK}
27
28 checkstack-update:
29         [ -f ${CSTK} ] && mv -f ${CSTK} ${CSTKO}
30
31 checkstack-clean:
32         rm -f ${CSTK} ${CSTKO}