2021-04-27 18:33:31 +02:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
AR=ar
|
|
|
|
FASM=fasm
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd $1
|
|
|
|
|
|
|
|
echo "Compile ASM files..."
|
|
|
|
|
|
|
|
rm -f *.o
|
|
|
|
cp __lib__.asm.bak __lib__.asm
|
|
|
|
|
|
|
|
for asm_file in $(find *.asm)
|
|
|
|
do
|
|
|
|
$FASM $asm_file >> /dev/null
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "Create libc.obj.a library..."
|
2021-06-10 18:02:15 +02:00
|
|
|
ar -rsc ../../bin/lib/libc.obj.a *.o
|
2021-04-27 18:33:31 +02:00
|
|
|
rm -f *.asm *.o
|
|
|
|
echo "Done!"
|