document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #
  2. #
  3. #
  4. #
  5. #
  6. #
  7. #
  8.  
  9. CC = m68k-elf-gcc
  10. AS = m68k-elf-as
  11. AR = m68k-elf-ar
  12. LD = m68k-elf-ld
  13.  
  14. OBJDUMP = m68k-elf-objdump
  15. OBJCOPY = m68k-elf-objcopy
  16.  
  17. all : test.S19 test.dis
  18.  
  19. crt0.o : crt0.S Makefile
  20.     m68k-elf-gcc -c -o crt0.o -m68000 crt0.S
  21.  
  22. test.o : test.c Makefile
  23.     $(CC) test.c -o test.o -c -m68000 -fomit-frame-pointer
  24.  
  25. test.x : test.o crt0.o ldscript.ld Makefile
  26.     $(LD) -Map test.map crt0.o test.o  -Tldscript.ld -v -nostartfiles -o test.x
  27.  
  28. test.S19 : test.x Makefile
  29.     $(OBJCOPY) -O srec test.x test.S19
  30.  
  31. test.dis : test.x Makefile
  32.     $(OBJDUMP) -d test.o > test.dis
  33. crt0.dis : crt0.o Makefile
  34.     $(OBJDUMP) -d crt0.o > crt0.dis
  35. download: test.S19
  36.     /media/disk/Projects/microrom/sw/microrom test.S19 -s -e512 -rl
  37.  
  38. clean :
  39.     rm *.o
  40.     rm *.x
  41.     rm *.dis
  42.     rm *.map
');