#!/bin/bash
#bsvc-c    UNIX (bohm)

#coff version

echo 'unix (bohm) version'

echo 'compiling, assembling and linking ' $1 '...'

# Run the compiler with the appropriate options ----
	m68k-coff-gcc -S $1'.c'  -o  $1'.s' -m68000

# Run the assembler with the appropriate options ----
	m68k-coff-as $1'.s' -o  $1'.o'  -m68000 -ahls=$1'.lst'

# Run the linker with the appropriate options
	m68k-coff-ld $1'.o' -o $1'.s19' -L. -Tbsvc-unix.ld


echo '...done'



