makefile 144 B

123456789
  1. #!/bin/bash
  2. fileasm=$(ls *.asm)
  3. nasm -f elf $fileasm
  4. file=${fileasm//.asm/}
  5. fileo=$(ls *.o)
  6. ld -m elf_i386 -s -o $file $fileo
  7. rm $fileo
  8. ./$file