Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #!/bin/bash
  2. set -e
  3.  
  4. AR=ar
  5. FASM=fasm
  6.  
  7. set -e
  8.  
  9. cd $1
  10.  
  11. echo "Compile ASM files..."
  12.  
  13. rm -f *.o
  14. cp __lib__.asm.bak __lib__.asm
  15.  
  16. for asm_file in $(find *.asm)
  17. do
  18.     $FASM $asm_file >> /dev/null
  19. done
  20.  
  21. echo "Create libc.obj.a library..."
  22. ar -rsc ../lib/libc.obj.a *.o
  23. rm -f *.asm *.o
  24. echo "Done!"
  25.