buildlib.sh 402 Bytes
Newer Older
longpanda's avatar
longpanda committed
1
2
#!/bin/sh

3
4
5
6
7
8
9
if ! [ -f fat_io_lib.zip ]; then
    echo "No fat_io_lib.zip found ..."
    exit 1
fi

unzip fat_io_lib.zip

longpanda's avatar
longpanda committed
10
11
12
rm -rf include
rm -rf lib

13

longpanda's avatar
longpanda committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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


cd -

mkdir lib
mkdir include

mv release/*.a lib/
cp -a release/*.h include/