#! /bin/csh -fe
# msCcBack base
# (input: base.mesa `arch`/base.mob.s) (output: `arch`/base.c2c.o)
#
set tmpFile = "/tmp/msCc$$.o"
set dir = `arch`
set base = $argv[1]
#/usr/local/bin/msScript -mob ${base}.mob -as ${dir}/${base}.s -out ${dir}/${base}.mob.s
/bin/cc -c -o $tmpFile ${dir}/${base}.mob.s
/bin/ld -r -o ${dir}/${base}.c2c.o $tmpFile
/bin/rm -f $tmpFile ${dir}/${base}.mob.s ${dir}/${base}.s