3 mingwb=i686-w64-mingw32
7 implist=${target_s}_implist
8 tmpsym=${target_s}_tmpsym
11 grep 'extrn ' $src_asm | awk '{print $2}' | \
12 awk -F: '{print $1}' > $implist
14 echo ".data" > $target_s
15 echo ".align 4" >> $target_s
17 cat $implist | while read i; do
21 si=`echo $i | cut -c 7-`
28 grep "\<_\?_$si\>" /usr/$mingwb/lib/lib* "$@" | awk '{print $3}' | \
30 sym=`${mingwb}-nm $f | grep "\<_\?_$si\>" | grep ' T ' | awk '{print $3}'`
31 if test -n "$sym"; then
37 if test -z "$sym"; then
38 echo "no file/sym for $i, lf $f"
42 echo ".globl $i" >> $target_s
43 echo "$i:" >> $target_s
44 echo " .long $sym" >> $target_s