peilaus alkaen https://gitlab.com/rnger/amath
68 rivejä
1.7 KiB
Bash
Executable File
68 rivejä
1.7 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
rm -f amath.lha
|
|
rm -Rf amath
|
|
rm -Rf dist
|
|
mkdir dist
|
|
|
|
./configure --disable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68000 -noixemul"
|
|
make clean
|
|
make static
|
|
mv amath dist/amath.000
|
|
make clean
|
|
./configure --disable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68020 -noixemul"
|
|
make static
|
|
mv amath dist/amath.020
|
|
make clean
|
|
./configure --disable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68030 -noixemul"
|
|
make static
|
|
mv amath dist/amath.030
|
|
make clean
|
|
|
|
./configure --enable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68000 -noixemul"
|
|
make static
|
|
mv amath dist/amath-test.000
|
|
make clean
|
|
./configure --enable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68020 -noixemul"
|
|
make static
|
|
mv amath dist/amath-test.020
|
|
make clean
|
|
./configure --enable-test --disable-pic --cross-compile="m68k-amigaos" CFLAGS="-m68030 -noixemul"
|
|
make static
|
|
mv amath dist/amath-test.030
|
|
make clean
|
|
|
|
cd dist
|
|
touch hashkeys
|
|
sha1sum amath.000 >>hashkeys
|
|
sha1sum amath.020 >>hashkeys
|
|
sha1sum amath.030 >>hashkeys
|
|
sha1sum amath-test.000 >>hashkeys
|
|
sha1sum amath-test.020 >>hashkeys
|
|
sha1sum amath-test.030 >>hashkeys
|
|
sha256sum amath.000 >>hashkeys
|
|
sha256sum amath.020 >>hashkeys
|
|
sha256sum amath.030 >>hashkeys
|
|
sha256sum amath-test.000 >>hashkeys
|
|
sha256sum amath-test.020 >>hashkeys
|
|
sha256sum amath-test.030 >>hashkeys
|
|
cd ..
|
|
|
|
make catalogs
|
|
cp LICENSE dist/
|
|
cp HISTORY dist/
|
|
|
|
mkdir dist/script
|
|
cp script/* dist/script/
|
|
date -Ru >dist/build_date
|
|
#uname -srmo >dist/build_host
|
|
|
|
mv dist amath
|
|
#lha-ac a amath.lha amath
|
|
|
|
# GCC 6.x
|
|
#./configure --enable-test --cross-compile="/opt/m68k-amigaos6/bin/m68k-amigaos" CFLAGS="-m68000 -noixemul" LDFLAGS="-Xlinker --allow-multiple-definition"
|
|
#make static
|