Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Makefile zum Verlinken eines ASM-Moduls mit einem C-Programm
- # HS Emden/Leer | C.Koch
- # 11.06.2012 initial version
- # 11.12.2014 update 64-bit. Ubuntu 14.04 -> to compile 32-bit code on 64-bit environment:
- # $ sudo apt-get install gcc-multilib
- # C-Quellcode kompilieren und mit ASM-Modul linken
- a5c: a5asm.o a5c.o
- gcc -m32 -o a5c a5c.o a5asm.o # linken
- a5c.o: a5c.c
- gcc -m32 -c -o a5c.o a5c.c # compilieren
- # ASM-Modul assemblieren
- a5asm.o: a5asm.asm
- nasm -f elf -o a5asm.o a5asm.asm
- # Projekt aufraemen
- clean:
- @echo 'Ausgabedateien loeschen'
- rm -f callecho *.o *~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement