#!/bin/sh while [ ! -d .git ]; do cd .. done cd build vbccm68k -I../runtime -cpu=68000 -o=rom.s ../rom.c || exit 1 vasmm68k_mot -Felf -o rom.o rom.s || { rm -f rom.s exit 1 } rm -f rom.s vlink -brawbin -T../runtime/linker.ld -o rom.bin crt0.o libc.o rom.o