build_amiga.sh 1014 B

1234567891011121314151617181920
  1. export CROSSPATH=/media/storage2/amiga-code/m68k-amigaos
  2. export GCCLIBPATH=$CROSSPATH/lib/gcc-lib/m68k-amigaos/2.95.3
  3. export PATH=$CROSSPATH/bin:$GCCLIBPATH:$PATH
  4. export GCC_EXEC_PREFIX=m68k-amigaos
  5. export LIBS=$CROSSPATH/lib
  6. echo $SEARCH_DIR
  7. # m68k-amigaos-gcc -dM -E - < /dev/null
  8. m68k-amigaos-gcc -o build/interim.amiga --std=c9x -noixemul -I$CROSSPATH/m68k-amigaos/sys-include -I$CROSSPATH/os-include -Isledge -L$LIBS/libnix -L$LIBS -L$LIBS/gcc-lib/m68k-amigaos/2.95.3/ -DCPU_M86K sledge/strmap.c sledge/reader.c sledge/alloc.c sledge/writer.c sledge/sledge.c sledge/stream.c devices/debug_util.c devices/amiga.c
  9. #sledge/writer.c sledge/alloc.c sledge/strmap.c sledge/stream.c sledge/sledge.c
  10. #gcc -T devices/bios.ld -m32 -o build/interim.bin -ffreestanding -nostdlib build/interim.o
  11. cp build/interim.amiga ~/amiga/interim/
  12. #m68k-amigaos-gcc -o build/test --std=c9x -noixemul -I$CROSSPATH/m68k-amigaos/sys-include -Isledge -L$LIBS/libnix -L$LIBS -L$LIBS/gcc-lib/m68k-amigaos/2.95.3/ -DCPU_M86K test.c