blob: cb9026094a28d5a8822d6d9d823763697348634d [file] [log] [blame]
#!/bin/sh -eu
for m in m32 mx32; do
tests=tests-$m
rm -rf $tests
mkdir $tests
sed "s/@arch@/@arch_$m@/;s/^AM_CFLAGS[[:space:]]*=.*/& -$m/" \
tests/Makefile.am > $tests/Makefile.am
for f in tests/*; do
case "${f##*/}" in
Makefile*) continue;;
esac
ln -s ../"$f" $tests/
done
done
./generate_mpers_am.sh
./xlat/gen.sh
exec autoreconf -f -i "$@"