Advertisement
Guest User

Untitled

a guest
Dec 14th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. # Makefile zum Verlinken eines ASM-Moduls mit einem C-Programm
  2. # HS Emden/Leer | C.Koch
  3. # 11.06.2012 initial version
  4. # 11.12.2014 update 64-bit. Ubuntu 14.04 -> to compile 32-bit code on 64-bit environment:
  5. # $ sudo apt-get install gcc-multilib
  6.  
  7. # C-Quellcode kompilieren und mit ASM-Modul linken
  8. a5c: a5asm.o a5c.o
  9. gcc -m32 -o a5c a5c.o a5asm.o # linken
  10.  
  11. a5c.o: a5c.c
  12. gcc -m32 -c -o a5c.o a5c.c # compilieren
  13.  
  14. # ASM-Modul assemblieren
  15. a5asm.o: a5asm.asm
  16. nasm -f elf -o a5asm.o a5asm.asm
  17.  
  18. # Projekt aufraemen
  19. clean:
  20. @echo 'Ausgabedateien loeschen'
  21. rm -f callecho *.o *~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement