kolibrios/programs/develop/ktcc/trunk/libc.obj/linuxtools/LoaderBuild
turbocat de30a03cac Fixed build libc.obj
git-svn-id: svn://kolibrios.org@8803 a494cfbc-eb01-0410-851d-a64ba20cac60
2021-06-10 16:02:15 +00:00

25 lines
298 B
Bash
Executable File

#!/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..."
ar -rsc ../../bin/lib/libc.obj.a *.o
rm -f *.asm *.o
echo "Done!"