5 # When compiling a file that goes into libunwind, we only
6 # need to compile it when we really do support UNW_LOCAL_ONLY.
7 # In contrast, libunwind-tests should always get compiled.
9 if test $dir = "tests"; then
12 local_only_test="defined(UNW_LOCAL_ONLY) && "
14 for gname in `ls G*.c G*.cxx G*.S 2>/dev/null`; do
15 lname="L$(expr $gname : '.\(.*\)')"
16 bk edit $lname >/dev/null 2>&1
17 ext=$(expr $gname : '[^.]*[.]\(.*\)')
18 if [ "$ext" = "S" ]; then
21 include="#include <libunwind.h>"
24 #define UNW_LOCAL_ONLY\n\
26 #if ${local_only_test}!defined(UNW_REMOTE_ONLY)\n\
27 #include \"$gname\"\n\