2020-04-04 12:07:50 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-05-20 10:36:27 -04:00
|
|
|
if ! [ -f fat_io_lib.zip ]; then
|
|
|
|
echo "No fat_io_lib.zip found ..."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
unzip fat_io_lib.zip
|
|
|
|
|
2020-04-04 12:07:50 -04:00
|
|
|
rm -rf include
|
|
|
|
rm -rf lib
|
|
|
|
|
2020-05-20 10:36:27 -04:00
|
|
|
|
2020-04-04 12:07:50 -04:00
|
|
|
cd release
|
|
|
|
gcc -O2 -D_FILE_OFFSET_BITS=64 fat*.c -c
|
|
|
|
ar -rc libfat_io_64.a *.o
|
|
|
|
rm -f *.o
|
|
|
|
|
|
|
|
|
|
|
|
gcc -m32 -O2 -D_FILE_OFFSET_BITS=64 fat*.c -c
|
|
|
|
ar -rc libfat_io_32.a *.o
|
|
|
|
rm -f *.o
|
|
|
|
|
|
|
|
|
2020-12-11 18:56:52 -05:00
|
|
|
aarch64-linux-gnu-gcc -O2 -D_FILE_OFFSET_BITS=64 fat*.c -c
|
|
|
|
ar -rc libfat_io_aa64.a *.o
|
|
|
|
rm -f *.o
|
|
|
|
|
|
|
|
|
2021-03-06 06:53:50 -05:00
|
|
|
mips64el-linux-musl-gcc -mips64r2 -mabi=64 -O2 -D_FILE_OFFSET_BITS=64 fat*.c -c
|
|
|
|
ar -rc libfat_io_m64e.a *.o
|
|
|
|
rm -f *.o
|
|
|
|
|
2020-04-04 12:07:50 -04:00
|
|
|
cd -
|
|
|
|
|
2020-12-11 18:56:52 -05:00
|
|
|
|
2020-04-04 12:07:50 -04:00
|
|
|
mkdir lib
|
|
|
|
mkdir include
|
|
|
|
|
|
|
|
mv release/*.a lib/
|
|
|
|
cp -a release/*.h include/
|
|
|
|
|
|
|
|
|